Incorrect initial mint will break the contract #125
Labels
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
duplicate
This issue or pull request already exists
G (Gas Optimization)
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Lines of code
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/Aura.sol#L71
Vulnerability details
Impact
It was observed that if initial mint via init function becomes < EMISSIONS_MAX_SUPPLY then mint function will always fail due to totalSupply()<EMISSIONS_MAX_SUPPLY (failing Aura.sol#L101)
Proof of Concept
Recommended Mitigation Steps
The init function should call _mint function with amount as EMISSIONS_MAX_SUPPLY or more.
The text was updated successfully, but these errors were encountered: