Skip to main content
POST
Removes collateral from a loan while leaving it open. The contract reverts if the withdrawal would push the health factor below 1.0, so a loan can only shed collateral it does not need. Single transaction in both modes.

Path Parameters

string
required
Market ID.

Body Parameters

integer
required
On-chain loan ID. Must be a positive integer sent as a JSON number.
string
required
Security tokens to release, as a decimal string. Parsed at the collateral token’s decimals.
object
EIP-712 signed price from Sign Price. Omit to price against the stored oracle value.
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
This endpoint performs no preflight check. A withdrawal that would breach the health factor, exceed the posted collateral, or target an inactive loan reverts on-chain. Compute the safe amount from the loan’s current state before submitting.
Where the released tokens end up depends on the market mode. FREEZE markets unfreeze them in place, so the borrower’s balance does not change but the tokens become transferable again. CUSTODY markets transfer them out of the adapter back to the borrower.