LB Pair Module
Handles trading logic, liquidity management, and fee collection
Structs
struct LBPair<phantom X, phantom Y> has key, store {
id: UID,
is_pause: bool,
bin_step: u16,
parameters: PairParameters,
protocol_fee_x: u64,
protocol_fee_y: u64,
bin_manager: BinManager,
oracle: Oracle,
position_manager: LBPositionManager,
balance_x: Balance<X>,
balance_y: Balance<Y>,
rewarder_manager: RewarderManager,
global_reward_state: GlobalRewardState,
}Events
Trading Functions
Liquidity Management
Position Management
Fee Collection
Reward System
Flash Loans
View Functions
Last updated