Function levana_perpswap_cosmos::contracts::market::position::events::calculate_base_and_quote
source ยท pub fn calculate_base_and_quote(
market_type: MarketType,
price: Price,
amount: Number,
) -> Result<(Number, Number)>
Expand description
Returns a tuple containing (base, quote) calculated based on the market type