♾️3.5 Liquidations
Last updated
Last updated
The FROB has a cross-collateral system, meaning each loan is backed by an amount of collateral that is automatically computed when a "liquidability check" is performed.
The criteria that is used is the pro rata collateral assignment: since each DebtPosition represents a percentage of the total borrower debt, that loan is backed by an equivalent percentage of the borrower collateral.
To be able to compute the amount of auto-assigned collateral dynamically in a scalable way, the protocol tracks both
total borrower debt and
total borrower collateral
so the automatically assigned collateral is
with
the total collateral of the borrower at the time
the total debt of the borrower at the time
the total outstanding debt of the loan belonging to the borrower at time (amount due to the lenders)
the collateral automatically assigned to the loan belonging to the borrower at time
The notation stresses how all of these quantities change over time as the result of the various actions the borrower and lender can take, which are
can be partially reduced both by the borrower via partial repayment and the lender via self-liquidation (when it is allowed)
the total debt of the borrower changes as new loans are opened and closed
the total collateral of the borrower changes as he deposits and withdraws it or liquidations and self-liquidations happen
Each loan has a collateral ratio computed as
The protocol has 2 collateral thresholds that are checked
The initial values are set to
Overdue loans are also eligible for liquidation, regardless of the borrower's collateral ratio.
Since
with
This is split as follows
Running a standard liquidation on such a loan would mean the liquidator suffers a net loss. This is a negative incentive for any 3rd party liquidator, so the only actors likely to perform a standard liquidation on an undercollateralized loan is one of Size's bots, with the purpose of taking a loss to make the lender whole.
This kind of liquidation will be subsidized by means of an insurance fund. However, it is not possible to assume that insurance capacity will be sufficient to make all the lenders whole in every potential scenario. In this case, lenders can also perform a "self-liquidation".
Using this mechanism, a proactive lender can limit the loss when the price of the collateral drops quickly. This mechanism is designed to leave it as an individual choice of each lender whether to self-liquidate as a stop loss and carry some inventory risk (or swap the ETH back into stablecoins) or keep the loss unrealized hoping the collateral ratio goes up again.
This operation does not change the collateralization of the borrower:
Proof
To simplify the notation let's redefine symbols as follows
To recap, the self-liquidation mechanism works as follows
Collateral Ratio before
Collateral Ratio after
Let's compute the difference in CR so
Let's double-check computing also the aggregated CR
Let's compute the delta CR and for the sake of simplicity let's skip the denominator since it is not relevant
Skipping the simplifications we get that this is equal to zero if
This mechanism consists of a liquidator performing a standard liquidation, but the repaid proceeds do not become immediately available for the lender(s) to be claimed but are used to fill a borrow market order instead, making sure that the due date remains the same as the one of the liquidated lender so the lender(s) can claim when they expect to
When the loan is overdue, it is eligible for liquidation in the same way as underwater loans. However, overdue loans with healthy collateral ratios have reduced penalties for the borrower.
the minimum collateral ratio for opening a new loan and
the minimum collateral ratio for making a loan eligible for a standard liquidation
When a loan is eligible for standard liquidation, the liquidator is supposed to cover all the with an equivalent amount of USDC
the face value of the loan, so the sum of all the related lender(s) credits
In exchange, the liquidator gets an equivalent amount of collateral computed using our oracle price at the time of liquidation
If it means the liquidation is profitable, and there is an incentive reward to be paid to liquidators. The liquidator gets up to a fixed 5% reward on the loan's face value. Then, the collateral remainder is split as follows:
collateral remainder percentage back to the liquidated borrower
collateral remainder percentage to the protocol
When it means the loan is undercollateralized.
When this happens, the lender cancels an amount of debt in the DebtPosition equivalent to their credit and, in exchange, they get an amount of collateral equivalent to the percentage of the total credit of that loan, so its face value , from the borrower reserves.
If a lender owns the credit on the loan then what happens is
the new debt of the loan is
the amount of collateral is transferred from the borrower reserves to the lender reserves
: auto-assigned collateral (previously known as )
: total loan debt (previously known as )
: amount of credit canceled in the self-liquidation process
lender forgives amount of credit and therefore the new debt is
in exchange, he receives collateral pro rata so the new collateral is so
CR Before where is the auto-assigned collateral to that loan and is the debt of that loan
CR After
which is true if which means that a specific loan needs to have the same collateral ratio as all the other loans and we know this is always true by construction.
Letting aside protocol fees that have already been taken on the liquidated loan during the standard liquidation process, at the due date the new borrower must return the face value of the liquidated loan plus the new protocol fees
If the liquidation happens at time and the due date is at then the new loan needs to have a duration of and the corresponding rate is obtained by applying this term to the yield curve of the new borrower so that we obtain the new rate which allows the computation of the actual amount to lend out aka issuance value of the new loan that replaces the old one.
Since always then and this determines a net profit that is earned in cash by the protocol