@aurigami/sdk 1.7.7-dummy → 1.7.8-dummy
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 +19 -5
- 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 +19 -5
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/contracts/MoneyMarket.ts +4 -1
package/dist/sdk.esm.js
CHANGED
|
@@ -2950,12 +2950,26 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
2950
2950
|
_context9.t5 = underlyingPrice.multipliedBy(totalBorrowed.formattedAmount());
|
|
2951
2951
|
borrowNEARApy = _context9.t3.calcLMRewardApr.call(_context9.t3, _context9.t4, _context9.t5, 52);
|
|
2952
2952
|
|
|
2953
|
-
if (isSameAddress(this.underlying.address, networkAddresses.tokens.stNEAR)) {
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
depositMETAApy = new BigNumber(0);
|
|
2953
|
+
if (!isSameAddress(this.underlying.address, networkAddresses.tokens.stNEAR)) {
|
|
2954
|
+
_context9.next = 34;
|
|
2955
|
+
break;
|
|
2957
2956
|
}
|
|
2958
2957
|
|
|
2958
|
+
_context9.t6 = helpers;
|
|
2959
|
+
_context9.next = 29;
|
|
2960
|
+
return fetchValuation(TokenAmount.fromAddressAndAmount(networkAddresses.tokens.META, '1250000', false), this._networkConnection.provider);
|
|
2961
|
+
|
|
2962
|
+
case 29:
|
|
2963
|
+
_context9.t7 = _context9.sent;
|
|
2964
|
+
_context9.t8 = underlyingPrice.multipliedBy(totalDeposited.formattedAmount());
|
|
2965
|
+
depositMETAApy = _context9.t6.calcLMRewardApr.call(_context9.t6, _context9.t7, _context9.t8, 12);
|
|
2966
|
+
_context9.next = 35;
|
|
2967
|
+
break;
|
|
2968
|
+
|
|
2969
|
+
case 34:
|
|
2970
|
+
depositMETAApy = new BigNumber(0);
|
|
2971
|
+
|
|
2972
|
+
case 35:
|
|
2959
2973
|
return _context9.abrupt("return", {
|
|
2960
2974
|
auTokenAddress: this.auToken.address,
|
|
2961
2975
|
totalTokenDeposited: totalDeposited,
|
|
@@ -2972,7 +2986,7 @@ var MoneyMarketRead = /*#__PURE__*/function (_BlockchainEntityRead) {
|
|
|
2972
2986
|
depositMETAApy: depositMETAApy.toNumber()
|
|
2973
2987
|
});
|
|
2974
2988
|
|
|
2975
|
-
case
|
|
2989
|
+
case 36:
|
|
2976
2990
|
case "end":
|
|
2977
2991
|
return _context9.stop();
|
|
2978
2992
|
}
|