RWAComply

Onchain purchase limits shared across a person's wallets for tokenized asset markets.

RWAComply

Created At

ETHGlobal Mumbai

Project Description

RWAComply is a platform prototype for controlling how much an individual can purchase in tokenized real-world asset markets. Instead of applying a limit to each wallet separately, it links multiple wallets to one pseudonymous investor allocation.

An issuer defines a maximum USDC purchase amount for an offering. When an investor buys through the supported RWAComply purchase route, the smart contract checks their cumulative spending across linked wallets and rejects purchases that exceed the remaining limit. Each investor has a separate allocation.

The project integrates World ID for proof of human, a wallet ownership signature, and onchain wallet registration. The allocation ledger tracks spending, while a Uniswap v4 hook and trusted executor enforce the limit during purchases.

The current Sepolia deployment demonstrates the mechanism using mock USDC and RWA tokens. The broader multi-offering issuer marketplace is being developed and tested locally.

How it's Made

RWAComply is built with Solidity, Foundry, Uniswap v4, Next.js, React, TypeScript, and viem. The smart contract layer consists of an AllocationLedger, a Uniswap v4 hook, and a trusted PoolExecutor. The ledger tracks cumulative USDC spending by pseudonymous allocation, while the hook checks the remaining budget before allowing a supported purchase.

The executor is important because the hook needs to identify the actual trader even though the swap is initiated through a router. It passes the trader address through hook data, and the hook records the actual USDC spent from the swap's balance delta. This keeps the purchase check and spend recording within the same transaction.

World ID is integrated through IDKit. The backend creates and signs verification requests, verifies returned proofs, maintains encrypted identity sessions, and issues EIP-712 wallet registration authorizations. Each linked wallet must separately prove ownership and register onchain.

Arkiv, through its SDK on the Rabdi network, stores public offering metadata. The Ethereum ledger remains the source of truth for purchase caps and spending. The frontend uses Next.js API routes to connect these services without exposing signing keys to the browser.

The core hook, ledger, and executor are deployed on Ethereum Sepolia and tested locally with Foundry and Anvil. The broader multi-offering marketplace contracts are currently tested locally, not deployed on Sepolia.

background image mobile

Join the mailing list

Get the latest news and updates

RWAComply | ETHGlobal