Enum lfest::prelude::MarkMethod
source · pub enum MarkMethod {
MidPrice,
FairPrice,
}
Expand description
Which price to use in mark-to-market
calculations
Variants§
MidPrice
Take the last mid price of the market.
FairPrice
Use Fair Price Marking to avoid unnecessary liquidations in highly leveraged products.
Without this system, unnecessary liquidations may occur if the market is being manipulated,
is illiquid, or the Mark Price swings unnecessarily relative to its Index Price.
The system is able to achieve this by setting the Mark Price of the contract to the FairPrice
instead of the LastPrice
.
Trait Implementations§
source§impl Clone for MarkMethod
impl Clone for MarkMethod
source§fn clone(&self) -> MarkMethod
fn clone(&self) -> MarkMethod
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for MarkMethod
impl RefUnwindSafe for MarkMethod
impl Send for MarkMethod
impl Sync for MarkMethod
impl Unpin for MarkMethod
impl UnwindSafe for MarkMethod
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