Function calculateSpotMarketBorrowCapacity
- calculateSpotMarketBorrowCapacity(spotMarketAccount: SpotMarketAccount, targetBorrowRate: BN): {
remainingCapacity: BN;
totalCapacity: BN;
}
-
Returns {
remainingCapacity: BN;
totalCapacity: BN;
}
-
remainingCapacity: BN
-
totalCapacity: BN
calculates max borrow amount where rate would stay below targetBorrowRate
Returns
: Precision: TOKEN DECIMALS