@aurigami/sdk 1.19.6 → 1.20.1
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
|
@@ -209,7 +209,7 @@ export class MoneyMarketRead extends BlockchainEntityRead {
|
|
|
209
209
|
if (helpers.isSameAddress(this.underlying.address, consts.networkAddresses.tokens.NEARX)) {
|
|
210
210
|
depositStaderApy = helpers.calcLMRewardApr(
|
|
211
211
|
await fetchValuation(
|
|
212
|
-
TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.STADER, '
|
|
212
|
+
TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.STADER, '40', false),
|
|
213
213
|
this._networkConnection.provider
|
|
214
214
|
),
|
|
215
215
|
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),
|