Curve Amm Pallet Extrinsics

Create

create

Create a new pool.

Emits PoolCreated event when successful.

Buy

buy

Execute a buy order on pool.

Emits Swapped event when successful.

Sell

sell

Execute a sell order on pool.

Emits Swapped event when successful.

Swap

swap

Execute a specific swap operation.

The quote_amount is always the quote asset amount (A/B => B), (B/A => A).

Emits Swapped event when successful.

Add Liquidity

add_liquidity

Add liquidity to a stable-swap pool.

Emits LiquidityAdded event when successful.

Remove Liquidity

remove_liquidity

Remove liquidity from stable-swap pool.

Emits LiquidityRemoved event when successful.