Skip to content

Commit

Permalink
fix: rearrange calcs to avoid overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Nov 1, 2023
1 parent 97a644b commit 6ab6f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/main/CurveCryptoMathOptimized2.vy
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def get_y(
10**32*3
+ 4*gamma*10**14
+ gamma2/10**4
+ 4*ANN*gamma2*x_j/D/10000/4/10**4
+ 4*ANN*gamma2/D*x_j/10000/4/10**4
- 4*ANN*gamma2/10000/4/10**4
)

Expand Down

0 comments on commit 6ab6f4a

Please sign in to comment.