Function getTokenAmount

  • Calculates the spot token amount including any accumulated interest.

    Returns

    The calculated token amount, scaled by SpotMarketConfig.precision

    Parameters

    • balanceAmount: BN

      The balance amount, typically from SpotPosition.scaledBalance

    • spotMarket: SpotMarketAccount

      The spot market account details

    • balanceType: SpotBalanceType

      The balance type to be used for calculation

    Returns BN

Generated using TypeDoc