Readonly
programInput:
Amounts to deposit
Pool address
Optional
send(true) Send and confirm the transaction.
Cancel a pool in case it's not started yet.
Input:
Pool address
Optional
send(true) Send and confirm the transaction.
Finalize a pool.
Input:
Pool address
Optional
send(true) Send and confirm the transaction.
Freeze a pool.
Input:
Pool address
Optional
send(true) Send and confirm the transaction.
Get all pool data.
All pool readable data.
Get pool data.
Pool address.
Pool readable data.
Initialize joins to add liquidity for each mint to the pool.
After joinning all tokens, the pool will change its state from Uninitialized
to Initialized
.
Input:
Amount of tokens.
Token address will be add liquidity.
The pool address will be add liquidity.
Optional
send(true) Send and confirm the transaction.
Initialize a Pool. This pool will generate with mintsConfigs.
Maximum number of tokens in pool = 8
After the init, the authority needs to call initializeJoin
to add liquidity and activate the pool.
Input:
The fee of swap.
Optional
mintThe LP token keypair.
List mint config of pool (pk, treasury, weight, action status).
Optional
pool?: KeypairThe pool keypair.
Optional
send(true) Send and confirm the transaction.
The tax (platform fee) of swap.
The taxman address.
Parse pool buffer data.
Pool buffer data.
Pool readable data.
Remove liquidity.
Input:
Amount of LP tokens
Pool address
Optional
send(true) Send and confirm the transaction.
Swap multiple hops in once.
Input:
Bid amount
The bottom limit is to prevent slippage rate.
The route specification
Optional
send(true) Send and confirm the transaction.
Swap tokens. This function is to swap on a signle hop. If you intent to swap multiple hops, you route
instead.
Input:
Ask token address
Bid Amount
Bid token address
The bottom limit. It prevents large slippage rate.
Pool address
Optional
referralThe list of referral addresses.
Optional
send(true) Send and confirm the transaction.
Thaw a pool.
Input:
Pool address
Optional
send(true) Send and confirm the transaction.
Transfer pool ownership.
Input:
New owner address
Pool address
Optional
send(true) Send and confirm the transaction.
Update token actions in a pool.
Input:
Token actions
Pool address
Optional
send(true) Send and confirm the transaction.
Update pool fee & tax
Input:
New fee
Pool address
Optional
send(true) Send and confirm the transaction.
New tax
Update token weights in a pool.
Input:
Pool address
Optional
send(true) Send and confirm the transaction.
Token weights
Watch account changes
Callback function
Optional
filters: GetProgramAccountsFilter[]Event filters
Watch id
Generated using TypeDoc
Add liquidity to the pool. It supports full and sided liquidity deposit.