You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In pushUnderlying and pullUnderlying, to compute the tokenAmount it is required to divide by BASE twice. Square of BASE can be saved in a constant to avoid applying this division twice. Simply a new variable called BASE2 (representing square of BASE) can apply the same logic for less gas.
The text was updated successfully, but these errors were encountered:
Handle
0x0x0x
Vulnerability details
In
pushUnderlying
andpullUnderlying
, to compute thetokenAmount
it is required to divide byBASE
twice. Square ofBASE
can be saved in a constant to avoid applying this division twice. Simply a new variable calledBASE2
(representing square ofBASE
) can apply the same logic for less gas.The text was updated successfully, but these errors were encountered: