Skip to main content
Fill queued requests as liquidity becomes available. Managers and allocators can execute fills through the vault’s withdrawal-fill policy; depositors claim the allocated tokens separately.

Find pending requests

Fetch your vault’s requests and keep those with LP tokens left to fill:
Use the selected request’s publicKey as withdrawalAddress below. Plan liquidity around the vault’s withdrawal schedule. You can fill a request before it becomes claimable; you do not need to wait for its unlock time.

Choose the payout

Fills use the vault’s registered deposit assets. If their reserve balances are insufficient, withdraw funds from positions first, or fill part of the request. By default, the SDK draws from available token-entry balances in vault order. Set tokenEntryIndices to restrict the payout assets and their order. A full fill requires enough liquidity across those entries.

Execute the fill

For an ordinary queued request, use the transaction builder. Governance opt-out requests need a proposal account; use the manual fill builder for those.
build() returns an execution plan and prepares policy execution, supported price refreshes, and valuation accounts. send() handles lookup tables, simulates, and submits its transactions in order. Keep the underlying oracle and protocol inputs current. For a partial fill, replace the fill declaration with a capped amount in the accounting denomination’s smallest units:
With USD6 accounting, this requests up to $250 before the withdrawal fee, using token entry 0. The SDK limits the planned fill to available liquidity; onchain prices determine the executed payout. Each fill burns the redeemed LP tokens and fixes the token payout after fees. The depositor can claim once the request unlocks, including after a partial fill; claiming returns any unfilled LP tokens and closes the request.