x
x
xToken
Search…
Liquidations
Addresses that fall below a Health Factor of 1 are vulnerable to liquidations. A borrower should ensure that their Health Factor is comfortably above 1 to avoid the risk of liquidation.
Liquidators have the option to fully or partially liquidate an underwater position. Liquidators will earn an 10% liquidation penalty paid on total loan value. For example, if a liquidator liquidates (i.e., pays back) a position with $100 debt value, the liquidator will receive $110 in collateral value.
For loans with multiple collateral assets deposited, liquidators have the option to specify preferences for which asset they'd like to receive.

Liquidation Docs

Step #1: Approve the xToken Lending LiquidityPool contract as a spender on your USDC. See Lending Addresses for the relevant information.
Step #2: Liquidators should run the function liquidateWithPreference with the following params:
  • _borrower: Address with loan being liquidated
  • _amount: USDC amount that will be repaid. You must have this value in your address or liquidator contract
  • _markets: An array of addresses of the Market contracts for each collateral asset. We've provided a table with the relevant address for each collateral asset below.
Collateral Asset
Market Contract
WETH
0x56F9261EcA26d055A2ca5aa5a6D25A8648C96801
WBTC
0x769c382124Bd87c78D4316e3dDB77E925c008487
LINK
0xEA32195F8BFb435292aC38659fBB571E6963cFda
Last modified 1d ago
Copy link