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