Function getSignedTokenAmount

  • Returns the signed (positive for deposit,negative for borrow) token amount based on the balance type.

    Returns

    • The signed token amount, scaled by SpotMarketConfig.precision

    Parameters

    • tokenAmount: BN

      The token amount to convert (from getTokenAmount)

    • balanceType: SpotBalanceType

      The balance type to determine the sign of the token amount.

    Returns BN

Generated using TypeDoc