The DSCEngine.sol
contract does not have a mechanism to liquidate all assets when the peg is lost — that is, when the total reserves are less than the total DSC minted. A function to liquidate assets in this scenario could protect the remaining funds.
There's currently no function to liquidate all assets when the peg is lost, potentially leading to further loss of funds.
The absence of a liquidation function when the peg is lost may exacerbate the loss of funds, reducing the safety and integrity of the contract.
Introduce a function that liquidates all assets when the peg is lost. Here is a potential code snippet:
Implement secure access control, conduct thorough testing and auditing, and ensure that the function emits an event upon successful liquidation.
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.