The setAuctionConfig
function in the DaiGoldAuction
contract is designed to allow the configuration of auction parameters. However, due to the validation logic, it does not permit setting the auction configuration even during the cooldown period. This restriction can hinder the ability to update the auction settings promptly.
The inability to set the auction configuration during the cooldown period has several negative implications:
Operational Flexibility: Preventing the update of auction settings during the cooldown period limits the ability to adapt and respond to changing circumstances or correct mistakes in the auction configuration.
Administrative Efficiency: Administrators may find it challenging to manage the auction process effectively if they cannot set configurations as needed, potentially leading to operational inefficiencies.
Below is the setAuctionConfig function, highlighting the validation that causes the vulnerability:
The following validation logic causes the issue:
if (!epochs[_currentEpochId].hasEnded()) revert InvalidOperation();
To address this issue, modify the validation logic to allow setting the auction configuration during the cooldown period. This could involve checking if the current epoch is in a cooldown state rather than strictly requiring it to have ended.
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.