@aurigami/sdk 1.15.2 → 1.15.3
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/dist/interactors/MoneyMarket.d.ts +1 -1
- package/dist/sdk.cjs.development.js +1 -1
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +1 -1
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/interactors/MoneyMarket.ts +4 -6
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuETH, AuErc20, EthRepayHelper } from '@aurigami/contracts/typechain';
|
|
2
2
|
import { TransactionResponse } from '@ethersproject/abstract-provider';
|
|
3
3
|
import BigNumber from 'bignumber.js';
|
|
4
|
+
import { CacheType, cache } from 'cache-decorator';
|
|
4
5
|
import { BigNumber as BN, Contract } from 'ethers';
|
|
5
6
|
import * as abis from '../abis';
|
|
6
7
|
import * as consts from '../consts';
|
|
@@ -18,12 +19,9 @@ import { calcValuation, fetchPrice, fetchValuation } from '../helpers/priceFetch
|
|
|
18
19
|
import {
|
|
19
20
|
Address,
|
|
20
21
|
Apy,
|
|
21
|
-
ComptrollerRewardType,
|
|
22
22
|
MoneyMarketDetails,
|
|
23
|
-
NetworkConnection
|
|
23
|
+
NetworkConnection
|
|
24
24
|
} from '../types';
|
|
25
|
-
import { getUnderlying } from '../helpers/helpers';
|
|
26
|
-
import { cache, CacheType } from 'cache-decorator';
|
|
27
25
|
|
|
28
26
|
type RewardSpeeds = {
|
|
29
27
|
plyRewardSupplySpeed: BN;
|
|
@@ -189,7 +187,7 @@ export class MoneyMarketRead extends BlockchainEntityRead {
|
|
|
189
187
|
if (helpers.isSameAddress(this.underlying.address, consts.networkAddresses.tokens.stNEAR)) {
|
|
190
188
|
depositMETAApy = helpers.calcLMRewardApr(
|
|
191
189
|
await fetchValuation(
|
|
192
|
-
TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.META, '
|
|
190
|
+
TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.META, '1000000', false),
|
|
193
191
|
this._networkConnection.provider
|
|
194
192
|
),
|
|
195
193
|
underlyingPrice.multipliedBy(totalDeposited.formattedAmount()),
|