#[repr(C)]pub struct RiskParams {Show 15 fields
pub warmup_period_slots: u64,
pub maintenance_margin_bps: u64,
pub initial_margin_bps: u64,
pub trading_fee_bps: u64,
pub max_accounts: u64,
pub new_account_fee: U128,
pub maintenance_fee_per_slot: U128,
pub max_crank_staleness_slots: u64,
pub liquidation_fee_bps: u64,
pub liquidation_fee_cap: U128,
pub min_liquidation_abs: U128,
pub min_initial_deposit: U128,
pub min_nonzero_mm_req: u128,
pub min_nonzero_im_req: u128,
pub insurance_floor: U128,
}Expand description
Risk engine parameters
Fields§
§warmup_period_slots: u64§maintenance_margin_bps: u64§initial_margin_bps: u64§trading_fee_bps: u64§max_accounts: u64§new_account_fee: U128§maintenance_fee_per_slot: U128§max_crank_staleness_slots: u64§liquidation_fee_bps: u64§liquidation_fee_cap: U128§min_liquidation_abs: U128§min_initial_deposit: U128§min_nonzero_mm_req: u128Absolute nonzero-position margin floors (spec §9.1)
min_nonzero_im_req: u128§insurance_floor: U128Insurance fund floor (spec §1.4: 0 <= I_floor <= MAX_VAULT_TVL)
Trait Implementations§
Source§impl Clone for RiskParams
impl Clone for RiskParams
Source§fn clone(&self) -> RiskParams
fn clone(&self) -> RiskParams
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 Debug for RiskParams
impl Debug for RiskParams
Source§impl PartialEq for RiskParams
impl PartialEq for RiskParams
impl Copy for RiskParams
impl Eq for RiskParams
impl StructuralPartialEq for RiskParams
Auto Trait Implementations§
impl Freeze for RiskParams
impl RefUnwindSafe for RiskParams
impl Send for RiskParams
impl Sync for RiskParams
impl Unpin for RiskParams
impl UnsafeUnpin for RiskParams
impl UnwindSafe for RiskParams
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