@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 +1 -1
- package/src/interactors/MoneyMarket.ts +19 -18
package/package.json
CHANGED
|
@@ -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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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 })
|