Skip to content

Commit

Permalink
example: update comment for amm
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Sep 15, 2021
1 parent 2730553 commit 6515f26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/amm.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"SBLPQEGODE2GKGL2RMQRZAJBR73S3R4UI2RD2I2U2ZDDIVU2NDBSZATS"
)

# Here we define a Liquidity Pool Asset
asset_a = Asset.native()
# We assume that Hello asset already exists in the Stellar network,
# and you can learn how to issue assets through examples/issue_asset.py
# Here we define a Liquidity Pool Asset.
asset_a = Asset.native()
asset_b = Asset("Hello", "GD5Y3PMKI46MPILDG4OQP4SGFMRNKYEPJVDAPR3P3I2BMZ3O7IX6DB2Y")
liquidity_pool_asset = LiquidityPoolAsset(asset_a=asset_a, asset_b=asset_b)
liquidity_pool_id = liquidity_pool_asset.liquidity_pool_id
print(f"Liquidity Pool ID: {liquidity_pool_id}")

source_account = server.load_account(account_id=source_keypair.public_key)

# First we need to add a line of trust for liquidity_pool_asset.
# First we need to add a trust line for liquidity_pool_asset.
transaction1 = (
TransactionBuilder(
source_account=source_account,
Expand Down

0 comments on commit 6515f26

Please sign in to comment.