@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 +1 -1
- package/src/interactors/MoneyMarket.ts +24 -23
package/package.json
CHANGED
|
@@ -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
|
-
|
|
200
|
-
const
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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> {
|