Skip to content

Commit

Permalink
fix: remove double precision division
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Nov 22, 2023
1 parent ba1dc63 commit a3388cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/main/CurveCryptoViews2Optimized.vy
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _get_dx_fee(
xp[i] = x_out[0]

if i > 0:
dx = dy * PRECISION / (price_scale * precisions[1])
dx = dx * PRECISION / price_scale
dx /= precisions[i]

return dx, xp
Expand Down

0 comments on commit a3388cd

Please sign in to comment.