Borrowing
Withdraw Collateral
Release excess collateral from an open loan
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
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.