Calculates the balance of a given token amount including any accumulated interest. This is the same as SpotPosition.scaledBalance.
SpotPosition.scaledBalance
the calculated balance, scaled by SPOT_MARKET_BALANCE_PRECISION
SPOT_MARKET_BALANCE_PRECISION
the amount of tokens
the spot market account
the balance type ('deposit' or 'borrow')
Generated using TypeDoc
Calculates the balance of a given token amount including any accumulated interest. This is the same as
SpotPosition.scaledBalance
.Returns
the calculated balance, scaled by
SPOT_MARKET_BALANCE_PRECISION