The _mint function is expected to increase the total supply and user balance by a specific amount.
The implementation uses unchecked Yul add instructions; this allows the total supply or balance to wrap around from type(uint256).max to 0 without reverting.
Likelihood:
A malicious admin or open mint function allows minting enough tokens to exceed 2^256 - 1.
Impact:
Total supply accounting becomes corrupt, potentially showing 0 supply despite massive holder balances.
This breaks the totalSupply == sum(balances) invariant which is critical for many DeFi protocols.
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.