With the own-gateway compliance rule, a custody receipt moves only between a client and that client's own gateway, which burns it when it pays coins out.
A custody receipt is an ordinary DALP asset representing coins held in custody, sharing the underlying coin's decimals with one receipt asset per enabled coin.
Gateways mint receipts only against received coins and burn them atomically when paying coins out. Leave the receipt's Supply management role unassigned so gateways remain the sole minters.
The own custody gateway compliance rule keeps each receipt inside a closed loop between a client and that client's gateway.
What a custody receipt is
A custody receipt is the regulated DALP token a client holds while underlying coins sit in custody. Because it is a standard DALP asset with identical decimals to the coin, one unit represents one coin unit (before any owed fees) and inherits standard identity, compliance, freeze, and forced-transfer controls.
Enabling a coin on the Custody Gateway add-on binds it to its receipt asset so every client gateway can mint receipts on deposit and burn them on withdrawal.
How the receipt is backed
The gateway enforces atomic backing: deposits mint receipts only after verifying unclaimed coins arrived, and withdrawals burn receipts in the same transaction that pays coins out. Two token roles sit outside this guarantee: Custodian (forced transfers) and Supply management (unbacked mints or burns).
To authorise every organisation gateway without registering them individually, the receipt's supply-delegate feature lists the custody gateway factory, which verifies callers are its own gateways. Leave the receipt's ordinary Supply management role unassigned so no account can mint unbacked receipts.
The add-on refuses enabling coins whose receipt carries transaction-fee, fee-accounting, or AUM-fee features because deposit and withdrawal fees belong to the gateway (deducted by default, or recorded as owed in accounting-only mode). When a custodian must accept forwarded deposits before funds become spendable, the gateway places a hold on the minted receipts until custody confirms acceptance or returns the deposit.
Where the receipt may move
Receipts circulate in a three-step closed loop: the client returns receipts to their gateway's escrow for withdrawal, the gateway mints or returns receipts to the client, and the gateway burns receipts on payout.
The add-on checks at enablement that the receipt carries the own custody gateway compliance rule blocking transfers to other holders or gateways. Governance can still alter compliance later, and Custodian forced transfers bypass compliance modules.
Minting targets only wallets of the gateway's client. A frozen client wallet blocks minting (resting in quarantine under always-quarantine mode, resting as mint refused on reported transfers, or failing immediately on direct deposits with screening off) and parks returned receipts as return pending until unfrozen. See How a deposit moves.
What counts as backing
Each receipt is backed solely by its gateway's accounted balances. Quarantined coins, unsupported transfers, and unallocated coins never back withdrawals. You can also attach the Collateral requirement module for an extra supply check.
Frequently asked questions
Does holding a custody receipt cost a fee?
No. The add-on refuses enabling receipts that carry token fee features, so fees apply only on gateway deposits and withdrawals.
Does the receipt have a different number of decimals than the coin?
No. Enablement checks that receipt decimals match coin decimals so amounts align one-to-one without conversion.
Who can mint a custody receipt?
Gateways deployed by the organisation's custody gateway factory, plus any holder of the receipt's Supply management role (which should remain unassigned).