The mintFaucetTokens function allows the owner to mint arbitrary amounts of tokens to the contract, with only a check that the contract’s balance is below 1000 * 10**18. This weak constraint allows excessive minting, potentially inflating the token supply beyond intended limits.
Likelihood:
Occurs when the owner calls mintFaucetTokens with a large amount while the contract’s balance is below 1000 * 10**18.
Occurs only if the owner intentionally or accidentally mints excessive tokens.
Impact:
Excessive token minting inflates the supply, undermining the faucet’s purpose.
Could disrupt the future protocol’s testnet, as tokens are intended for specific interactions.
Explanation: The PoC shows how the owner can mint an excessively large number of tokens as long as the contract’s balance is below the threshold. This inflates the total supply, potentially disrupting the faucet’s intended use in the testnet.
Explanation: We introduce a MAX_SUPPLY constant to cap the total token supply. A check ensures that minting does not exceed this cap, preventing excessive inflation while maintaining the existing balance threshold check.
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.