@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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.19.6",
2
+ "version": "1.20.1",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -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, '50', false),
212
+ TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.STADER, '40', false),
213
213
  this._networkConnection.provider
214
214
  ),
215
215
  underlyingPrice.multipliedBy(totalDeposited.formattedAmount()),
@@ -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),
@@ -46,7 +46,6 @@ export type MoneyMarketDetails = {
46
46
  export type UserDetails = {
47
47
  markets: UserMarketDetails[];
48
48
  borrowLimit: CurrencyAmount;
49
- userLockingDetails: UserLockingDetails;
50
49
  borrowableAmount: CurrencyAmount;
51
50
  };
52
51