List of all items
Structs
- omnipool::types::AssetReserveState
- omnipool::types::AssetStateChange
- omnipool::types::HubTradeStateChange
- omnipool::types::I129
- omnipool::types::LiquidityStateChange
- omnipool::types::Position
- omnipool::types::TradeStateChange
- omnipool_subpools::types::MigrationDetails
- ratio::Ratio
Enums
Traits
- support::traits::CheckedAddInner
- support::traits::CheckedAddInto
- support::traits::CheckedDivInner
- support::traits::CheckedMulInner
- support::traits::CheckedMulInto
Macros
- ensure
- lbp::to_balance_from_fixed
- lbp::to_fixed_balance
- round_up
- to_balance
- to_balance_from_fixed
- to_fixed_balance
- to_lbp_weight
- to_u128_wrapper
- to_u256
Functions
- ema::balance_weighted_average
- ema::calculate_new_by_integrating_incoming
- ema::exp_smoothing
- ema::iterated_balance_ema
- ema::iterated_liquidity_ema
- ema::iterated_price_ema
- ema::iterated_volume_ema
- ema::liquidity_weighted_average
- ema::price_weighted_average
- ema::smoothing_from_period
- ema::update_outdated_to_current
- ema::volume_weighted_average
- fee::calculate_pool_trade_fee
- fraction::frac
- fraction::from_fixed
- fraction::multiply_by_balance
- fraction::multiply_by_fixed
- fraction::to_fixed
- fraction::to_rational
- lbp::calculate_in_given_out
- lbp::calculate_linear_weights
- lbp::calculate_out_given_in
- lbp::calculate_spot_price
- liquidity_mining::calculate_accumulated_rps
- liquidity_mining::calculate_global_farm_rewards
- liquidity_mining::calculate_global_farm_shares
- liquidity_mining::calculate_loyalty_multiplier
- liquidity_mining::calculate_reward
- liquidity_mining::calculate_user_reward
- liquidity_mining::calculate_valued_shares
- liquidity_mining::calculate_yield_farm_rewards
- omnipool::calculate_add_liquidity_state_changes
- omnipool::calculate_buy_for_hub_asset_state_changes
- omnipool::calculate_buy_state_changes
- omnipool::calculate_cap_difference
- omnipool::calculate_delta_imbalance
- omnipool::calculate_lrna_spot_sprice
- omnipool::calculate_remove_liquidity_state_changes
- omnipool::calculate_sell_hub_state_changes
- omnipool::calculate_sell_state_changes
- omnipool::calculate_spot_sprice
- omnipool::calculate_tvl
- omnipool::calculate_tvl_cap_difference
- omnipool::calculate_withdrawal_fee
- omnipool::verify_asset_cap
- omnipool_subpools::calculate_asset_migration_details
- omnipool_subpools::convert_position
- omnipool_subpools::create_subpool_initial_state
- omnipool_subpools::recalculate_protocol_shares
- stableswap::calculate_amount_to_add_for_shares
- stableswap::calculate_d
- stableswap::calculate_in_given_out
- stableswap::calculate_in_given_out_with_fee
- stableswap::calculate_out_given_in
- stableswap::calculate_out_given_in_with_fee
- stableswap::calculate_shares
- stableswap::calculate_shares_for_amount
- stableswap::calculate_shares_removed
- stableswap::calculate_withdraw_one_asset
- support::rational::round_to_rational
- transcendental::exp
- transcendental::ln
- transcendental::log2
- transcendental::pow
- transcendental::powi
- transcendental::saturating_powi_high_precision
- xyk::calculate_in_given_out
- xyk::calculate_liquidity_in
- xyk::calculate_liquidity_out
- xyk::calculate_out_given_in
- xyk::calculate_shares
- xyk::calculate_spot_price
Type Definitions
- ema::EmaLiquidity
- ema::EmaPrice
- ema::EmaVolume
- types::Balance
- types::FixedBalance
- types::Fraction
- types::LBPWeight
- types::Price