Skip to content

Commit 4c650ea

Browse files
amend app readme
1 parent dcde6c5 commit 4c650ea

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

app/README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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"))
3434
pool = 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-
4235
pool_nft = pool.getNftId()
4336
bundle_nft = reader.getActiveBundleNftId(pool_nft, 0)
44-
# pool = Contract(w3, "FlightPool", registry.getObjectAddress(pool_nft))
4537

4638
# amounts
4739
usdc.balanceOf(pool.getWallet())/10**usdc.decimals()
@@ -56,4 +48,8 @@ expired_at < chain.timestamp()
5648
# check instance owner is bundle owner
5749
instance_owner = Wallet.from_mnemonic(<mnemonic>, index=2, w3=w3)
5850
registry.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

Comments
 (0)