@aurigami/sdk 1.9.4 → 1.9.5
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.
- package/dist/sdk.cjs.development.js +8 -6
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +8 -6
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/interactors/MoneyMarket.ts +8 -4
package/dist/sdk.esm.js
CHANGED
|
@@ -2843,7 +2843,7 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
2843
2843
|
|
|
2844
2844
|
_proto.getDepositAPY = /*#__PURE__*/function () {
|
|
2845
2845
|
var _getDepositAPY = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4() {
|
|
2846
|
-
var supplyRatePerTimestamp;
|
|
2846
|
+
var supplyRatePerTimestamp, supplyRatePerDay;
|
|
2847
2847
|
return runtime_1.wrap(function _callee4$(_context4) {
|
|
2848
2848
|
while (1) {
|
|
2849
2849
|
switch (_context4.prev = _context4.next) {
|
|
@@ -2853,9 +2853,10 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
2853
2853
|
|
|
2854
2854
|
case 2:
|
|
2855
2855
|
supplyRatePerTimestamp = _context4.sent;
|
|
2856
|
-
|
|
2856
|
+
supplyRatePerDay = new BigNumber(supplyRatePerTimestamp.toString()).multipliedBy(ONE_DAY).div(decimalFactor(18));
|
|
2857
|
+
return _context4.abrupt("return", new BigNumber(supplyRatePerDay.plus(1)).pow(365).minus(1));
|
|
2857
2858
|
|
|
2858
|
-
case
|
|
2859
|
+
case 5:
|
|
2859
2860
|
case "end":
|
|
2860
2861
|
return _context4.stop();
|
|
2861
2862
|
}
|
|
@@ -2872,7 +2873,7 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
2872
2873
|
|
|
2873
2874
|
_proto.getBorrowAPY = /*#__PURE__*/function () {
|
|
2874
2875
|
var _getBorrowAPY = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5() {
|
|
2875
|
-
var borrowRatePerTimestamp;
|
|
2876
|
+
var borrowRatePerTimestamp, borrowRatePerDay;
|
|
2876
2877
|
return runtime_1.wrap(function _callee5$(_context5) {
|
|
2877
2878
|
while (1) {
|
|
2878
2879
|
switch (_context5.prev = _context5.next) {
|
|
@@ -2882,9 +2883,10 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
2882
2883
|
|
|
2883
2884
|
case 2:
|
|
2884
2885
|
borrowRatePerTimestamp = _context5.sent;
|
|
2885
|
-
|
|
2886
|
+
borrowRatePerDay = new BigNumber(borrowRatePerTimestamp.toString()).multipliedBy(ONE_DAY).div(decimalFactor(18));
|
|
2887
|
+
return _context5.abrupt("return", new BigNumber(borrowRatePerDay.plus(1)).pow(365).minus(1));
|
|
2886
2888
|
|
|
2887
|
-
case
|
|
2889
|
+
case 5:
|
|
2888
2890
|
case "end":
|
|
2889
2891
|
return _context5.stop();
|
|
2890
2892
|
}
|