TrussDocs

Compliance enforcement

Using policies for compliance

How the deposit, holder and withdrawal hooks map to onboarding, eligibility, screening, payout and integration requirements.

Most compliance requirements come down to three questions: who may come in, who may hold, and who may be paid. Each maps to a vault hook. This page pairs common requirements with the hook that enforces them, and says what still works for an address the hook refuses. No holder or withdrawal policy exists today; see Policies that could be built.

Key points

  • A holder policy keeps a refused address from receiving shares or pending requests, but never from sending them.
  • A withdrawal policy keeps a refused address from redeeming or being paid, but is never asked about the owner of the shares.
  • Settlement asks neither, so one refused holder never blocks a batch for everyone else.
  • A vault has one slot per policy type, so an allowlist and a denylist for holders go in one contract.

Requirements and hooks

RequirementHookWhat it doesWhat still works for a refused address
Only verified customersHolder allowlistNo unverified address can control a deposit request, take shares, receive a transfer or take over a requestOne removed later keeps its shares and can redeem, unless the withdrawal policy refuses it
Only approved channels open depositsDeposit policy on the caller or ownerRequests must come through your app or approved walletsWho holds later is the holder policy's job
Jurisdiction or investor-type limitsHolder policyRefuses addresses outside the allowed setAs for verified customers
Screening: no new exposureHolder denylistA listed address can receive nothingIt can still send its shares away; there is no freeze
Screening: no payoutsWithdrawal denylistA listed address cannot control, claim or be paid by a redemptionIts requests still settle and wait unclaimed. It can send its shares, or open a redemption naming an allowed controller
Payouts only to verified addressesWithdrawal policy on receiversEvery claim and instant withdrawal pays only an approved addressNone
Closed-loop or omnibus modelHolder policy listing only your custody addressesCustomers never hold shares directly; you keep their ledgers off chainYour custody addresses are the only holders
Shares used in DeFiHolder policy admitting a protocol and every address it sends shares toIntegrations keep working under an allowlistA liquidator not admitted makes its liquidation revert

Combining the hooks

A holder policy alone stops new exposure but lets a refused address leave with its value. A withdrawal policy alone stops payouts to an address, but that address can pass its shares to another address and redeem from there. Where both must hold, bind both. Where a position must also be moved, the vault needs forced transfers. See Compliance scenarios.

What every design can rely on

  • The holder policy is never asked about the sender, a burn, the vault or the fee recipient.
  • Settlement never asks the holder or withdrawal policy.
  • A withdrawal policy that reverts, or answers anything but a clean true, refuses.
  • A holder refused by the holder policy cannot cancel a redemption, because the shares would return to it.
  • Cancelling a deposit request refunds the USDC to its controller, and no policy is asked.
  • A forced transfer asks no policy about the address moved from, so a refused address can always be moved from.

Where to read more

PageWhat it covers
Vault policiesEvery function that asks each hook, and about whom
Forced transfersMoving a position without the holder's consent
Compliance scenariosStep-by-step responses to common cases
Using vault shares in DeFiHow shares work as collateral, and what an allowlist must admit