Skip to content

Commit

Permalink
fix: ramp A gamma with old xp[i] value and not new one
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Nov 1, 2023
1 parent 6ab6f4a commit 3c3e29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/main/CurveTwocryptoOptimized.vy
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ def _exchange(
dy: uint256 = 0

y: uint256 = xp[j]
x0: uint256 = xp[i]
x0: uint256 = xp[i] - dx_received # old xp[i]

price_scale: uint256 = self.cached_price_scale
xp = [
Expand Down

0 comments on commit 3c3e29a

Please sign in to comment.