diff --git a/contracts/mainnet/registry_handlers/ng/CurveStableSwapFactoryNGHandler.vy b/contracts/mainnet/registry_handlers/ng/CurveStableSwapFactoryNGHandler.vy index 1f7c206..b1173e4 100644 --- a/contracts/mainnet/registry_handlers/ng/CurveStableSwapFactoryNGHandler.vy +++ b/contracts/mainnet/registry_handlers/ng/CurveStableSwapFactoryNGHandler.vy @@ -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 diff --git a/scripts/deploy_and_setup_stableswap_factory_ng_handler.py b/scripts/deploy_and_setup_stableswap_factory_ng_handler.py index 2e11b94..eb31d69 100644 --- a/scripts/deploy_and_setup_stableswap_factory_ng_handler.py +++ b/scripts/deploy_and_setup_stableswap_factory_ng_handler.py @@ -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()