Withdrawing
- Confirm the account’s supply position
- Choose amount (
0= full position for that asset) - Call
withdraw - Re-check health factor if debt remains
Call shape
Full-position sentinel:
amount = 0 withdraws the entire post-accrual supply
for that asset, and the zero is sticky across duplicate legs. The return value
is the resolved figure — the only way to learn what a withdraw-all actually paid.
There is no max_withdraw view; simulate the call instead.Preconditions
- Caller holds the account’s position NFT, or is an active delegate on it
- Asset has a live supply position (
#121if not) - If debt remains: HF ≥
1WAD, the LTV gate holds, and LTV-weighted collateral stays above the minimum-borrow floor (#100,#126otherwise) - Pool has enough cash (
#112if not) - A
pausedspoke asset blocks withdraw; afrozenone does not — freeze blocks entry only. Global protocol pause does not block withdraw either

