For the complete documentation index, see llms.txt. This page is also available as Markdown.

Withdraw

Redeem your pool shares for the underlying asset plus accrued yield, via a two-step delayed withdrawal.

Withdrawing converts your pool shares back into the underlying asset, including accrued yield. Unlike depositing, withdrawing is always a two-step, time-locked process, even when the delay is set to zero.


The two steps

  1. Create a withdrawal request. This locks the shares you want to redeem. You can have one active request at a time, and it cannot be cancelled once created.

  2. Execute the request after the pool's withdrawDelay has elapsed. The same wallet that created the request must execute it, and receives the assets.


Why the delay

Part of the pool is lent out to borrowers at any given time. The delay lets the pool manage liquidity that is locked in active financings. If much of the pool is lent out, your request may be:

  • Fulfilled proportionally: you receive the redeemable part now, and the remainder follows as loans are repaid, or

  • Delayed until enough borrowers repay.

The protocol always returns either assets or shares; it does not freeze your funds without a claim.


Things to know

  • One-way lock. createWithdrawRequest locks your shares immediately and cannot be reversed. Decide on the amount before submitting.

  • Same wallet executes. Only the wallet that created the request can execute it, after the delay.

  • Availability. What you can withdraw depends on unborrowed liquidity in the pool at execution time.

See Deposit for the other side, and How Your Capital Is Lent for what happens to your capital in between.

Last updated