The DSCEngine.sol
contract lacks a mechanism to withdraw excess reserves that can accumulate during liquidations. This leads to inefficient use of funds, as excess reserves above a certain threshold (e.g., 5%) cannot be reallocated or utilized elsewhere.
When liquidations occur, excess reserves may accumulate within the contract. There's no function to withdraw these excess funds, leading to inefficiencies.
The inability to withdraw excess reserves can lead to funds being locked in the contract, resulting in an inefficient use of funds.
Implement a function that allows an authorized entity to withdraw excess reserves when they exceed a certain threshold relative to the required reserves. Here is a potential code snippet:
Ensure secure access control, implement event logging, and conduct thorough testing and auditing.
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.