DBC: Changelog for Increased Minimum Base Fee and Error Surplus
Changelog for Program
dynamic_bonding_curve [0.1.7]
Changed
- A pool creation fee of 0.01 SOL will be charged if the pool
collect_fee_mode is CollectFeeMode::OutputToken and base_mint is token_2022 (endpoint: initialize_virtual_pool_with_token2022)
- Optimize SOL transferred to pool authority during migration by transferring only necessary needed amount. Implement flash rent in migration to damm and damm v2 as well as create locker that requires at least 1 SOL in
pool authority
- Increase max migrate fee to 99%
Added
- Adding new endpoint
claim_pool_creation_fee to claim pool creation fee charged to treasury
- Adding new endpoint
withdraw_lamports_from_pool_authority to withdraw excessive lamports to treasury
Deprecated
- Endpoint
migration_damm_v2_create_metadata and migration_metadata account, migrator doesn't need migration_metadata anymore in damm v2
Fixed
- Using
saturating_sub instead of safe_sub for elapsed calculation
- Rate limiter is not apply for swap2
- Validating base fee for rate limiter
Breaking Changes
- Swap ExactIn and SwapExactOut won't take surplus for the last swap, instead of returning error if
pool.sqrt_price is over migration_sqrt_price
- Changing min base fee from 1 bps (0.01%) to 25 bps (0.25%). Effected to endpoints:
create_config, initialize_virtual_pool_with_spl_token and initialize_virtual_pool_with_token2022. Not able to work if min base fee less than 25 bps.
Changelog for Typescript SDK