RaiseBoxFaucet:mintFaucetTokens
function has flawed logic for enforcing "minting is only allowed when protocol balance is insufficient for one claim"Judging from the code content, the intended behavior is "minting is only allowed when protocol balance is insufficient for one claim".
However, in the current protocol, the faucetDrip
passed in the constructor is the actual amount of tokens distributed per claim, not the magic number 1000 * 10 ** 18
.
Therefore, when the single claim amount
is greater than 1000 * 10 ** 18
and the protocol's token balance is nearly depleted, a scenario may occur where "new minting becomes impossible".
Likelihood:
May occur when the single claim amount
is greater than 1000 * 10 ** 18
and the protocol's token balance is nearly depleted.
Impact:
The administrator cannot effectively mint new tokens, causing the faucet tokens to be depleted.
This could have unpredictable negative impacts on future testing protocols.
Add the following in RaiseBoxFaucet.t.sol:
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.
The contest is complete and the rewards are being distributed.