Skip to main content
GET
Returns the realization surplus the market contract holds in escrow for one address. The amount is in the settlement token (stablecoin) and covers every loan of that address on this market, not a single loan. A surplus arises when a liquidation’s sale or auction proceeds exceed what the market may keep. The market keeps the debt the loan owed at seizure plus a penalty on it, and pays the rest to the borrower recorded on the liquidation. The penalty is the market’s liquidation penalty on a health liquidation and the loan’s term penalty on a term realization. If the settlement token refuses the payout, the market escrows the amount under the borrower’s address instead of reverting the settlement. The borrower withdraws it with Claim Surplus. This is not collateral escrow. A CUSTODY market’s adapter escrows collateral tokens when their return is blocked, which Get Escrowed Collateral reads. A surplus is held by the market itself, in the borrow asset, on FREEZE and CUSTODY markets alike.

Path Parameters

string
required
Market ID.
string
required
Address to read the escrow for, usually the borrower on a liquidation. 0x followed by 40 hex characters.

Response Fields

object
claimable: true says an escrow exists, not that a claim will succeed. The claim repeats the refused transfer, so it reverts while the settlement asset still refuses the borrower.

Error Codes