There is no check for min and max accepted prices.
The protocol would be wise to implement a min and max accepted prices for their collateral tokens.
Imagine the following situation:
The price of a collateral drops by 50%. Many users will become eligible for liquidation. A bot that monitors users health can quickly liquidate a huge amount of users and receive very big rewards.
If a price of a collateral experiences an extreme price drop many users will become eligible for liquidation. They can be liquidated moments later, not having enough time to deposit more collateral.
Manual review
In these extreme situations it's better to freeze the function, reverting, if the price is way too low or too high.
The minPrice
and maxPrice
can be hardcoded for each collateral and/or can be modified from a function inside the DSCEngine
.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.