Liquidity
Remove Liquidity
Burn LP shares and withdraw the borrow asset
POST
Redeems LP shares for the borrow asset at the current share price, which includes accrued interest. No approval is needed, so this is a single transaction.
Path Parameters
string
required
Market ID.
Body Parameters
LP shares to redeem as a decimal string with up to 18 decimal places, for example
"250000". Must be greater than zero.string
Wallet holding the shares. When supplied, the redemption is checked against that provider’s share balance and against the pool’s uncommitted liquidity. A redemption that fails either check is refused with
INSUFFICIENT_SHARES or INSUFFICIENT_LIQUIDITY, instead of handing back calldata that reverts. Omit it and only the market’s total share count is checked.string
Hash of the transaction you broadcast for this operation. Send it to confirm the transaction and record the result. Omit it to receive the calldata.
Response Fields
object
Withdrawal is bounded by available liquidity, not by share balance. A provider holding shares worth more than the pool’s idle balance cannot exit fully while borrowers hold the difference, and the contract reverts rather than partially filling. Supply
provider to have that refused before you sign, or check availableLiquidity on Get Market Metrics before redeeming a large position.