- Loan repayment
Undercollateralized loans are usually based on trust. Lenders do a credit check and hope the loan gets paid back. Whenever that trust gets violated, this has consequences as seen in 2022. For this reason overcollateralized protocols, like AAVE, although inefficient, focus on providing trustless loans. They are able to do this by liquidating loans as they near insolvency.
With DeltaPrime we are evolving this system, combining the best of both worlds: the capital efficiency of protocols like Goldfinch with the trustlessness of protocols like AAVE. Liquidations are one of the main security measures of DeltaPrime. It ensures that loans can be safely repaid. If the collateral ratio of a Prime Account hits or drops below 20%, part of the borrowed funds get liquidated. Part of the outstanding borrows will be repaid in order to increase the collateral ratio back to a healthy percentage.
Currently, only whitelisted actors can run liquidation bots. In the future, everyone can run these bots on DeltaPrime. If a Prime Account's health ratio hits or drops below 0%, all liquidation bots are incentivized to perform a liquidation on that account. Instead of liquidating the account fully, liquidation bots can only perform partial liquidations, up to a health of 25%. This way borrowers don't lose everything due to a price spike, while depositors stay protected. Whenever a liquidation bot successfully liquidates a position, it will get a liquidation bonus as an incentive, paid by the Prime Account.
Chart on liquidation events. At 4.5x stable borrow, if your portfolio drops 50% in value, your collateral drops ~100%
This chart assumes $450 borrowed in a stable, and swapped it all for $ETH, keeping your debt $450 with a declining ETH price.
In the extreme case that the loan is so small that the liquidation bots don't have enough incentive to liquidate, protocol-owned liquidation bots will liquidate the position. This might mean the liquidation happens at a small loss for the protocol, which will be covered by insurance funds in the treasury. The treasury will be filled with a part of the protocol revenue. This method secures the funds of depositors to prevent them from losing their capital due to a large amount of illiquid ghost contracts or black swan events. Eventually, stability pools will be set up, in which users can participate to cover potential bad debt. Information on the specifics of these pools and their rewards will be shared later.
Liquidation bots are an essential part of DeltaPrime's security. For this reason we incentivise users to run their own bots on the platform. Read here how to create and run your own DeltaPrime liquidation bot.
Borrowed funds must be repaid in the same currency they were issued with. When liquidation occurs the bot will pay back the loan in following steps:
- 1.Calculate how much should be repaid to bring the loan back to a safe level.
- 2.Repay part of the loan from tokens supplied by liquidation bot.
- 3.Transfer part of account positions + liquidation bonus to the liquidator (of the same USD value as supplied in pt. 2).
This is a highly summarised version. For the full liquidation process, including a liquidation example, see this document:
DeltaPrime liquidation process (1).pdf
The pdf was created during the alpha version and shows an LTV of 500% instead of a health meter of 0%. While the numbers might differ, the mechanics of liquidation stay the same.