TrussDocs

Guides

Turn on instant withdrawals

How to turn on or tune instant withdrawals after launch, from naming a default source to raising the window and setting the freshness gate.

Instant withdrawals pay a holder at once, within limits the owner sets, instead of waiting for a settlement. They pay from vault idle, the USDC the vault holds itself, and from a default source if one is named. A deployer can switch them on at deployment; this guide turns them on, or changes them, after launch.

Key points

  • Every setting starts at zero, so the path pays nothing until its window is raised.
  • Raising the window or loosening the freshness gate waits HIGH, and naming a default source waits CRITICAL.
  • Lowering, pausing and clearing the source act at once.
  • Without a default source, only vault idle pays.

Steps

Each setting lives on the vault's InstantRedemptionPolicy. With timelocks on, schedule the steps for the same moment, at least the CRITICAL tier away, and execute them together.

  1. Name a default source, or skip this to pay from vault idle alone. The source is a tracked sub-account, its ERC-4626 lend module, and a USDC lending venue the sub-account holds and values. The VaultAdmin calls setDefaultSource(subAccount, lendModule, venue) (CRITICAL). It refuses a sub-account that is not active or not tracked, a module that is not an installed lend module, and a venue the sub-account does not value or whose asset is not USDC. Register that venue in no other sub-account, so a loss elsewhere cannot fall on it.
  2. Raise the window. The window is how much of the vault's net assets instant withdrawals may take before it refills. The VaultAdmin calls raiseWindowCapacity(capacity) and raiseWindowRefillRate(rate) (HIGH). Both are shares of net assets in units of 10^18, so a capacity of 0.05 × 10^18 is 5%; the rate is what returns each second.
  3. Set the freshness gate. The path pays only while the NAV's oldest price is no older than the gate, in seconds. The VaultAdmin raises it with loosenFreshnessGate(seconds) (HIGH). A gate of zero pays only while everything the vault holds is USDC, because any priced holding has an older observation time. Set it above the heartbeat of every price feed the NAV reads, the USDC feed's included, or the path closes each time a feed ages.
  4. Set the instant fee, if any. The VaultAdmin or a vault manager calls raiseInstantRedeemFee on the vault (LOW), within the ceiling fixed at deployment. See The instant redemption fee.
  5. If the path was paused, the VaultAdmin unpauses it with unpauseInstant() (HIGH).

Check the result with availableWindow(), freshnessGate(), instantPaused() and defaultSource(), and quote a holder's redemption with previewInstantRedeem(controller, shares).

Turning it down

A vault manager or the Sentry can act at once: lowerWindowCapacity, lowerWindowRefillRate, tightenFreshnessGate, pauseInstant and clearDefaultSource. Clearing the source leaves vault idle as the only source. Turning any of these back up waits HIGH, or CRITICAL for a new source.

Events

ChangeEvent
Default source set or clearedDefaultSourceSet (zero addresses when cleared)
WindowWindowCapacityRaised, WindowCapacityLowered, WindowRefillRateRaised, WindowRefillRateLowered
Freshness gateFreshnessGateLoosened, FreshnessGateTightened
PauseInstantPaused, InstantUnpaused

Where to read more

PageWhat it covers
Instant withdrawalsHow an instant withdrawal is paid, step by step
The instant redemption feeWhat the fee is for and where it goes
Rate limitsHow a refilling window works
Emergency controlsTurning the path off at once