-
Notifications
You must be signed in to change notification settings - Fork 532
6A. Liquidation & Emergency Shutdown
- Liquidation & Emergency Shutdown
If the collateral ratio of a loan is below the liquidation ratio, then it will be liquidated, meaning the collaterals of the loan will be sold for aUSD to payback outstanding debts. Depending on quantity, the collaterals will be sold on DeX automatically for acceptable price and slippage, and rest will be put on a collateral auction.
If your loan is at risk - that is the collateral ratio is close to the required liquidation ratio e.g. current collateral ratio is 150%, while the liquidation ratio is 135%, then a mere 10% price movement downwards will trigger liquidation. So as a loan owner, you will need to monitor the loan position closely, if your loan is at danger of liquidation, either add more collateral to keep the loan afloat, or payback debts (by clicking the Payback
button) to increase collateral ratio to avoid liquidation.
Risky Position
- RED: Highly risky position, the current collateral ratio is very close to (on Mandala Testnet: within 10% of) the liquidation ratio.
- YELLOW: Medium risky position, the current collateral ratio is relatively close to (on Mandala Testnet: within 20% of) the liquidation ratio.
- GREEN: Safe position, the current collateral ratio is well above (on Mandala Testnet: above 20% of) the liquidation ratio.
To de-risk a position, click the Deposit
button to add more collateral, or click the Payback
button to payback aUSD debt.
Highly Risky Position
Medium Risky Position
Acala uses Off-Chain Worker to automatically assess loan positions and liquidate loans. For liquidations with small amount of collaterals, it will be liquidated on the DeX automatically. The rest will be auctioned on collateral auctions, and users can participating in bidding the collaterals. More details on the process here. Read more on types of auctions [here]
Log on the the Pulse App (link coming soon...), navigate to the Liquidation
tab - Collateral Auction
section, and you can see available auctions to participate in.
These are relevant liquidation related events
You can also participate in these system debit & surplus auctions. (https://github.com/AcalaNetwork/Acala/wiki/6.-Auctions).
Monitor and participate in auction using the Guardian framework, see examples here.
-
Click the
Deploy on Heroku
button to launch Heroku -
Fill in the configuration
- Bidder Address: the account for the bot, make sure it has aUSD or other required trading assets
- SURI: this can be the derived path or mnemonic
- Margin:
- Endpoint: Latest WS endpoint here
The CDP Guardian Bot will monitor your loan position, and automatically deposit more collateral to keep your loans afloat if the collateral ratio drops below a certain threshold. More here.
- Watch it bid 💰
Ryabina built a Telegram 🤖️ for Acala users to monitor their financial status - loan positions, liquidation events, balance changes, liquidity provision and returns. Join here.
Read the mini guide here.
Add Alerts for aUSD Loans
Add Alerts for Liquidation Auctions
Emergency shutdown is the last resort to protect Acala's stablecoin system against serious security threats. The shutdown is triggered via Acala governance. It will enforce target prices of assets, and ensure aUSD and loan owners receive the value of assets they entitled to.
The system is capable of partial shutdown loans for single collateral or a global shutdown. Hereafter we will detail the global Emergency Shutdown procedure. When a global Emergency Shutdown is triggered, the following would happen:
- Shutdown triggered: users are not allowed to update loan positions, the system will lock a target price for each asset, however users are free to withdraw any free collaterals i.e. collaterals that are yet to be used to borrow aUSD.
- Loan processing: the system will stop/clear all auction, process outstanding loans and debts, this may take some time, but ultimately a basket of collateral assets will be available for aUSD holders to reclaim
- Reclaim debts: upon step #2 completion, the system will return to the initial status of zero surplus and zero debt, users can burn their aUSD and reclaim equivalent value of collateral assets (which could be a mixture of renBTC, DOT etc). The mixture of collaterals returned will be determined by the system based on availability.
Step 1 Shutdown starts... Users can withdraw their free collaterals i.e. collaterals that are not used/locked for aUSD loans. Other loan update operations are prohibited hereafter.
Step 2 Liquidation... The system will clear all outstanding auction, loans and debts.
Step 3 Reclaim aUSD collaterals... Upon Step 2 completion, aUSD holders and loan owners can burn aUSD to reclaim collateral assets.