We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An underflow might occur at the following (if accidentally a wrong tokens is supplied):
18 - ExtendedIERC20(tokens[i]).decimals()
In solidity 6.12 the underflow means it will wrap to a large value, resulting in problems later on.
metavault/contracts/v3/strategies/GeneralConvexStrategy.sol
Line 73 in 8f35c3d
Use the safeMath sub() function
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Vulnerability details
An underflow might occur at the following (if accidentally a wrong tokens is supplied):
In solidity 6.12 the underflow means it will wrap to a large value, resulting in problems later on.
Proof of concept
metavault/contracts/v3/strategies/GeneralConvexStrategy.sol
Line 73 in 8f35c3d
Recommended mitigation steps
Use the safeMath sub() function
The text was updated successfully, but these errors were encountered: