Liquidity Bootstrapping Pallet Extrinsics
Create
Create a new pool.
Emits PoolCreated
event when successful.
Buy
Execute a buy order on a pool.
Emits Swapped
event when successful.
Sell
Execute a sell order on a pool.
Emits Swapped
event when successful.
Swap
Execute a specific swap operation.
Buy operation if the pair is the original pool pair (A/B). Sell operation if the pair is the original pool pair swapped (B/A).
The quote_amount
is always the quote asset amount (A/B => B), (B/A => A).
Emits Swapped
event when successful.
Add Liquidity
Add liquidity to an LBP pool.
Only possible before the sale started.
Emits LiquidityAdded
event when successful.
Remove Liquidity
Withdraw the remaining liquidity and destroy the pool.
Emits PoolDeleted
event when successful.