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
I think amounts[amounts.length - 1] is the last logic amout input and amounts[0] is the first logic input, and for amountInMax, we need first logic input.
for expression
if (amounts[amounts.length - 1] > amountInMax)
I thought it would be
if (amounts[0] > amountInMax)
?The text was updated successfully, but these errors were encountered: