All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Introduced a new lock escrow mechanism supported by the program.
AmmImpl.getLockedAtaAmount
to retrieve locked LP amounts from the ATA mechanism (old mechanism).AmmImpl.getLockedLpAmount
to fetch locked LP amounts from two versions of locking: ATA (old) and escrow (new), and then sum them.AmmImpl.getUserLockEscrow
to obtain the user's lock escrow state.AmmImpl.lockLiquidity
to lock the user's LP into the lock escrow.AmmImpl.claimLockFee
to claim fees from locked LPs in the lock escrow.
- Program endpoint
initialize_permissionless_constant_product_pool_with_config
. Able to create constant product pool based onconfig
account. - Program endpoint
create_config
. Config account store default fee configuration to be used in program endpointinitialize_permissionless_constant_product_pool_with_config
. - Program endpoint
remove_config
. Remove unused / misconfigured config account. - Account
config
. Used to store default fee configuration.
- Protocol fee is now part of LP trade fee.
- Rename of all
owner_trade_fee
related variables toprotocol_trade_fee
MigrateFeeAccount
andSetAdminFeeAccount
event
swap
method paramreferrerToken
is non-ATA address.AmmImpl.lockLiquidityNewlyCreatedPool
method to help lock liquidity for pool that haven't been created yetskipAta
flag to help skipping check for create ata when creating the pool inAmmImpl.createPermissionlessPool
- Protocol fee is now part of LP trade fee.
- update swap function
referralToken
param toreferralOwner
AmmImpl.createPermissionlessConstantProductPoolWithConfig
to create constant product pool based onconfig
account.AmmImpl.getFeeConfigurations
to get all fee configurations to be used inAmmImpl.createPermissionlessConstantProductPoolWithConfig