TrussDocs

Compliance enforcement

Forced transfers

What a forced transfer moves, who can make one, the checks it runs, and how it is enabled when the vault is deployed.

Sometimes a position has to move without its holder's consent: a customer loses their key, or a court orders shares moved. A vault deployed with forced transfers lets its VaultAdmin and its vault managers do that, at once. The choice is made once, when the vault is deployed, because it changes what every holder is trusting. This page explains what a forced transfer moves, what it checks, and what enabling it costs.

Key points

  • Forced transfers are switched on or off when the vault is deployed, and can never be changed afterwards.
  • On a vault deployed with them, the VaultAdmin and every vault manager can move a holder's shares, open requests and unclaimed fills at once.
  • The address moved to must pass the holder policy, and the withdrawal policy when a redemption moves. The address moved from is never checked.
  • Enabling them makes every vault manager key as sensitive as the VaultAdmin's.

Enabling it at deployment

The deployer chooses forced transfers on or off when it deploys the vault through the Truss UI. The UI passes the choice to the factory as forcedTransfersEnabled, and the vault writes it once when it is initialized. No function can change it later: a vault deployed without forced transfers never gains them, and one deployed with them never loses them. Anyone can read the choice with forcedTransfersEnabled(). The committed preprod configs leave it off.

The forceTransfer role exists on every vault. On a vault deployed without forced transfers, every call reverts with ForcedTransfersOff.

What it moves

forceTransfer(from, to, shares, requestIds, maxClaimFills, ref) moves three things from from to to:

  • shares of from's wallet balance, or none when zero;
  • control of the open requests listed in requestIds, deposits and redemptions alike;
  • up to maxClaimFills of from's oldest unclaimed fills from each of its two claim queues, which to then claims. A queue too long for one transaction moves over several calls.

The VaultAdmin and every vault manager can call it, with no delay, whatever tiers the vault was deployed with. No share is minted or burned, and no vault total changes. No price is read, so it works while the vault is paused and while its NAV is stale.

What it checks

  1. Neither side is the zero address, the vault or its deposit silo, and to differs from from (ForcedTransferRefused).
  2. The holder policy, when one is bound, is asked about to before anything moves.
  3. Each listed request must be open and controlled by from.
  4. When a redemption request or a redemption fill moves, the withdrawal policy is asked about to too. The USDC then never reaches an address that cannot claim it.

No policy is asked about from, so an address a policy has since refused can always be moved from. ref is an off-chain reference, such as a case or order number. The call emits a TransferDepositRequest or TransferRedeemRequest for each request, then ForcedTransfer(from, to, caller, shares, requestIds, claimableShares, claimableAssets, ref), then the share Transfer.

What enabling it costs

There is no timelock on the move. A compromised vault manager key could move a holder's shares to itself, request a redemption, settle it and claim the USDC in one block. On such a vault every vault manager key is therefore as sensitive as the VaultAdmin's, and both are best held in multisigs. A contract that holds shares, such as a lending market or a pool, can have them moved out from under its own accounting. Depositors and integrators need to know the vault can do this; see What to tell your depositors.

Enable it if you need lost-key recovery, or must be able to act on a court order on chain. Without it, a lost key's position stays where it is, and the only controls are policies and pause.

Where to read more

PageWhat it covers
Compliance scenariosStep-by-step uses of a forced transfer
ProfilesWhat the VaultAdmin and vault managers hold
A key has leakedWhat to do when an operator key is compromised