Skip to content

Commit

Permalink
Change max gamma in the pool itself
Browse files Browse the repository at this point in the history
  • Loading branch information
michwill committed Apr 8, 2024
1 parent 17fb88f commit 1aa0652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/main/CurveTwocryptoOptimized.vy
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ MIN_A: constant(uint256) = N_COINS**N_COINS * A_MULTIPLIER / 10
MAX_A: constant(uint256) = N_COINS**N_COINS * A_MULTIPLIER * 1000
MAX_A_CHANGE: constant(uint256) = 10
MIN_GAMMA: constant(uint256) = 10**10
MAX_GAMMA: constant(uint256) = 5 * 10**16
MAX_GAMMA: constant(uint256) = 3 * 10**17

# ----------------------- ERC20 Specific vars --------------------------------

Expand Down
2 changes: 1 addition & 1 deletion tests/unitary/pool/stateful/test_simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def exchange(self, exchange_amount_in, exchange_i, user):
# exchange checks:
assert approx(self.swap_out, dy_trader, 1e-3)
assert approx(
self.swap.price_oracle(), self.trader.price_oracle[1], 1e-3
self.swap.price_oracle(), self.trader.price_oracle[1], 1.5e-3
)

boa.env.time_travel(12)
Expand Down

0 comments on commit 1aa0652

Please sign in to comment.