Changelog for Program
❗️NOTE: This update contains BREAKING CHANGES
lb_clmm [0.12.0]
Added
- New endpoint
add_liquidity_by_weight2, that is same as add_liquidity_by_weight but supports token2022
- New endpoint
set_permissionless_operation_bits to allow position owner to enable permissionless authorization on some operations such as claim_fee
- New endpoint
place_limit_order to allow user to place limit orders for either bid or ask side.
- New endpoint
cancel_limit_order to cancel limit order.
- New endpoint
close_limit_order_if_empty to close a limit order if it's empty.
- New endpoint
close_bin_array to close an invalid bin array.
- Account
PresetParameter added new collect_fee_mode field. All the existing PresetParameter account will have default CollectFeeMode::OnlyInput.
- Account
LbPair::StaticParameters added new collect_fee_mode field. All existing LbPair account will have default CollectFeeMode::OnlyInput.
Changed
- Allow permissionless claim_fee if position owner enabled it
- All the existing
LbPair accounts without any liquidity mining rewards will be defaulted to limit order supported pool and doesn't support LM anymore. This is not revert-able.
- Updated
initialize_permissioned_lb_pair parameter InitPermissionPairIx field protocol_share to padding0 because it was no longer in use
- Endpoint
go_to_a_bin will revert if the pool is disabled / before activation. The restriction can be bypassed by operator by passing operator associated accounts through remaining accounts.
Removed
- Remove endpoint
reset_pool_tombstone_fields, reset_bin_array_tombstone_fields, reset_position_tombstone_fields
Breaking Changes