Beedle token contract implements 4 functions apart from inherited function from Ownable
, ERC20
, ERC20Permit
, ERC20Votes
. These function are _afterTokenTransfer
, _mint
, _burn
and mint
.
Only 'mint' function is needed and should be left in the contract.
Functions _afterTokenTransfer
and _burn
are internal and can only be called internally within the contract or by the contracts inherited from the current one. They are not called inside of the contract and won't be reachable.
Function _mint
is used in constructor, but as it simple calls the parent contract super._mint(to, amount)
there is no particular reason to add it here.
Additional gas is used for contract deployment that might be saved.
Observation.
Delete unnecessary functions
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.