Skip to main content
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.
shares is always parsed at 18 decimals, regardless of the market’s borrow asset. This is the one amount in the API that does not follow the borrow asset’s precision. Read a provider’s share balance from Get Provider Balance and pass it through unchanged.

Path Parameters

string
required
Market ID.

Body Parameters

string
required
LP shares to redeem as a decimal string with up to 18 decimal places, for example "250000". Must be greater than zero.
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. The transaction reverts rather than partially filling. Check availableLiquidity on Get Market Metrics before redeeming a large position.