@defisaver/positions-sdk 2.1.103 → 2.1.105

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.
Files changed (53) hide show
  1. package/cjs/aaveV4/index.d.ts +1 -0
  2. package/cjs/aaveV4/index.js +8 -3
  3. package/cjs/aaveV4/merkl.d.ts +8 -0
  4. package/cjs/aaveV4/merkl.js +90 -0
  5. package/cjs/claiming/aaveV3.d.ts +1 -1
  6. package/cjs/claiming/aaveV3.js +3 -4
  7. package/cjs/claiming/index.d.ts +1 -2
  8. package/cjs/claiming/index.js +1 -3
  9. package/cjs/config/contracts.d.ts +0 -214
  10. package/cjs/config/contracts.js +1 -6
  11. package/cjs/helpers/morphoBlueHelpers/index.d.ts +0 -1
  12. package/cjs/helpers/morphoBlueHelpers/index.js +27 -32
  13. package/cjs/portfolio/index.js +0 -27
  14. package/cjs/types/aaveV4.d.ts +10 -0
  15. package/cjs/types/claiming.d.ts +1 -13
  16. package/cjs/types/claiming.js +0 -2
  17. package/cjs/types/merkl.d.ts +14 -1
  18. package/cjs/types/morphoBlue.d.ts +2 -3
  19. package/esm/aaveV4/index.d.ts +1 -0
  20. package/esm/aaveV4/index.js +6 -2
  21. package/esm/aaveV4/merkl.d.ts +8 -0
  22. package/esm/aaveV4/merkl.js +85 -0
  23. package/esm/claiming/aaveV3.d.ts +1 -1
  24. package/esm/claiming/aaveV3.js +3 -4
  25. package/esm/claiming/index.d.ts +1 -2
  26. package/esm/claiming/index.js +1 -2
  27. package/esm/config/contracts.d.ts +0 -214
  28. package/esm/config/contracts.js +0 -4
  29. package/esm/helpers/morphoBlueHelpers/index.d.ts +0 -1
  30. package/esm/helpers/morphoBlueHelpers/index.js +27 -31
  31. package/esm/portfolio/index.js +0 -27
  32. package/esm/types/aaveV4.d.ts +10 -0
  33. package/esm/types/claiming.d.ts +1 -13
  34. package/esm/types/claiming.js +0 -2
  35. package/esm/types/merkl.d.ts +14 -1
  36. package/esm/types/morphoBlue.d.ts +2 -3
  37. package/package.json +1 -1
  38. package/src/aaveV4/index.ts +7 -2
  39. package/src/aaveV4/merkl.ts +92 -0
  40. package/src/claiming/aaveV3.ts +2 -3
  41. package/src/claiming/index.ts +0 -2
  42. package/src/config/contracts.ts +0 -4
  43. package/src/helpers/morphoBlueHelpers/index.ts +29 -32
  44. package/src/portfolio/index.ts +0 -25
  45. package/src/types/aaveV4.ts +10 -0
  46. package/src/types/claiming.ts +0 -15
  47. package/src/types/merkl.ts +14 -2
  48. package/src/types/morphoBlue.ts +2 -3
  49. package/cjs/claiming/morphoBlue.d.ts +0 -5
  50. package/cjs/claiming/morphoBlue.js +0 -113
  51. package/esm/claiming/morphoBlue.d.ts +0 -5
  52. package/esm/claiming/morphoBlue.js +0 -105
  53. package/src/claiming/morphoBlue.ts +0 -119
@@ -1,6 +1,7 @@
1
1
  import { Client } from 'viem';
2
2
  import { AaveV4AccountData, AaveV4SpokeData, AaveV4SpokeInfo, EthAddress, EthereumProvider, NetworkNumber } from '../types';
3
3
  export * as lend from './lend';
4
+ export { getAaveV4MerkleCampaigns } from './merkl';
4
5
  export declare function _getAaveV4SpokeData(provider: Client, network: NetworkNumber, market: AaveV4SpokeInfo, blockNumber?: 'latest' | number): Promise<AaveV4SpokeData>;
5
6
  export declare function getAaveV4SpokeData(provider: EthereumProvider, network: NetworkNumber, spoke: AaveV4SpokeInfo, blockNumber?: 'latest' | number): Promise<AaveV4SpokeData>;
6
7
  export declare function _getAaveV4AccountData(provider: Client, network: NetworkNumber, spokeData: AaveV4SpokeData, address: EthAddress, blockNumber?: 'latest' | number): Promise<AaveV4AccountData>;
@@ -45,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
45
45
  return (mod && mod.__esModule) ? mod : { "default": mod };
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.lend = void 0;
48
+ exports.getAaveV4MerkleCampaigns = exports.lend = void 0;
49
49
  exports._getAaveV4SpokeData = _getAaveV4SpokeData;
50
50
  exports.getAaveV4SpokeData = getAaveV4SpokeData;
51
51
  exports._getAaveV4AccountData = _getAaveV4AccountData;
@@ -61,7 +61,10 @@ const utils_1 = require("../services/utils");
61
61
  const aaveV4Helpers_1 = require("../helpers/aaveV4Helpers");
62
62
  const aaveV4_1 = require("../markets/aaveV4");
63
63
  const moneymarket_1 = require("../moneymarket");
64
+ const merkl_1 = require("./merkl");
64
65
  exports.lend = __importStar(require("./lend"));
66
+ var merkl_2 = require("./merkl");
67
+ Object.defineProperty(exports, "getAaveV4MerkleCampaigns", { enumerable: true, get: function () { return merkl_2.getAaveV4MerkleCampaigns; } });
65
68
  const fetchHubData = (viewContract, hubAddress) => __awaiter(void 0, void 0, void 0, function* () {
66
69
  const hubData = yield viewContract.read.getHubAllAssetsData([hubAddress]);
67
70
  return {
@@ -173,15 +176,17 @@ function _getAaveV4SpokeData(provider_1, network_1, market_1) {
173
176
  return __awaiter(this, arguments, void 0, function* (provider, network, market, blockNumber = 'latest') {
174
177
  const viewContract = (0, contracts_1.AaveV4ViewContractViem)(provider, network, blockNumber);
175
178
  const hubsData = {};
176
- const [spokeData] = yield Promise.all([
179
+ const [spokeData, merklCampaigns] = yield Promise.all([
177
180
  viewContract.read.getSpokeDataFull([market.address]),
181
+ (0, merkl_1.getAaveV4MerkleCampaigns)(network),
178
182
  ...market.hubs.map((hubAddress) => __awaiter(this, void 0, void 0, function* () {
179
183
  hubsData[hubAddress] = yield fetchHubData(viewContract, hubAddress);
180
184
  })),
181
185
  ]);
182
186
  const reserveAssetsArray = yield Promise.all(spokeData[1].map((reserveAssetOnChain, index) => __awaiter(this, void 0, void 0, function* () { return formatReserveAsset(reserveAssetOnChain, hubsData[reserveAssetOnChain.hub].assets[reserveAssetOnChain.assetId], index, +spokeData[0].oracleDecimals.toString(), network); })));
187
+ const enrichedAssets = reserveAssetsArray.map((asset) => (0, merkl_1.attachAaveV4MerklIncentives)(asset, market.address, merklCampaigns));
183
188
  return {
184
- assetsData: reserveAssetsArray.reduce((acc, reserveAsset) => {
189
+ assetsData: enrichedAssets.reduce((acc, reserveAsset) => {
185
190
  acc[`${reserveAsset.symbol}-${reserveAsset.reserveId}`] = reserveAsset;
186
191
  return acc;
187
192
  }, {}),
@@ -0,0 +1,8 @@
1
+ import { AaveV4MerklRewardMap, AaveV4ReserveAssetData } from '../types';
2
+ import { NetworkNumber } from '../types/common';
3
+ export declare const getAaveV4MerkleCampaigns: (chainId: NetworkNumber) => Promise<AaveV4MerklRewardMap>;
4
+ /**
5
+ * Returns a copy of the asset with scope-specific incentive arrays pre-combined with the asset's
6
+ * intrinsic (staking) incentives, so each surface can render base yield + the rewards that apply to it.
7
+ */
8
+ export declare const attachAaveV4MerklIncentives: (asset: AaveV4ReserveAssetData, spokeAddress: string, campaigns: AaveV4MerklRewardMap) => AaveV4ReserveAssetData;
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.attachAaveV4MerklIncentives = exports.getAaveV4MerkleCampaigns = void 0;
13
+ const moneymarket_1 = require("../moneymarket");
14
+ const utils_1 = require("../services/utils");
15
+ const types_1 = require("../types");
16
+ /**
17
+ * Merkl tags Aave V4 reward campaigns by scope via the `type` field:
18
+ * - AAVE_V4_HUB_SUPPLY / AAVE_V4_HUB_BORROW → reward tied to a hub (matched per underlying token)
19
+ * - AAVE_V4_SPOKE_SUPPLY / AAVE_V4_SPOKE_BORROW → reward tied to a spoke (matched per spoke contract + underlying)
20
+ * Hub campaigns identify the underlying via `tokens[0]`; spoke campaigns identify the spoke via `explorerAddress`.
21
+ */
22
+ const spokeKey = (spokeAddress, underlying) => `${spokeAddress.toLowerCase()}_${underlying.toLowerCase()}`;
23
+ const buildIncentive = (opportunity) => {
24
+ var _a, _b, _c, _d, _e;
25
+ const rewardToken = (_c = (_b = (_a = opportunity.rewardsRecord) === null || _a === void 0 ? void 0 : _a.breakdowns) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.token;
26
+ const token = (rewardToken === null || rewardToken === void 0 ? void 0 : rewardToken.symbol) || ((_e = (_d = opportunity.tokens) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.symbol) || '';
27
+ return {
28
+ apy: (0, moneymarket_1.aprToApy)(opportunity.apr),
29
+ token,
30
+ incentiveKind: types_1.IncentiveKind.Reward,
31
+ description: `Eligible for ${token} rewards through Merkl.${opportunity.description ? `\n${opportunity.description}` : ''}`,
32
+ };
33
+ };
34
+ const getAaveV4MerkleCampaigns = (chainId) => __awaiter(void 0, void 0, void 0, function* () {
35
+ const result = { hub: {}, spoke: {} };
36
+ try {
37
+ const res = yield fetch('https://api-merkl.angle.money/v4/opportunities?mainProtocolId=aave', {
38
+ signal: AbortSignal.timeout(utils_1.DEFAULT_TIMEOUT),
39
+ });
40
+ if (!res.ok)
41
+ throw new Error('Failed to fetch Aave V4 Merkle campaigns');
42
+ const opportunities = yield res.json();
43
+ opportunities
44
+ .filter((o) => o.chainId === chainId)
45
+ .filter((o) => o.status === types_1.OpportunityStatus.LIVE)
46
+ .filter((o) => typeof o.type === 'string' && o.type.startsWith('AAVE_V4_'))
47
+ .forEach((o) => {
48
+ var _a, _b, _c, _d;
49
+ const underlying = (_c = (_b = (_a = o.tokens) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.address) === null || _c === void 0 ? void 0 : _c.toLowerCase();
50
+ if (!underlying)
51
+ return;
52
+ const side = o.action === types_1.OpportunityAction.BORROW ? 'borrow' : 'supply';
53
+ const incentive = buildIncentive(o);
54
+ if (o.type.includes('HUB')) {
55
+ if (!result.hub[underlying])
56
+ result.hub[underlying] = {};
57
+ result.hub[underlying][side] = incentive;
58
+ }
59
+ else if (o.type.includes('SPOKE')) {
60
+ const spokeAddress = (_d = o.explorerAddress) === null || _d === void 0 ? void 0 : _d.toLowerCase();
61
+ if (!spokeAddress)
62
+ return;
63
+ const key = spokeKey(spokeAddress, underlying);
64
+ if (!result.spoke[key])
65
+ result.spoke[key] = {};
66
+ result.spoke[key][side] = incentive;
67
+ }
68
+ });
69
+ return result;
70
+ }
71
+ catch (e) {
72
+ console.error('Failed to fetch Aave V4 Merkle campaigns', e);
73
+ return result;
74
+ }
75
+ });
76
+ exports.getAaveV4MerkleCampaigns = getAaveV4MerkleCampaigns;
77
+ /**
78
+ * Returns a copy of the asset with scope-specific incentive arrays pre-combined with the asset's
79
+ * intrinsic (staking) incentives, so each surface can render base yield + the rewards that apply to it.
80
+ */
81
+ const attachAaveV4MerklIncentives = (asset, spokeAddress, campaigns) => {
82
+ var _a;
83
+ const underlying = (_a = asset.underlying) === null || _a === void 0 ? void 0 : _a.toLowerCase();
84
+ const baseSupply = asset.supplyIncentives || [];
85
+ const baseBorrow = asset.borrowIncentives || [];
86
+ const spokeScoped = (spokeAddress && underlying) ? campaigns.spoke[spokeKey(spokeAddress, underlying)] : undefined;
87
+ const hubScoped = underlying ? campaigns.hub[underlying] : undefined;
88
+ return Object.assign(Object.assign({}, asset), { spokeSupplyIncentives: (spokeScoped === null || spokeScoped === void 0 ? void 0 : spokeScoped.supply) ? [...baseSupply, spokeScoped.supply] : baseSupply, spokeBorrowIncentives: (spokeScoped === null || spokeScoped === void 0 ? void 0 : spokeScoped.borrow) ? [...baseBorrow, spokeScoped.borrow] : baseBorrow, hubSupplyIncentives: (hubScoped === null || hubScoped === void 0 ? void 0 : hubScoped.supply) ? [...baseSupply, hubScoped.supply] : baseSupply, hubBorrowIncentives: (hubScoped === null || hubScoped === void 0 ? void 0 : hubScoped.borrow) ? [...baseBorrow, hubScoped.borrow] : baseBorrow });
89
+ };
90
+ exports.attachAaveV4MerklIncentives = attachAaveV4MerklIncentives;
@@ -2,4 +2,4 @@ import { Client } from 'viem';
2
2
  import { EthAddress, NetworkNumber } from '../types/common';
3
3
  import { ClaimableToken } from '../types/claiming';
4
4
  export declare function getUnclaimedRewardsForAllMarkets(provider: Client, network: NetworkNumber, walletAddress: EthAddress, marketAddress: EthAddress): Promise<ClaimableToken[]>;
5
- export declare function getMeritUnclaimedRewards(account: EthAddress, network: NetworkNumber, acceptMorpho?: boolean): Promise<ClaimableToken[]>;
5
+ export declare function getMeritUnclaimedRewards(account: EthAddress, network: NetworkNumber): Promise<ClaimableToken[]>;
@@ -95,8 +95,8 @@ function getUnclaimedRewardsForAllMarkets(provider, network, walletAddress, mark
95
95
  return mapAaveRewardsToClaimableTokens(Object.values(totalUnclaimedPerRewardToken), marketAddress, walletAddress);
96
96
  });
97
97
  }
98
- function getMeritUnclaimedRewards(account_1, network_1) {
99
- return __awaiter(this, arguments, void 0, function* (account, network, acceptMorpho = true) {
98
+ function getMeritUnclaimedRewards(account, network) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
100
  let data;
101
101
  try {
102
102
  const res = yield fetch(`https://api-merkl.angle.money/v4/users/${account}/rewards?chainId=${network}`, { signal: AbortSignal.timeout(3000) });
@@ -110,8 +110,7 @@ function getMeritUnclaimedRewards(account_1, network_1) {
110
110
  data.forEach((item) => {
111
111
  item.rewards.forEach(reward => {
112
112
  const { token, amount, claimed, proofs, } = reward;
113
- const isTokenMorpho = token.symbol === 'MORPHO';
114
- if (!token || !token.symbol || amount === '0' || (isTokenMorpho && !acceptMorpho))
113
+ if (!token || !token.symbol || amount === '0')
115
114
  return;
116
115
  const unclaimedAmount = new decimal_js_1.default(amount).minus(claimed || 0).toString();
117
116
  if (unclaimedAmount === '0')
@@ -1,6 +1,5 @@
1
1
  import * as aaveV3Claim from './aaveV3';
2
2
  import * as compV3Claim from './compV3';
3
3
  import * as kingV3Claim from './king';
4
- import * as morphoBlueClaim from './morphoBlue';
5
4
  import * as sparkClaim from './spark';
6
- export { aaveV3Claim, compV3Claim, kingV3Claim, morphoBlueClaim, sparkClaim, };
5
+ export { aaveV3Claim, compV3Claim, kingV3Claim, sparkClaim, };
@@ -33,14 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.sparkClaim = exports.morphoBlueClaim = exports.kingV3Claim = exports.compV3Claim = exports.aaveV3Claim = void 0;
36
+ exports.sparkClaim = exports.kingV3Claim = exports.compV3Claim = exports.aaveV3Claim = void 0;
37
37
  const aaveV3Claim = __importStar(require("./aaveV3"));
38
38
  exports.aaveV3Claim = aaveV3Claim;
39
39
  const compV3Claim = __importStar(require("./compV3"));
40
40
  exports.compV3Claim = compV3Claim;
41
41
  const kingV3Claim = __importStar(require("./king"));
42
42
  exports.kingV3Claim = kingV3Claim;
43
- const morphoBlueClaim = __importStar(require("./morphoBlue"));
44
- exports.morphoBlueClaim = morphoBlueClaim;
45
43
  const sparkClaim = __importStar(require("./spark"));
46
44
  exports.sparkClaim = sparkClaim;
@@ -96912,220 +96912,6 @@ export declare const SparkRewardsController: {
96912
96912
  };
96913
96913
  };
96914
96914
  };
96915
- export declare const MorphoDistributor: {
96916
- readonly abi: readonly [{
96917
- readonly inputs: readonly [{
96918
- readonly internalType: "address";
96919
- readonly name: "initialOwner";
96920
- readonly type: "address";
96921
- }, {
96922
- readonly internalType: "uint256";
96923
- readonly name: "initialTimelock";
96924
- readonly type: "uint256";
96925
- }, {
96926
- readonly internalType: "bytes32";
96927
- readonly name: "initialRoot";
96928
- readonly type: "bytes32";
96929
- }, {
96930
- readonly internalType: "bytes32";
96931
- readonly name: "initialIpfsHash";
96932
- readonly type: "bytes32";
96933
- }];
96934
- readonly stateMutability: "nonpayable";
96935
- readonly type: "constructor";
96936
- }, {
96937
- readonly inputs: readonly [];
96938
- readonly name: "acceptRoot";
96939
- readonly outputs: readonly [];
96940
- readonly stateMutability: "nonpayable";
96941
- readonly type: "function";
96942
- }, {
96943
- readonly inputs: readonly [{
96944
- readonly internalType: "address";
96945
- readonly name: "account";
96946
- readonly type: "address";
96947
- }, {
96948
- readonly internalType: "address";
96949
- readonly name: "reward";
96950
- readonly type: "address";
96951
- }, {
96952
- readonly internalType: "uint256";
96953
- readonly name: "claimable";
96954
- readonly type: "uint256";
96955
- }, {
96956
- readonly internalType: "bytes32[]";
96957
- readonly name: "proof";
96958
- readonly type: "bytes32[]";
96959
- }];
96960
- readonly name: "claim";
96961
- readonly outputs: readonly [{
96962
- readonly internalType: "uint256";
96963
- readonly name: "amount";
96964
- readonly type: "uint256";
96965
- }];
96966
- readonly stateMutability: "nonpayable";
96967
- readonly type: "function";
96968
- }, {
96969
- readonly inputs: readonly [{
96970
- readonly internalType: "address";
96971
- readonly name: "account";
96972
- readonly type: "address";
96973
- }, {
96974
- readonly internalType: "address";
96975
- readonly name: "reward";
96976
- readonly type: "address";
96977
- }];
96978
- readonly name: "claimed";
96979
- readonly outputs: readonly [{
96980
- readonly internalType: "uint256";
96981
- readonly name: "amount";
96982
- readonly type: "uint256";
96983
- }];
96984
- readonly stateMutability: "view";
96985
- readonly type: "function";
96986
- }, {
96987
- readonly inputs: readonly [];
96988
- readonly name: "ipfsHash";
96989
- readonly outputs: readonly [{
96990
- readonly internalType: "bytes32";
96991
- readonly name: "";
96992
- readonly type: "bytes32";
96993
- }];
96994
- readonly stateMutability: "view";
96995
- readonly type: "function";
96996
- }, {
96997
- readonly inputs: readonly [{
96998
- readonly internalType: "address";
96999
- readonly name: "";
97000
- readonly type: "address";
97001
- }];
97002
- readonly name: "isUpdater";
97003
- readonly outputs: readonly [{
97004
- readonly internalType: "bool";
97005
- readonly name: "";
97006
- readonly type: "bool";
97007
- }];
97008
- readonly stateMutability: "view";
97009
- readonly type: "function";
97010
- }, {
97011
- readonly inputs: readonly [];
97012
- readonly name: "owner";
97013
- readonly outputs: readonly [{
97014
- readonly internalType: "address";
97015
- readonly name: "";
97016
- readonly type: "address";
97017
- }];
97018
- readonly stateMutability: "view";
97019
- readonly type: "function";
97020
- }, {
97021
- readonly inputs: readonly [];
97022
- readonly name: "pendingRoot";
97023
- readonly outputs: readonly [{
97024
- readonly internalType: "bytes32";
97025
- readonly name: "root";
97026
- readonly type: "bytes32";
97027
- }, {
97028
- readonly internalType: "bytes32";
97029
- readonly name: "ipfsHash";
97030
- readonly type: "bytes32";
97031
- }, {
97032
- readonly internalType: "uint256";
97033
- readonly name: "validAt";
97034
- readonly type: "uint256";
97035
- }];
97036
- readonly stateMutability: "view";
97037
- readonly type: "function";
97038
- }, {
97039
- readonly inputs: readonly [];
97040
- readonly name: "revokePendingRoot";
97041
- readonly outputs: readonly [];
97042
- readonly stateMutability: "nonpayable";
97043
- readonly type: "function";
97044
- }, {
97045
- readonly inputs: readonly [];
97046
- readonly name: "root";
97047
- readonly outputs: readonly [{
97048
- readonly internalType: "bytes32";
97049
- readonly name: "";
97050
- readonly type: "bytes32";
97051
- }];
97052
- readonly stateMutability: "view";
97053
- readonly type: "function";
97054
- }, {
97055
- readonly inputs: readonly [{
97056
- readonly internalType: "address";
97057
- readonly name: "newOwner";
97058
- readonly type: "address";
97059
- }];
97060
- readonly name: "setOwner";
97061
- readonly outputs: readonly [];
97062
- readonly stateMutability: "nonpayable";
97063
- readonly type: "function";
97064
- }, {
97065
- readonly inputs: readonly [{
97066
- readonly internalType: "bytes32";
97067
- readonly name: "newRoot";
97068
- readonly type: "bytes32";
97069
- }, {
97070
- readonly internalType: "bytes32";
97071
- readonly name: "newIpfsHash";
97072
- readonly type: "bytes32";
97073
- }];
97074
- readonly name: "setRoot";
97075
- readonly outputs: readonly [];
97076
- readonly stateMutability: "nonpayable";
97077
- readonly type: "function";
97078
- }, {
97079
- readonly inputs: readonly [{
97080
- readonly internalType: "address";
97081
- readonly name: "updater";
97082
- readonly type: "address";
97083
- }, {
97084
- readonly internalType: "bool";
97085
- readonly name: "active";
97086
- readonly type: "bool";
97087
- }];
97088
- readonly name: "setRootUpdater";
97089
- readonly outputs: readonly [];
97090
- readonly stateMutability: "nonpayable";
97091
- readonly type: "function";
97092
- }, {
97093
- readonly inputs: readonly [{
97094
- readonly internalType: "uint256";
97095
- readonly name: "newTimelock";
97096
- readonly type: "uint256";
97097
- }];
97098
- readonly name: "setTimelock";
97099
- readonly outputs: readonly [];
97100
- readonly stateMutability: "nonpayable";
97101
- readonly type: "function";
97102
- }, {
97103
- readonly inputs: readonly [{
97104
- readonly internalType: "bytes32";
97105
- readonly name: "newRoot";
97106
- readonly type: "bytes32";
97107
- }, {
97108
- readonly internalType: "bytes32";
97109
- readonly name: "newIpfsHash";
97110
- readonly type: "bytes32";
97111
- }];
97112
- readonly name: "submitRoot";
97113
- readonly outputs: readonly [];
97114
- readonly stateMutability: "nonpayable";
97115
- readonly type: "function";
97116
- }, {
97117
- readonly inputs: readonly [];
97118
- readonly name: "timelock";
97119
- readonly outputs: readonly [{
97120
- readonly internalType: "uint256";
97121
- readonly name: "";
97122
- readonly type: "uint256";
97123
- }];
97124
- readonly stateMutability: "view";
97125
- readonly type: "function";
97126
- }];
97127
- readonly networks: {};
97128
- };
97129
96915
  export declare const AaveRewardsController: {
97130
96916
  readonly abi: readonly [{
97131
96917
  readonly inputs: readonly [{
@@ -2,8 +2,7 @@
2
2
  /* eslint-disable */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.LiquityView = exports.crvUSDFactory = exports.crvUSDView = exports.crvUSDsfrxETHAmm = exports.crvUSDtBTCAmm = exports.crvUSDWBTCAmm = exports.crvUSDETHAmm = exports.crvUSDwstETHAmm = exports.crvUSDsfrxETHController = exports.crvUSDtBTCController = exports.crvUSDWBTCController = exports.crvUSDETHController = exports.crvUSDwstETHController = exports.SparkProtocolDataProvider = exports.SparkPoolAddressesProvider = exports.SparkLendingPool = exports.SparkIncentiveDataProvider = exports.SparkView = exports.Pot = exports.IAToken = exports.IVariableDebtToken = exports.Comptroller = exports.CompoundLoanInfo = exports.AaveLendingPoolV2 = exports.AaveProtocolDataProvider = exports.LendingPoolAddressesProvider = exports.AaveLoanInfoV2 = exports.wstETH = exports.CompV3BulkerL2 = exports.CompV3BulkerMainnetETH = exports.CompV3BulkerMainnetUSDC = exports.CompV3View = exports.cWstETHv3 = exports.cUSDSv3 = exports.cUSDTv3 = exports.cETHv3 = exports.cUSDbCv3 = exports.cUSDCev3 = exports.cUSDCv3 = exports.AaveUiIncentiveDataProviderV3 = exports.AaveV3EtherfiProtocolDataProvider = exports.AaveV3LidoProtocolDataProvider = exports.AaveV3ProtocolDataProvider = exports.AaveV3EtherfiLendingPool = exports.AaveV3LidoLendingPool = exports.AaveV3LendingPool = exports.AaveV3EtherfiPoolAddressesProvider = exports.AaveV3LidoPoolAddressesProvider = exports.AaveV3PoolAddressesProvider = exports.AaveV3View = void 0;
5
- exports.YearnV3Vault = exports.SkySavings = exports.SparkSavingsVault = exports.MakerDsr = exports.YearnView = exports.YearnVault = exports.MorphoVault = exports.StkAAVE = exports.LiquityV2sBoldVault = exports.LiquityV2ActivePool = exports.AaveRewardsController = exports.MorphoDistributor = exports.SparkRewardsController = exports.SparkAirdrop = exports.UUPS = exports.LiquityStabilityPool = exports.LiquityLQTYStaking = exports.AaveUmbrellaView = exports.Erc4626 = exports.Erc20 = exports.AaveIncentivesController = exports.McdCdpManager = exports.McdGetCdps = exports.FluidView = exports.LiquityV2StabilityPool = exports.EulerV2View = exports.LiquityV2TroveNFT = exports.LiquityV2CollSurplusPool = exports.LiquityV2View = exports.LiquityV2LegacyView = exports.LlamaLendControllerAbi = exports.LlamaLendView = exports.DFSFeedRegistry = exports.FeedRegistry = exports.MorphoBlueView = exports.WeETHPriceFeed = exports.WstETHPriceFeed = exports.USDCPriceFeed = exports.BTCPriceFeed = exports.ETHPriceFeed = exports.COMPPriceFeed = exports.McdDog = exports.McdJug = exports.McdVat = exports.McdSpotter = exports.McdView = exports.LiquityActivePool = exports.PriceFeed = exports.TroveManager = exports.CollSurplusPool = void 0;
6
- exports.AaveV4View = void 0;
5
+ exports.AaveV4View = exports.YearnV3Vault = exports.SkySavings = exports.SparkSavingsVault = exports.MakerDsr = exports.YearnView = exports.YearnVault = exports.MorphoVault = exports.StkAAVE = exports.LiquityV2sBoldVault = exports.LiquityV2ActivePool = exports.AaveRewardsController = exports.SparkRewardsController = exports.SparkAirdrop = exports.UUPS = exports.LiquityStabilityPool = exports.LiquityLQTYStaking = exports.AaveUmbrellaView = exports.Erc4626 = exports.Erc20 = exports.AaveIncentivesController = exports.McdCdpManager = exports.McdGetCdps = exports.FluidView = exports.LiquityV2StabilityPool = exports.EulerV2View = exports.LiquityV2TroveNFT = exports.LiquityV2CollSurplusPool = exports.LiquityV2View = exports.LiquityV2LegacyView = exports.LlamaLendControllerAbi = exports.LlamaLendView = exports.DFSFeedRegistry = exports.FeedRegistry = exports.MorphoBlueView = exports.WeETHPriceFeed = exports.WstETHPriceFeed = exports.USDCPriceFeed = exports.BTCPriceFeed = exports.ETHPriceFeed = exports.COMPPriceFeed = exports.McdDog = exports.McdJug = exports.McdVat = exports.McdSpotter = exports.McdView = exports.LiquityActivePool = exports.PriceFeed = exports.TroveManager = exports.CollSurplusPool = void 0;
7
6
  exports.AaveV3View = {
8
7
  "abi": [{ "inputs": [], "name": "AAVE_REFERRAL_CODE", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_umbrella", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getAdditionalUmbrellaStakingData", "outputs": [{ "components": [{ "internalType": "address", "name": "stkToken", "type": "address" }, { "internalType": "uint256", "name": "totalShares", "type": "uint256" }, { "internalType": "address", "name": "stkUnderlyingToken", "type": "address" }, { "internalType": "address", "name": "aToken", "type": "address" }, { "internalType": "uint256", "name": "cooldownPeriod", "type": "uint256" }, { "internalType": "uint256", "name": "unstakeWindow", "type": "uint256" }, { "internalType": "uint256", "name": "stkTokenToWaTokenRate", "type": "uint256" }, { "internalType": "uint256", "name": "waTokenToATokenRate", "type": "uint256" }, { "internalType": "uint256[]", "name": "rewardsEmissionRates", "type": "uint256[]" }, { "internalType": "uint256", "name": "userCooldownAmount", "type": "uint256" }, { "internalType": "uint256", "name": "userEndOfCooldown", "type": "uint256" }, { "internalType": "uint256", "name": "userWithdrawalWindow", "type": "uint256" }], "internalType": "struct AaveV3View.UmbrellaStkData[]", "name": "retVal", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }], "name": "getAllEmodes", "outputs": [{ "components": [{ "internalType": "uint16", "name": "ltv", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationBonus", "type": "uint16" }, { "internalType": "uint128", "name": "collateralBitmap", "type": "uint128" }, { "internalType": "bool", "name": "isolated", "type": "bool" }, { "internalType": "string", "name": "label", "type": "string" }, { "internalType": "uint128", "name": "borrowableBitmap", "type": "uint128" }, { "internalType": "uint128", "name": "ltvzeroBitmap", "type": "uint128" }], "internalType": "struct DataTypes.EModeCategoryNew[]", "name": "emodesData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "components": [{ "internalType": "address", "name": "reserveAddress", "type": "address" }, { "internalType": "uint256", "name": "liquidityAdded", "type": "uint256" }, { "internalType": "uint256", "name": "liquidityTaken", "type": "uint256" }, { "internalType": "bool", "name": "isDebtAsset", "type": "bool" }], "internalType": "struct AaveV3View.LiquidityChangeParams[]", "name": "_reserveParams", "type": "tuple[]" }], "name": "getApyAfterValuesEstimation", "outputs": [{ "components": [{ "internalType": "address", "name": "reserveAddress", "type": "address" }, { "internalType": "uint256", "name": "supplyRate", "type": "uint256" }, { "internalType": "uint256", "name": "variableBorrowRate", "type": "uint256" }], "internalType": "struct AaveV3View.EstimatedRates[]", "name": "", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_tokenAddr", "type": "address" }], "name": "getAssetPrice", "outputs": [{ "internalType": "uint256", "name": "price", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getCollFactors", "outputs": [{ "internalType": "uint256[]", "name": "collFactors", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "emodeCategory", "type": "uint256" }, { "internalType": "contract IPoolV3", "name": "lendingPool", "type": "address" }], "name": "getEModeCollateralFactor", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_asset", "type": "address" }, { "internalType": "address", "name": "_eoa", "type": "address" }, { "internalType": "address", "name": "_proxy", "type": "address" }, { "internalType": "address", "name": "_market", "type": "address" }], "name": "getEOAApprovalsAndBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "address", "name": "aToken", "type": "address" }, { "internalType": "address", "name": "variableDebtToken", "type": "address" }, { "internalType": "uint256", "name": "assetApproval", "type": "uint256" }, { "internalType": "uint256", "name": "aTokenApproval", "type": "uint256" }, { "internalType": "uint256", "name": "variableDebtDelegation", "type": "uint256" }, { "internalType": "uint256", "name": "borrowedVariableAmount", "type": "uint256" }, { "internalType": "uint256", "name": "eoaBalance", "type": "uint256" }, { "internalType": "uint256", "name": "aTokenBalance", "type": "uint256" }], "internalType": "struct AaveV3View.EOAApprovalData", "name": "approvalData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_eoa", "type": "address" }, { "internalType": "address", "name": "_proxy", "type": "address" }, { "internalType": "address", "name": "_market", "type": "address" }], "name": "getEOAApprovalsAndBalancesForAllTokens", "outputs": [{ "components": [{ "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "address", "name": "aToken", "type": "address" }, { "internalType": "address", "name": "variableDebtToken", "type": "address" }, { "internalType": "uint256", "name": "assetApproval", "type": "uint256" }, { "internalType": "uint256", "name": "aTokenApproval", "type": "uint256" }, { "internalType": "uint256", "name": "variableDebtDelegation", "type": "uint256" }, { "internalType": "uint256", "name": "borrowedVariableAmount", "type": "uint256" }, { "internalType": "uint256", "name": "eoaBalance", "type": "uint256" }, { "internalType": "uint256", "name": "aTokenBalance", "type": "uint256" }], "internalType": "struct AaveV3View.EOAApprovalData[]", "name": "approvalData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contract IPoolV3", "name": "_lendingPool", "type": "address" }, { "internalType": "uint8", "name": "_id", "type": "uint8" }], "name": "getEmodeData", "outputs": [{ "components": [{ "internalType": "uint16", "name": "ltv", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationBonus", "type": "uint16" }, { "internalType": "uint128", "name": "collateralBitmap", "type": "uint128" }, { "internalType": "bool", "name": "isolated", "type": "bool" }, { "internalType": "string", "name": "label", "type": "string" }, { "internalType": "uint128", "name": "borrowableBitmap", "type": "uint128" }, { "internalType": "uint128", "name": "ltvzeroBitmap", "type": "uint128" }], "internalType": "struct DataTypes.EModeCategoryNew", "name": "emodeData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address[]", "name": "_tokenAddresses", "type": "address[]" }], "name": "getFullTokensInfo", "outputs": [{ "components": [{ "internalType": "address", "name": "aTokenAddress", "type": "address" }, { "internalType": "address", "name": "underlyingTokenAddress", "type": "address" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint256", "name": "supplyRate", "type": "uint256" }, { "internalType": "uint256", "name": "borrowRateVariable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowRateStable", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "availableLiquidity", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrow", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrowVar", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrowStab", "type": "uint256" }, { "internalType": "uint256", "name": "collateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "liquidationRatio", "type": "uint256" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "supplyCap", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCap", "type": "uint256" }, { "internalType": "uint256", "name": "emodeCategory", "type": "uint256" }, { "internalType": "uint256", "name": "debtCeilingForIsolationMode", "type": "uint256" }, { "internalType": "uint256", "name": "isolationModeTotalDebt", "type": "uint256" }, { "internalType": "bool", "name": "usageAsCollateralEnabled", "type": "bool" }, { "internalType": "bool", "name": "borrowingEnabled", "type": "bool" }, { "internalType": "bool", "name": "stableBorrowRateEnabled", "type": "bool" }, { "internalType": "bool", "name": "isolationModeBorrowingEnabled", "type": "bool" }, { "internalType": "bool", "name": "isSiloedForBorrowing", "type": "bool" }, { "internalType": "uint256", "name": "eModeCollateralFactor", "type": "uint256" }, { "internalType": "bool", "name": "isFlashLoanEnabled", "type": "bool" }, { "internalType": "uint16", "name": "ltv", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationBonus", "type": "uint16" }, { "internalType": "address", "name": "priceSource", "type": "address" }, { "internalType": "string", "name": "label", "type": "string" }, { "internalType": "bool", "name": "isActive", "type": "bool" }, { "internalType": "bool", "name": "isPaused", "type": "bool" }, { "internalType": "bool", "name": "isFrozen", "type": "bool" }, { "internalType": "address", "name": "debtTokenAddress", "type": "address" }], "internalType": "struct AaveV3View.TokenInfoFull[]", "name": "tokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getHealthFactor", "outputs": [{ "internalType": "uint256", "name": "healthFactor", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getLoanData", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint128", "name": "ratio", "type": "uint128" }, { "internalType": "uint256", "name": "eMode", "type": "uint256" }, { "internalType": "address[]", "name": "collAddr", "type": "address[]" }, { "internalType": "bool[]", "name": "enabledAsColl", "type": "bool[]" }, { "internalType": "address[]", "name": "borrowAddr", "type": "address[]" }, { "internalType": "uint256[]", "name": "collAmounts", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "borrowStableAmounts", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "borrowVariableAmounts", "type": "uint256[]" }, { "internalType": "uint16", "name": "ltv", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationBonus", "type": "uint16" }, { "internalType": "address", "name": "priceSource", "type": "address" }, { "internalType": "string", "name": "label", "type": "string" }], "internalType": "struct AaveV3View.LoanData", "name": "data", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address[]", "name": "_users", "type": "address[]" }], "name": "getLoanDataArr", "outputs": [{ "components": [{ "internalType": "address", "name": "user", "type": "address" }, { "internalType": "uint128", "name": "ratio", "type": "uint128" }, { "internalType": "uint256", "name": "eMode", "type": "uint256" }, { "internalType": "address[]", "name": "collAddr", "type": "address[]" }, { "internalType": "bool[]", "name": "enabledAsColl", "type": "bool[]" }, { "internalType": "address[]", "name": "borrowAddr", "type": "address[]" }, { "internalType": "uint256[]", "name": "collAmounts", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "borrowStableAmounts", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "borrowVariableAmounts", "type": "uint256[]" }, { "internalType": "uint16", "name": "ltv", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationBonus", "type": "uint16" }, { "internalType": "address", "name": "priceSource", "type": "address" }, { "internalType": "string", "name": "label", "type": "string" }], "internalType": "struct AaveV3View.LoanData[]", "name": "loans", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getPrices", "outputs": [{ "internalType": "uint256[]", "name": "prices", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getRatio", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address[]", "name": "_users", "type": "address[]" }], "name": "getRatios", "outputs": [{ "internalType": "uint256[]", "name": "ratios", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getSafetyRatio", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "getTokenBalances", "outputs": [{ "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsStable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowsVariable", "type": "uint256" }, { "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, { "internalType": "bool", "name": "enabledAsCollateral", "type": "bool" }], "internalType": "struct AaveV3View.UserToken[]", "name": "userTokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address", "name": "_tokenAddr", "type": "address" }], "name": "getTokenInfoFull", "outputs": [{ "components": [{ "internalType": "address", "name": "aTokenAddress", "type": "address" }, { "internalType": "address", "name": "underlyingTokenAddress", "type": "address" }, { "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "internalType": "uint256", "name": "supplyRate", "type": "uint256" }, { "internalType": "uint256", "name": "borrowRateVariable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowRateStable", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "availableLiquidity", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrow", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrowVar", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrowStab", "type": "uint256" }, { "internalType": "uint256", "name": "collateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "liquidationRatio", "type": "uint256" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "supplyCap", "type": "uint256" }, { "internalType": "uint256", "name": "borrowCap", "type": "uint256" }, { "internalType": "uint256", "name": "emodeCategory", "type": "uint256" }, { "internalType": "uint256", "name": "debtCeilingForIsolationMode", "type": "uint256" }, { "internalType": "uint256", "name": "isolationModeTotalDebt", "type": "uint256" }, { "internalType": "bool", "name": "usageAsCollateralEnabled", "type": "bool" }, { "internalType": "bool", "name": "borrowingEnabled", "type": "bool" }, { "internalType": "bool", "name": "stableBorrowRateEnabled", "type": "bool" }, { "internalType": "bool", "name": "isolationModeBorrowingEnabled", "type": "bool" }, { "internalType": "bool", "name": "isSiloedForBorrowing", "type": "bool" }, { "internalType": "uint256", "name": "eModeCollateralFactor", "type": "uint256" }, { "internalType": "bool", "name": "isFlashLoanEnabled", "type": "bool" }, { "internalType": "uint16", "name": "ltv", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationBonus", "type": "uint16" }, { "internalType": "address", "name": "priceSource", "type": "address" }, { "internalType": "string", "name": "label", "type": "string" }, { "internalType": "bool", "name": "isActive", "type": "bool" }, { "internalType": "bool", "name": "isPaused", "type": "bool" }, { "internalType": "bool", "name": "isFrozen", "type": "bool" }, { "internalType": "address", "name": "debtTokenAddress", "type": "address" }], "internalType": "struct AaveV3View.TokenInfoFull", "name": "_tokenInfo", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_market", "type": "address" }, { "internalType": "address[]", "name": "_tokenAddresses", "type": "address[]" }], "name": "getTokensInfo", "outputs": [{ "components": [{ "internalType": "address", "name": "aTokenAddress", "type": "address" }, { "internalType": "address", "name": "underlyingTokenAddress", "type": "address" }, { "internalType": "uint256", "name": "collateralFactor", "type": "uint256" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct AaveV3View.TokenInfo[]", "name": "tokens", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "isBorrowAllowed", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "pure", "type": "function" }],
9
8
  "networks": {
@@ -1267,10 +1266,6 @@ exports.SparkRewardsController = {
1267
1266
  }
1268
1267
  }
1269
1268
  };
1270
- exports.MorphoDistributor = {
1271
- "abi": [{ "inputs": [{ "internalType": "address", "name": "initialOwner", "type": "address" }, { "internalType": "uint256", "name": "initialTimelock", "type": "uint256" }, { "internalType": "bytes32", "name": "initialRoot", "type": "bytes32" }, { "internalType": "bytes32", "name": "initialIpfsHash", "type": "bytes32" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "acceptRoot", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "address", "name": "reward", "type": "address" }, { "internalType": "uint256", "name": "claimable", "type": "uint256" }, { "internalType": "bytes32[]", "name": "proof", "type": "bytes32[]" }], "name": "claim", "outputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }, { "internalType": "address", "name": "reward", "type": "address" }], "name": "claimed", "outputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ipfsHash", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "isUpdater", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pendingRoot", "outputs": [{ "internalType": "bytes32", "name": "root", "type": "bytes32" }, { "internalType": "bytes32", "name": "ipfsHash", "type": "bytes32" }, { "internalType": "uint256", "name": "validAt", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "revokePendingRoot", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "root", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "setOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "newRoot", "type": "bytes32" }, { "internalType": "bytes32", "name": "newIpfsHash", "type": "bytes32" }], "name": "setRoot", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "updater", "type": "address" }, { "internalType": "bool", "name": "active", "type": "bool" }], "name": "setRootUpdater", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "newTimelock", "type": "uint256" }], "name": "setTimelock", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "newRoot", "type": "bytes32" }, { "internalType": "bytes32", "name": "newIpfsHash", "type": "bytes32" }], "name": "submitRoot", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "timelock", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }],
1272
- "networks": {}
1273
- };
1274
1269
  exports.AaveRewardsController = {
1275
1270
  "abi": [{ "inputs": [{ "internalType": "address[]", "name": "assets", "type": "address[]" }, { "internalType": "address", "name": "user", "type": "address" }], "name": "getAllUserRewards", "outputs": [{ "internalType": "address[]", "name": "rewardsList", "type": "address[]" }, { "internalType": "uint256[]", "name": "unclaimedAmounts", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }],
1276
1271
  "networks": {
@@ -56,4 +56,3 @@ export declare const getRewardsForMarket: (marketId: string, network?: NetworkNu
56
56
  supplyApy: string;
57
57
  borrowApy: string;
58
58
  }>;
59
- export declare const getMorphoUnderlyingSymbol: (_symbol: string) => string;