Withdraw

Withdraw on Exactly

Base
Base

Acts onchain

Withdraws an asset amount from an Exactly market's floating pool, burning the shares it costs. The market burns as many shares as its rate requires to pay the amount; the action returns the shares burned. The withdrawal reverts when the floating pool's free liquidity cannot cover it or when the account's remaining collateral would no longer cover its debt. The all option redeems every share. Where the Auditor answers to a firewall, as Base's does, the market serves only the accounts that firewall allows, and a call from any other account reverts; no program's socket is among them, so the wallet sends the call itself. Reach for it to take a set amount out of the floating pool, or to exit it entirely, coiling the proceeds into a following swap, repay, or transfer.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More on Exactly · 21

On other protocols · 21