Expand description
updateLeverage: the leverage and margin mode of a perp position, main dex or HIP-3, checked
against the perp’s meta and margin table, or against a ticket’s Market, before anything is
signed.
Re-exports§
pub use crate::account::holdings::MarginMode;
Structs§
- Update
Leverage updateLeverage:{type, asset, isCross, leverage}.
Functions§
- leverage
updateLeverage, held to the market’s ceiling and margin mode.- update_
leverage updateLeverageforperpatasset: refused over itsmaxLeverage, and refused as cross where it is isolated only.- update_
leverage_ for update_leverage, and held to the tier oftable(the perp’s, fromcrate::markets::perps::Meta::table_of) that a position ofnotionalreaches: BTC takes 40x up to 150M and 20x past it.