@aurigami/sdk 1.20.1 → 1.20.2

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.1",
2
+ "version": "1.20.2",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -196,29 +196,30 @@ export class MoneyMarketRead extends BlockchainEntityRead {
196
196
 
197
197
  @cache({ ttl: CACHE_TIMEOUT, type: CacheType.MEMO })
198
198
  public async getDepositStaderAPY(): Promise<BigNumber> {
199
- const rewardStartTime = 1675346400;
200
- const currentTime = helpers.getCurrentTimestamp();
201
- if (currentTime < rewardStartTime) {
202
- return new BigNumber(0);
203
- }
204
- const [totalDeposited, underlyingPrice] = await Promise.all([
205
- this.getTotalTokenDeposited(),
206
- fetchPrice(this.underlying.address, this._networkConnection.provider),
207
- ]);
208
- let depositStaderApy;
209
- if (helpers.isSameAddress(this.underlying.address, consts.networkAddresses.tokens.NEARX)) {
210
- depositStaderApy = helpers.calcLMRewardApr(
211
- await fetchValuation(
212
- TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.STADER, '40', false),
213
- this._networkConnection.provider
214
- ),
215
- underlyingPrice.multipliedBy(totalDeposited.formattedAmount()),
216
- 365
217
- );
218
- } else {
219
- depositStaderApy = new BigNumber(0);
220
- }
221
- return depositStaderApy;
199
+ return new BigNumber(0);
200
+ // const rewardStartTime = 1675346400;
201
+ // const currentTime = helpers.getCurrentTimestamp();
202
+ // if (currentTime < rewardStartTime) {
203
+ // return new BigNumber(0);
204
+ // }
205
+ // const [totalDeposited, underlyingPrice] = await Promise.all([
206
+ // this.getTotalTokenDeposited(),
207
+ // fetchPrice(this.underlying.address, this._networkConnection.provider),
208
+ // ]);
209
+ // let depositStaderApy;
210
+ // if (helpers.isSameAddress(this.underlying.address, consts.networkAddresses.tokens.NEARX)) {
211
+ // depositStaderApy = helpers.calcLMRewardApr(
212
+ // await fetchValuation(
213
+ // TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.STADER, '40', false),
214
+ // this._networkConnection.provider
215
+ // ),
216
+ // underlyingPrice.multipliedBy(totalDeposited.formattedAmount()),
217
+ // 365
218
+ // );
219
+ // } else {
220
+ // depositStaderApy = new BigNumber(0);
221
+ // }
222
+ // return depositStaderApy;
222
223
  }
223
224
 
224
225
  public async getDetails(): Promise<MoneyMarketDetails> {