@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.
@@ -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.5",
2
+ "version": "1.20.0",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -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, '750000', false),
185
+ TokenAmount.fromAddressAndAmount(consts.networkAddresses.tokens.META, '500000', false),
186
186
  this._networkConnection.provider
187
187
  ),
188
188
  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