Skip to content

Commit

Permalink
wip bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Apr 19, 2024
1 parent da53e7b commit c413757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def _get_underlying_coins(_pool: address) -> address[MAX_METAREGISTRY_COINS]:
def _get_meta_underlying_balances(_pool: address) -> uint256[MAX_METAREGISTRY_COINS]:
base_coin_idx: uint256 = self.base_registry.get_n_coins(_pool) - 1
base_pool: address = self.base_registry.get_base_pool(_pool)

# TODO: registry.get_underlying_balances('0x91553BAD9Fbc8bD69Ff5d5678Cbf7D514d00De0b') borks
base_total_supply: uint256 = ERC20(self._get_base_pool_lp_token(base_pool)).totalSupply()

ul_balance: uint256 = 0
Expand Down
18 changes: 2 additions & 16 deletions scripts/deploy_and_setup_stableswap_factory_ng_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,10 @@ def main(network: str = "ethereum", fork: bool = True):

# deploy basepool registry:
registry = boa.load(
"contracts/mainnet/registries/BasePoolRegistryNG.vy",
"contracts/mainnet/registry_handlers/ng/CurveStableSwapFactoryNGHandler.vy",
"0x6A8cbed756804B16E05E741eDaBd5cB544AE21bf", # stableswap factory ng
)
console.log(f"Deployed base pool registry to {registry.address}")

for _, data in BASE_POOLS.items():
registry.add_custom_base_pool(
data["pool"],
data["lp_token"],
data["num_coins"],
data["is_legacy"],
data["is_lending"],
data["is_v2"],
)

console.log(
f"Added base pool [blue]{data['pool']} to base pool registry."
)
console.log(f"Deployed Curve Stableswap Factory Handler to {registry.address}")

breakpoint()

Expand Down

0 comments on commit c413757

Please sign in to comment.