impermax-sdk 2.1.548 → 2.1.549
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,9 +9,11 @@ const borrowableEntity_1 = require("../../utils/borrowable/borrowableEntity");
|
|
|
9
9
|
class OffchainBorrowable extends offchainPoolToken_1.default {
|
|
10
10
|
async createBorrowableObject(lockStateChange = false) {
|
|
11
11
|
const { kinkBorrowRate } = await this._calculateBorrowRate();
|
|
12
|
+
const maxFlashAllocate = await this.getMaxFlashAllocate();
|
|
12
13
|
return new borrowableEntity_1.BorrowableEntity({
|
|
13
14
|
totalSupply: await this.getSupply(),
|
|
14
15
|
totalBorrows: await this.getTotalBorrows(),
|
|
16
|
+
maxFlashAllocate: maxFlashAllocate ? maxFlashAllocate.amount : 0,
|
|
15
17
|
kinkBorrowRate,
|
|
16
18
|
kinkUtilizationRate: await this.getKinkUtilizationRate(),
|
|
17
19
|
kinkMultiplier: await this.lendingPool.getKinkMultiplier(),
|