Add Initial Liquidity

Transactions

1. AssetTransfer:

Sender: user_address Receiver: pool_address Index: asset_1_id Amount: asset_1_amount

2. AssetTransfer/Pay:

Sender: user_address Receiver: pool_address Index: asset_2_id Amount: asset_2_amount

3. AppCall:

Sender: user_address Index: tinyman_amm_v2_app_id OnComplete: NoOp App Args: [“add_initial_liquidity”] Foreign Assets: [pool_token_asset_id] Accounts: [pool_address] Fee: (2 * min_fee)

Side Effects

Local State Changes

  1. asset_1_reserves

  2. asset_2_reserves

  3. issued_pool_tokens

Inner Transactions

1. AssetTransfer:

Sender: pool_address Receiver: user_address Index: pool_token_asset_id Amount: (See formula II.A for pool token calculation)

Last updated