The contract owner is not prevented from renouncing the ownership while the contract is paused, which would cause any user assets stored in the protocol to be locked indefinitely.
Locked Assets
Operational Disruption
Loss of Trust
Manual inspection
Solidity
To fix the issue where the contract owner could relinquish ownership while the contract was paused, we had to modify the ‘renounceOwnership’ function so that it could not be called while the contract was paused.
Code snippet:
L291-L293
Add the modifier ‘whenNotPaused’ in the ‘TempleGoldStaking.sol’ file:
use this modifier in the ‘renounceOwnership’ function:
Implemented fix code:
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.