@aurigami/sdk 1.19.5 → 1.20.0
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/sdk.cjs.development.js +11 -19
- 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 +11 -19
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/interactors/MoneyMarket.ts +1 -1
- package/src/interactors/misc.ts +0 -4
- package/src/types/index.ts +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -40,7 +40,6 @@ export declare type MoneyMarketDetails = {
|
|
|
40
40
|
export declare type UserDetails = {
|
|
41
41
|
markets: UserMarketDetails[];
|
|
42
42
|
borrowLimit: CurrencyAmount;
|
|
43
|
-
userLockingDetails: UserLockingDetails;
|
|
44
43
|
borrowableAmount: CurrencyAmount;
|
|
45
44
|
};
|
|
46
45
|
export declare type UserLockingDetails = {
|
package/package.json
CHANGED
|
@@ -182,7 +182,7 @@ export class MoneyMarketRead extends BlockchainEntityRead {
|
|
|
182
182
|
if (helpers.isSameAddress(this.underlying.address, consts.networkAddresses.tokens.stNEAR)) {
|
|
183
183
|
depositMETAApy = helpers.calcLMRewardApr(
|
|
184
184
|
await fetchValuation(
|
|
185
|
-
TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.META, '
|
|
185
|
+
TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.META, '500000', false),
|
|
186
186
|
this._networkConnection.provider
|
|
187
187
|
),
|
|
188
188
|
underlyingPrice.multipliedBy(totalDeposited.formattedAmount()),
|
package/src/interactors/misc.ts
CHANGED
|
@@ -9,7 +9,6 @@ import { calcValuation, fetchPrice } from '../helpers/priceFetcher';
|
|
|
9
9
|
import * as types from '../types';
|
|
10
10
|
import { MoneyMarketRead } from './MoneyMarket';
|
|
11
11
|
import { MulticallRead } from './Multicall';
|
|
12
|
-
import { PapermillRead } from './Papermill';
|
|
13
12
|
import { StakingRead } from './Staking';
|
|
14
13
|
|
|
15
14
|
export class MiscRead extends BlockchainEntityRead {
|
|
@@ -127,9 +126,6 @@ export class MiscRead extends BlockchainEntityRead {
|
|
|
127
126
|
currency: 'USD',
|
|
128
127
|
amount: bufferedBorrowLimit.toFixed(consts.DECIMAL_PRECISION),
|
|
129
128
|
},
|
|
130
|
-
userLockingDetails: await new PapermillRead(this._networkConnection).getLockingDetails(
|
|
131
|
-
userAddress
|
|
132
|
-
),
|
|
133
129
|
borrowableAmount: {
|
|
134
130
|
currency: 'USD',
|
|
135
131
|
amount: borrowableAmount.toFixed(consts.DECIMAL_PRECISION),
|