pub struct Fees {
pub creator_fee: f64,
pub insurance_fee: f64,
pub lp_fee: f64,
pub liquidation_fee: f64,
}Expand description
Fee percentages for a perpetual market, expressed as fractions of 1.
For example, 0.001 means 0.1% (which is 1_000 on-chain at 1e6 scale).
Fields§
§creator_fee: f64Fee paid to the perp creator.
insurance_fee: f64Fee that goes to the insurance fund.
lp_fee: f64Fee earned by liquidity providers.
liquidation_fee: f64Fee charged on liquidations.
Trait Implementations§
Source§impl From<CachedFees> for Fees
impl From<CachedFees> for Fees
Source§fn from(c: CachedFees) -> Self
fn from(c: CachedFees) -> Self
Converts to this type from the input type.
Source§impl From<Fees> for CachedFees
impl From<Fees> for CachedFees
impl Copy for Fees
impl StructuralPartialEq for Fees
Auto Trait Implementations§
impl Freeze for Fees
impl RefUnwindSafe for Fees
impl Send for Fees
impl Sync for Fees
impl Unpin for Fees
impl UnsafeUnpin for Fees
impl UnwindSafe for Fees
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more