Use of SafeMath with pragma ^0.8.0 #113
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
Handle
Reigada
Vulnerability details
Impact
Contracts: AirdropDistribution.sol, InvestorDistribution.sol, Vesting.sol and PublicSale.sol are using SafeMath with a pragma ^0.8.0. This makes no sense and just causes more gas to be used as versions ^0.8.0 of Solidity already check for overflows/underflows.
https://github.com/ethereum/solidity/releases/tag/v0.8.0
Tools Used
Manual testing
Recommended Mitigation Steps
Remove SafeMath and modify the mathematical operations to use the standard math operators.
The text was updated successfully, but these errors were encountered: