From 6ab6f4a9bb3936fa214e37b983fe42b9ccf38ae3 Mon Sep 17 00:00:00 2001 From: bout3fiddy <11488427+bout3fiddy@users.noreply.github.com> Date: Wed, 1 Nov 2023 12:46:53 +0100 Subject: [PATCH] fix: rearrange calcs to avoid overflow --- contracts/main/CurveCryptoMathOptimized2.vy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/main/CurveCryptoMathOptimized2.vy b/contracts/main/CurveCryptoMathOptimized2.vy index dcb98c57..2dd7d79b 100644 --- a/contracts/main/CurveCryptoMathOptimized2.vy +++ b/contracts/main/CurveCryptoMathOptimized2.vy @@ -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 )