The tick()
function in the RAACMinter
contract allows for the emission rate to be updated and RAAC tokens to be minted whenever the emissionUpdateInterval
is set to 0
. However, the setEmissionUpdateInterval()
function does not permit this value to be set, leading to a contradiction in the intended functionality of the contract.
1.Functionality of tick()
:
The tick()
function checks the emissionUpdateInterval
:
This allows for immediate updates and minting if emissionUpdateInterval
is 0
.
2.Restriction in setEmissionUpdateInterval()
:
The setEmissionUpdateInterval()
function prevents setting the interval to 0
:
As seen, the function reverts when a zero value is to be set. This restriction means that the contract cannot be configured to allow for immediate updates and minting.
The inability to set emissionUpdateInterval
to 0
prevents the contract from functioning as intended, where the emission rate
could be updated and tokens minted at any time.
Manual Review
Modify the setEmissionUpdateInterval()
function to allow setting the interval to 0
, enabling the intended functionality of the tick()
function.
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.