Liquidation
The liquidation mechanism ensures the protocolโs safety by liquidating undercollateralized debts.
Last updated
Was this helpful?
The liquidation mechanism ensures the protocolโs safety by liquidating undercollateralized debts.
Last updated
Was this helpful?
A loan position is liquidated when the users' borrow balance is greater than or equal to the , as a result, the Liquidation Margin is equal to zero.
Where:
The liquidators are bots used by third parties that detect the undercollateralized position and liquidate them. The liquidation can be operated on the whole amount of the loan position or just a part of it. Liquidators are incentivized to purchase the collateral at a lower price at the borrower's expense.
Due to collateral fluctuation or unpaid interest, the Liquidation Margin reaches the value of zero. So, the liquidator:
1.1 - asks for liquidation
1.2 - repays the borrowed amount plus the accrued interest
1.3 - receives the amount of fToken used as collateral by the borrower
2.1 - sends the fToken to the protocol
2.2 - receives the amount of token originally deposited by the borrower plus the interest accrued
The Liquidation Margin is an index that has been designed to make sure the user understands how close liquidation is. The Liquidation Margin of a certain borrow is expressed at each time as follows:
represents the . It is computed as follows:
is the ratio between the borrowed and deposited asset value.
represents the borrow balance of the user, which is composed of the borrowed amount, plus the accrued and unpaid .
Folks Finance runs the community liquidators. The total profits from this operation are deposited into the .
An open-source package is published on the official Folks Finance to allow anyone to build their own liquidator.