In the current implementation of DSCEngine.sol
, there is no mechanism to withdraw remaining funds when all DSC tokens have been redeemed and no more are in circulation. This can lead to funds being permanently locked in the contract.
If all DSC tokens are redeemed and no more are in circulation, there's currently no way to withdraw the remaining funds in the contract.
The inability to withdraw remaining funds when all DSC is redeemed can lead to funds being permanently locked in the contract.
Create a function that allows the withdrawal of remaining funds when all DSC tokens have been redeemed and none are in circulation. Here is a potential code snippet:
Implement secure access control, event logging, and conduct thorough testing and auditing to ensure proper functionality.
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.