Remove unnecessary balanceOf
call in NestedBuybacker::triggerForToken
#65
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
pmerkleplant
Vulnerability details
Function
triggerForToken
inNestedBuybacker.sol
makes abalanceOf
call onthe
_sellToken
, see line 100.However, the result of the call is never used.
It would save gas to remove the unnecessary call and variable declaration.
The text was updated successfully, but these errors were encountered: