TrussDocs

Flow of funds

Selling a pending request

How a holder can sell a pending deposit or redemption request before it settles, because ERC-8161 makes requests transferable, and what a buyer should check.

Deposits and redemptions wait for a settler. A Truss vault follows ERC-8161, an extension of the asynchronous vault standard ERC-7540 that makes a pending request transferable. So a holder who does not want to wait can hand its queued request to someone else, for example by selling it on a secondary market, and leave before it settles. The sale itself happens outside the vault. The vault only records the new controller.

Key points

  • One call moves the whole pending balance of a request to a new controller.
  • Only the request's controller, or its operator, can transfer it, and the new controller must pass the vault's policies.
  • Fills already settled stay with the old controller. Only what is still pending moves.
  • The buyer takes over the wait, and can still cancel the request for free or, where the vault allows it, redeem it instantly.

How a transfer works

A deposit request moves with transferDepositRequest(requestId, oldController, newController), and a redemption request with transferRedeemRequest(requestId, oldController, newController). The call moves the request's whole pending balance: there is no partial transfer. The request keeps its id and its creation time, and the vault emits TransferDepositRequest or TransferRedeemRequest.

From then on the new controller holds every right in the request. It can cancel it, claim what later fills, and transfer it again. For a redemption it can also execute the request on the instant path, where the vault has it open.

A transfer needs no fresh NAV, and works while the vault is paused.

Who can transfer, and to whom

The caller must be the request's controller, or an operator the controller approved with setOperator. An operator reaches the controller's whole position: it can open, cancel, claim and transfer every request, and redeem every share. A seller should approve as operator only an address it would hand the position to.

The new controller cannot be the zero address. Where a holder policy is bound, it must allow the new controller. For a redemption, a bound withdrawal policy must allow the new controller too, as it must when a redemption is opened.

On a vault deployed with forced transfers, the VaultAdmin or a VaultManager can also move a request without the controller's consent. See Forced transfers.

What a buyer should check

  1. Read what is still pending, from getRequest(requestId).remaining, pendingDepositRequest or pendingRedeemRequest. A settlement can fill part of a request at any time, so read it in the same transaction as the transfer.
  2. Pay and transfer in one transaction, for example through a contract that does both. Until the transfer lands, the seller can still cancel the request.
  3. Check the vault: whether its NAV is fresh, how often its requests are settled, and which policies are bound.
  4. Price the request yourself. The vault does not price a pending request. A deposit request is fixed in USDC; a redemption request is fixed in shares, and fills at the price of its settlement.

Where to read more

PageWhat it covers
DepositsThe deposit flow a request belongs to
WithdrawalsThe redemption flow, and cancelling
Standards and deviationsERC-8161 and how the vault follows it
Vault policiesThe holder and withdrawal policies a new controller must pass