Closed code423n4 closed 2 years ago
0x0x0x
In calcTokensForAmountExit and calcTokensForAmount, bs.token.length is used thrice. It would be more gas efficient to simply cache it.
calcTokensForAmountExit
calcTokensForAmount
bs.token.length
Duplicate of #249 from same warden.
Handle
0x0x0x
Vulnerability details
In
calcTokensForAmountExit
andcalcTokensForAmount
,bs.token.length
is used thrice. It would be more gas efficient to simply cache it.