Gas: unnecessary safe math in addLiquidity
2
#261
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
Handle
cmichel
Vulnerability details
The
UniswapHandler.addLiquidity
function performs a safe math computation asrewardBalance.sub(rewardUsed)
but theif
condition already verified thatrewardUsed < rewardBalance
and therefore an unsafe subtraction can be used.The text was updated successfully, but these errors were encountered: