ERC-8473 uRWA Token Compliance Policy Standard (uRWA Policy)

Draft · Tokens · created 2026-10-22

Defines a standard interface so that an ERC-7943 permissioned token can delegate the compliance logic that decides whether to allow a transfer to a separate policy contract. Changing only the policy leaves the token code untouched.

Why it is needed

ERC-7943 specifies that a permissioned token must provide account eligibility checks (canSend, canReceive) and a pre-transfer check (canTransfer), but it does not specify how that determination is made. Rules such as identity verification, jurisdiction, holding limits, and trading-hour restrictions change far more often than a token's accounting logic and are written and audited by separate teams, so tokens have put these rules in separate contracts. But because each implementation builds its own interface, compliance service providers must integrate separately for every token, a token must build a dedicated adapter whenever it switches providers, and auditors must re-analyze which functions reach the compliance contract in each implementation. More seriously, integrators cannot even be sure that the pre-transfer check's answer was computed the same way as the actual transfer.

What to implement

In depth

The boundary between policy and token

An ERC-7943 token must call the policy's checkTransfer with a TransferContext before any balance or ownership change, and must revert if the result is not TRANSFER_OK. No external call other than to the policy may occur between this call and the balance change, and checkSend, checkReceive, checkTransfer, and wantsAfterTransfer must all be called via STATICCALL. If policy() returns address(0), the token must reject all movements.

TRANSFER_OK and rejection codes

TRANSFER_OK is a fixed value equal to keccak256("TRANSFER_OK"), and every return value other than this, including bytes32(0), is treated as a rejection. Policies are recommended to form rejection reasons as the keccak256 of an uppercase name, and names such as SENDER_NOT_ELIGIBLE, RECEIVER_NOT_ELIGIBLE, LOCKED_UP, MAX_HOLDERS, MAX_BALANCE, TRANSFER_LIMIT, WINDOW_CLOSED, KIND_NOT_ALLOWED, OPERATOR_NOT_ALLOWED, and CHECK_UNAVAILABLE are proposed as common reasons. Integrators must not interpret an unknown value as an allowance.

Five movement kinds

TransferKind is closed to five values: TRANSFER, EXECUTED, FORCED, MINT, and BURN, and the token must check the conditions in a fixed order and assign the first kind that matches. forcedTransfer is always FORCED regardless of the reason, and a movement directly instructed by the holder can never be FORCED unless it goes through the enforcement path. Movements through functions like transfer and transferFrom in the base standard can never be EXECUTED or FORCED.

Pre-flight equivalence of canTransfer

canTransfer must predict the outcome of TRANSFER, MINT, and BURN movements from the state at that moment, and given the same state, the decision must be the same no matter who submits it. Because of this, the outcome cannot depend on the operator or msg.sender, and data must also be derived only from the token's own state, without any value passed by the caller. In contrast, EXECUTED and FORCED movements can produce different outcomes depending on the signature or the enforcing party, so canTransfer does not predict them.

The afterTransfer callback and state-retention policies

A policy that maintains state such as the number of holders needs to know about completed movements, so the token calls wantsAfterTransfer after the balance change and transfer event have occurred, and calls afterTransfer if needed. While this callback is executing, the token must prevent any other movement from starting. afterTransfer must not enforce rules for TRANSFER, MINT, or BURN movements, since canTransfer does not call this callback, so such rules must live in checkTransfer.

Installing a policy (onInstall)

Every time a token installs a policy, including the first installation, it must emit a PolicyChanged event and call the new policy's onInstall, passing the previous policy's address and the data supplied by the installer. Every time onInstall is called, it must rebuild or reset from scratch any state derived from the token's movements, and cannot carry over state from the previous installation. This ERC does not define a call that notifies a policy when it is being removed, so a broken or malicious policy cannot block its own removal.

Gas costs and design rationale

According to the benchmarks presented in the source, a plain ERC-20 transfer that requires both accounts to be on an allowlist costs about 34,500 gas, and enforcing the rule through this ERC costs about 8,500 gas more than reading the list directly inside the token, or about 9,700 gas more if the afterTransfer callback is also used. A bool-returning compliance call similar to the ERC-3643 approach was measured to cost about 6,400 gas more, and these figures are based on the Osaka gas schedule.

Proposal status

This ERC is currently in Draft status, which means it is not yet finalized, and the detailed rules or interface may still change, or discussion may stall.

Original ERC · ← ERCs