@aurigami/sdk 1.20.5 → 1.20.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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.20.5",
2
+ "version": "1.20.7",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -174,24 +174,25 @@ export class MoneyMarketRead extends BlockchainEntityRead {
174
174
 
175
175
  @cache({ ttl: CACHE_TIMEOUT, type: CacheType.MEMO })
176
176
  public async getDepositMetaAPY(): Promise<BigNumber> {
177
- const [totalDeposited, underlyingPrice] = await Promise.all([
178
- this.getTotalTokenDeposited(),
179
- fetchPrice(this.underlying.address, this._networkConnection.provider),
180
- ]);
181
- let depositMETAApy;
182
- if (helpers.isSameAddress(this.underlying.address, consts.networkAddresses.tokens.stNEAR)) {
183
- depositMETAApy = helpers.calcLMRewardApr(
184
- await fetchValuation(
185
- TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.META, '250000', false),
186
- this._networkConnection.provider
187
- ),
188
- underlyingPrice.multipliedBy(totalDeposited.formattedAmount()),
189
- 12
190
- );
191
- } else {
192
- depositMETAApy = new BigNumber(0);
193
- }
194
- return depositMETAApy;
177
+ return new BigNumber(0);
178
+ // const [totalDeposited, underlyingPrice] = await Promise.all([
179
+ // this.getTotalTokenDeposited(),
180
+ // fetchPrice(this.underlying.address, this._networkConnection.provider),
181
+ // ]);
182
+ // let depositMETAApy;
183
+ // if (helpers.isSameAddress(this.underlying.address, consts.networkAddresses.tokens.stNEAR)) {
184
+ // depositMETAApy = helpers.calcLMRewardApr(
185
+ // await fetchValuation(
186
+ // TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.META, '250000', false),
187
+ // this._networkConnection.provider
188
+ // ),
189
+ // underlyingPrice.multipliedBy(totalDeposited.formattedAmount()),
190
+ // 12
191
+ // );
192
+ // } else {
193
+ // depositMETAApy = new BigNumber(0);
194
+ // }
195
+ // return depositMETAApy;
195
196
  }
196
197
 
197
198
  @cache({ ttl: CACHE_TIMEOUT, type: CacheType.MEMO })