Skip to content

Commit

Permalink
remove mentions of tricrypto
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Nov 9, 2023
1 parent d102eaf commit 6a22fe4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion contracts/main/CurveCryptoMathOptimized2.vy
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Swiss Stake GmbH are allowed to call this contract.

"""
@title CurveTricryptoMathOptimized
@title CurveTwocryptoMathOptimized
@author Curve.Fi
@license Copyright (c) Curve.Fi, 2020-2023 - all rights reserved
@notice Curve AMM Math for 2 unpegged assets (e.g. ETH <> USD).
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def hacker():


@pytest.fixture(scope="module")
def factory_admin(tricrypto_factory):
return tricrypto_factory.admin()
def factory_admin(twocrypto_factory):
return twocrypto_factory.admin()


@pytest.fixture(scope="module")
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def views_contract(deployer):


@pytest.fixture(scope="module")
def tricrypto_factory(
def twocrypto_factory(
deployer,
fee_receiver,
owner,
Expand Down
16 changes: 8 additions & 8 deletions tests/fixtures/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _get_deposit_amounts(amount_per_token_usd, initial_prices, coins):
def _crypto_swap_with_deposit(
coins,
user,
tricrypto_swap,
twocrypto_swap,
initial_prices,
dollar_amt_each_coin=int(1.5 * 10**6),
):
Expand All @@ -38,13 +38,13 @@ def _crypto_swap_with_deposit(

# approve crypto_swap to trade coin for user:
with boa.env.prank(user):
coin.approve(tricrypto_swap, 2**256 - 1)
coin.approve(twocrypto_swap, 2**256 - 1)

# Very first deposit
with boa.env.prank(user):
tricrypto_swap.add_liquidity(quantities, 0)
twocrypto_swap.add_liquidity(quantities, 0)

return tricrypto_swap
return twocrypto_swap


@pytest.fixture(scope="module")
Expand All @@ -66,15 +66,15 @@ def params():

@pytest.fixture(scope="module")
def swap(
tricrypto_factory,
twocrypto_factory,
amm_interface,
coins,
params,
deployer,
):

with boa.env.prank(deployer):
swap = tricrypto_factory.deploy_pool(
swap = twocrypto_factory.deploy_pool(
"Curve.fi USD<>WETH",
"USD<>WETH",
[coin.address for coin in coins],
Expand All @@ -95,7 +95,7 @@ def swap(

@pytest.fixture(scope="module")
def swap_multiprecision(
tricrypto_factory,
twocrypto_factory,
amm_interface,
stgusdc,
deployer,
Expand All @@ -116,7 +116,7 @@ def swap_multiprecision(
}

with boa.env.prank(deployer):
swap = tricrypto_factory.deploy_pool(
swap = twocrypto_factory.deploy_pool(
"Curve.fi STG/USDC",
"STGUSDC",
[coin.address for coin in stgusdc],
Expand Down

0 comments on commit 6a22fe4

Please sign in to comment.