LiquidityProvider
Interface specification for the Spline liquidity provider contract.
Version: 0.1.7
ILiquidityProvider
Fully qualified path: spline_v0::lp::ILiquidityProvider
pub trait ILiquidityProvider<TStorage>
Trait functions
create_and_initialize_pool
creates and initializes a pool with ekubo key pool_key with initial tick initial_tick. only owner of liquidity provider can initialize
Fully qualified path: spline_v0::lp::ILiquidityProvider::create_and_initialize_pool
fn create_and_initialize_pool(
ref self: TStorage,
pool_key: ekubo::types::keys::PoolKey,
initial_tick: ekubo::types::i129::i129,
profile_params: Span<ekubo::types::i129::i129>,
)
compounds any existing fees on pool with ekubo key pool_key into the liquidity factor
Fully qualified path: spline_v0::lp::ILiquidityProvider::compound_fees
adds an amount of liquidity factor to pool with ekubo key pool_key, minting shares to caller
Fully qualified path: spline_v0::lp::ILiquidityProvider::add_liquidity
remove_liquidity
removes an amount of liquidity factor from pool with ekubo key pool_key
Fully qualified path: spline_v0::lp::ILiquidityProvider::remove_liquidity
sweeps any tokens in this contract to recipient. only callable by owner
Fully qualified path: spline_v0::lp::ILiquidityProvider::sweep
returns the ekubo core for pools deployed by this liquidity provider
Fully qualified path: spline_v0::lp::ILiquidityProvider::core
returns the profile for pools deployed by this liquidity provider
Fully qualified path: spline_v0::lp::ILiquidityProvider::profile
returns the liquidity provider token for pool with ekubo key pool_key
Fully qualified path: spline_v0::lp::ILiquidityProvider::pool_token
pool_liquidity_factor
Fully qualified path: spline_v0::lp::ILiquidityProvider::pool_liquidity_factor
Fully qualified path: spline_v0::lp::ILiquidityProvider::pool_reserves
pool_minimum_liquidity_factor
returns the minimum liquidity factor for pool with ekubo key pool_key for pool price at given tick
Fully qualified path: spline_v0::lp::ILiquidityProvider::pool_minimum_liquidity_factor
Last updated