parse_fee_currency

Function parse_fee_currency 

Source
pub fn parse_fee_currency(
    fee_ccy: &str,
    fee_amount: f64,
    context: impl FnOnce() -> String,
) -> Currency
Expand description

Parses OKX fee currency code, handling empty strings.

OKX sometimes returns empty fee currency codes. When the fee currency is empty, defaults to USDT and logs a warning for non-zero fees.