Open code423n4 opened 3 years ago
jvaqa
This check is unnecessary since Solidity 0.8.x prevents overflows: require(_balances[_to] + _value >= _balances[_to], 'Balance overflow');
Remove the aforementioned line of code, since Vether.sol uses Solidity 0.8.x, so it will revert on an overflow anyways.
Handle
jvaqa
Vulnerability details
Proof of Concept
This check is unnecessary since Solidity 0.8.x prevents overflows: require(_balances[_to] + _value >= _balances[_to], 'Balance overflow');
Recommended Mitigation Steps
Remove the aforementioned line of code, since Vether.sol uses Solidity 0.8.x, so it will revert on an overflow anyways.