Expected behavior:
Should only burn specified tokens directly.
Actual behavior:
Transfers all faucet tokens to owner, then burns only amountToBurn.
Likelihood:
Reason 1 // Describe WHEN this will occur (avoid using "if" statements)
Reason 2
Impact:
Owner unintentionally gains faucet tokens.
Leaves excess tokens unburned or owner-held.
Owner calls burnFaucetTokens(1000 ether); receives entire faucet balance.
Do not transfer the contract’s entire token balance to the caller and then burn only a subset. Burn tokens in-place from the faucet contract address, add sanity checks, and restrict who can call the burn function if appropriate.
This burns amountToBurn directly from the faucet contract and prevents the caller from receiving the remaining balance.
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.