@@ -32,16 +32,8 @@ assert chain.id() == 8453, f"Not Base Mainnet. Chain ID {chain.id()}, expected 8
3232# get flight contracts
3333(product, usdc, instance, admin, reader, registry) = from_product(w3, " FlightProduct" , os.getenv(" FLIGHT_PRODUCT_ADDRESS" ))
3434pool = pool_for_product(registry, reader, product, " FlightPool" )
35- # product = Contract(w3, "FlightProduct", os.getenv("FLIGHT_PRODUCT_ADDRESS"))
36- # usdc = Contract(w3, "FlightUSD", product.getToken())
37- # instance = Contract(w3, "Instance", product.getInstance())
38- # admin = Contract(w3, "InstanceAdmin", instance.getInstanceAdmin())
39- # reader = Contract(w3, "InstanceReader", instance.getInstanceReader())
40- # registry = Contract(w3, "Registry", instance.getRegistry())
41-
4235pool_nft = pool.getNftId()
4336bundle_nft = reader.getActiveBundleNftId(pool_nft, 0 )
44- # pool = Contract(w3, "FlightPool", registry.getObjectAddress(pool_nft))
4537
4638# amounts
4739usdc.balanceOf(pool.getWallet())/ 10 ** usdc.decimals()
@@ -56,4 +48,8 @@ expired_at < chain.timestamp()
5648# check instance owner is bundle owner
5749instance_owner = Wallet.from_mnemonic(< mnemonic> , index = 2 , w3 = w3)
5850registry.ownerOf(bundle_nft) == instance_owner.address
51+
52+ # stake additional usdc 1000 to bundle (remember to also transfer usdc to pool.getWallet())
53+ assert registry.ownerOf(bundle_nft) == instance_owner.address, " instance owner not bundle owner"
54+ pool.stake(bundle_nft, 1000 * 10 ** usdc.decimals(), {' from' : instance_owner})
5955```
0 commit comments