pub struct TestMarketConfig<T, const DECIMALS: u8> {Show 19 fields
pub swap_impact_params: PriceImpactParams<T>,
pub swap_fee_params: FeeParams<T>,
pub position_params: PositionParams<T>,
pub position_impact_params: PriceImpactParams<T>,
pub order_fee_params: FeeParams<T>,
pub position_impact_distribution_params: PositionImpactDistributionParams<T>,
pub borrowing_fee_params: BorrowingFeeParams<T>,
pub borrowing_fee_kink_model_params: BorrowingFeeKinkModelParamsForOneSide<T>,
pub funding_fee_params: FundingFeeParams<T>,
pub reserve_factor: T,
pub open_interest_reserve_factor: T,
pub max_pnl_factors: MaxPnlFactors<T>,
pub min_pnl_factor_after_adl: T,
pub max_pool_amount: T,
pub max_pool_value_for_deposit: T,
pub max_open_interest: T,
pub min_collateral_factor_for_oi: T,
pub ignore_open_interest_for_usage_factor: bool,
pub liquidation_fee_params: LiquidationFeeParams<T>,
}Available on crate features
test only.Expand description
Test Market Config.
Fields§
§swap_impact_params: PriceImpactParams<T>Swap impact params.
swap_fee_params: FeeParams<T>Swap fee params.
position_params: PositionParams<T>Position params.
position_impact_params: PriceImpactParams<T>Position impact params.
order_fee_params: FeeParams<T>Order fee params.
position_impact_distribution_params: PositionImpactDistributionParams<T>Position impact distribution params.
borrowing_fee_params: BorrowingFeeParams<T>Borrowing fee params.
borrowing_fee_kink_model_params: BorrowingFeeKinkModelParamsForOneSide<T>Borrowing fee kink model params.
funding_fee_params: FundingFeeParams<T>Funding fee params.
reserve_factor: TReserve factor.
open_interest_reserve_factor: TOpen interest reserve factor.
max_pnl_factors: MaxPnlFactors<T>Max PnL factors.
min_pnl_factor_after_adl: TMin PnL factors after ADL.
max_pool_amount: TMax pool amount.
max_pool_value_for_deposit: TMax pool value for deposit.
max_open_interest: TMax open interest.
min_collateral_factor_for_oi: TMin collateral factor for OI.
ignore_open_interest_for_usage_factor: boolIgnore open interest for usage factor.
liquidation_fee_params: LiquidationFeeParams<T>Liquidation fee params.
Trait Implementations§
Source§impl<T: Clone, const DECIMALS: u8> Clone for TestMarketConfig<T, DECIMALS>
impl<T: Clone, const DECIMALS: u8> Clone for TestMarketConfig<T, DECIMALS>
Source§fn clone(&self) -> TestMarketConfig<T, DECIMALS>
fn clone(&self) -> TestMarketConfig<T, DECIMALS>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for TestMarketConfig<u128, 20>
Available on crate feature u128 only.
impl Default for TestMarketConfig<u128, 20>
Available on crate feature
u128 only.Auto Trait Implementations§
impl<T, const DECIMALS: u8> Freeze for TestMarketConfig<T, DECIMALS>where
T: Freeze,
impl<T, const DECIMALS: u8> RefUnwindSafe for TestMarketConfig<T, DECIMALS>where
T: RefUnwindSafe,
impl<T, const DECIMALS: u8> Send for TestMarketConfig<T, DECIMALS>where
T: Send,
impl<T, const DECIMALS: u8> Sync for TestMarketConfig<T, DECIMALS>where
T: Sync,
impl<T, const DECIMALS: u8> Unpin for TestMarketConfig<T, DECIMALS>where
T: Unpin,
impl<T, const DECIMALS: u8> UnwindSafe for TestMarketConfig<T, DECIMALS>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more