impermax-sdk 1.2.6 → 1.2.7
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.
|
@@ -34,7 +34,7 @@ class OffchainLendingVault extends offchainPoolToken_1.default {
|
|
|
34
34
|
}
|
|
35
35
|
getAccrueFactor() {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
const now = Date.now()
|
|
37
|
+
const now = Date.now() / 1000;
|
|
38
38
|
const timeElapsed = now - (yield this.getLastUpdate());
|
|
39
39
|
const supplyRate = yield this.getSupplyRate();
|
|
40
40
|
return 1 + timeElapsed * supplyRate;
|