The distributeGold
function mints and distributes Temple Gold rewards to stakers. However, it currently lacks the updateReward(address(0), 0)
modifier to ensure reward-related state variables are updated correctly.
Without the updateReward(address(0), 0)
modifier, the distributeGold
function may not properly account for the latest state changes in rewards. This can lead to inaccuracies in reward distribution and incorrect calculation of claimable rewards for stakers.
Add the updateReward(address(0), 0)
modifier to the distributeGold
function to ensure all reward-related state variables are updated before distributing new rewards. This will maintain the accuracy and integrity of the reward calculation and distribution process.
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.