@defisaver/positions-sdk 2.1.24-dev-savings-3 → 2.1.25-dev-pt-feb-dev

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 (88) hide show
  1. package/cjs/config/contracts.d.ts +0 -173
  2. package/cjs/config/contracts.js +1 -23
  3. package/cjs/contracts.d.ts +0 -1650
  4. package/cjs/contracts.js +1 -22
  5. package/cjs/fluid/index.js +4 -16
  6. package/cjs/index.d.ts +1 -2
  7. package/cjs/index.js +1 -3
  8. package/cjs/markets/aave/marketAssets.js +1 -1
  9. package/cjs/moneymarket/moneymarketCommonService.js +1 -0
  10. package/cjs/staking/staking.js +5 -0
  11. package/cjs/types/index.d.ts +0 -1
  12. package/cjs/types/index.js +0 -1
  13. package/esm/config/contracts.d.ts +0 -173
  14. package/esm/config/contracts.js +0 -22
  15. package/esm/contracts.d.ts +0 -1650
  16. package/esm/contracts.js +0 -18
  17. package/esm/fluid/index.js +4 -16
  18. package/esm/index.d.ts +1 -2
  19. package/esm/index.js +1 -2
  20. package/esm/markets/aave/marketAssets.js +1 -1
  21. package/esm/moneymarket/moneymarketCommonService.js +1 -0
  22. package/esm/staking/staking.js +5 -0
  23. package/esm/types/index.d.ts +0 -1
  24. package/esm/types/index.js +0 -1
  25. package/package.json +3 -4
  26. package/src/config/contracts.ts +1 -23
  27. package/src/contracts.ts +1 -23
  28. package/src/fluid/index.ts +4 -17
  29. package/src/index.ts +0 -2
  30. package/src/markets/aave/marketAssets.ts +1 -1
  31. package/src/moneymarket/moneymarketCommonService.ts +1 -0
  32. package/src/staking/staking.ts +3 -0
  33. package/src/types/index.ts +1 -2
  34. package/cjs/savings/index.d.ts +0 -7
  35. package/cjs/savings/index.js +0 -75
  36. package/cjs/savings/makerDSR/index.d.ts +0 -7
  37. package/cjs/savings/makerDSR/index.js +0 -94
  38. package/cjs/savings/makerDSR/options.d.ts +0 -2
  39. package/cjs/savings/makerDSR/options.js +0 -11
  40. package/cjs/savings/morphoVaults/index.d.ts +0 -7
  41. package/cjs/savings/morphoVaults/index.js +0 -118
  42. package/cjs/savings/morphoVaults/options.d.ts +0 -16
  43. package/cjs/savings/morphoVaults/options.js +0 -112
  44. package/cjs/savings/yearnVaults/index.d.ts +0 -9
  45. package/cjs/savings/yearnVaults/index.js +0 -113
  46. package/cjs/savings/yearnVaults/options.d.ts +0 -6
  47. package/cjs/savings/yearnVaults/options.js +0 -29
  48. package/cjs/types/savings/index.d.ts +0 -15
  49. package/cjs/types/savings/index.js +0 -19
  50. package/cjs/types/savings/makerDsr.d.ts +0 -11
  51. package/cjs/types/savings/makerDsr.js +0 -7
  52. package/cjs/types/savings/morphoVaults.d.ts +0 -23
  53. package/cjs/types/savings/morphoVaults.js +0 -19
  54. package/cjs/types/savings/yearnVaults.d.ts +0 -12
  55. package/cjs/types/savings/yearnVaults.js +0 -9
  56. package/esm/savings/index.d.ts +0 -7
  57. package/esm/savings/index.js +0 -36
  58. package/esm/savings/makerDSR/index.d.ts +0 -7
  59. package/esm/savings/makerDSR/index.js +0 -53
  60. package/esm/savings/makerDSR/options.d.ts +0 -2
  61. package/esm/savings/makerDSR/options.js +0 -8
  62. package/esm/savings/morphoVaults/index.d.ts +0 -7
  63. package/esm/savings/morphoVaults/index.js +0 -77
  64. package/esm/savings/morphoVaults/options.d.ts +0 -16
  65. package/esm/savings/morphoVaults/options.js +0 -108
  66. package/esm/savings/yearnVaults/index.d.ts +0 -9
  67. package/esm/savings/yearnVaults/index.js +0 -70
  68. package/esm/savings/yearnVaults/options.d.ts +0 -6
  69. package/esm/savings/yearnVaults/options.js +0 -25
  70. package/esm/types/savings/index.d.ts +0 -15
  71. package/esm/types/savings/index.js +0 -3
  72. package/esm/types/savings/makerDsr.d.ts +0 -11
  73. package/esm/types/savings/makerDsr.js +0 -4
  74. package/esm/types/savings/morphoVaults.d.ts +0 -23
  75. package/esm/types/savings/morphoVaults.js +0 -16
  76. package/esm/types/savings/yearnVaults.d.ts +0 -12
  77. package/esm/types/savings/yearnVaults.js +0 -6
  78. package/src/savings/index.ts +0 -43
  79. package/src/savings/makerDsr/index.ts +0 -54
  80. package/src/savings/makerDsr/options.ts +0 -9
  81. package/src/savings/morphoVaults/index.ts +0 -81
  82. package/src/savings/morphoVaults/options.ts +0 -123
  83. package/src/savings/yearnVaults/index.ts +0 -74
  84. package/src/savings/yearnVaults/options.ts +0 -30
  85. package/src/types/savings/index.ts +0 -18
  86. package/src/types/savings/makerDsr.ts +0 -13
  87. package/src/types/savings/morphoVaults.ts +0 -25
  88. package/src/types/savings/yearnVaults.ts +0 -14
package/cjs/contracts.js CHANGED
@@ -33,8 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.YearnViewContractViem = exports.StkAAVEViem = exports.LiquityV2sBoldVaultViem = exports.AaveRewardsControllerViem = exports.SparkRewardsControllerViem = exports.UUPSViem = exports.LiquityStabilityPoolViem = exports.LiquityLQTYStakingViem = exports.AaveUmbrellaViewViem = exports.AaveIncentivesControllerViem = exports.FluidViewContractViem = exports.LiquityV2LegacyViewContractViem = exports.LiquityV2ViewContractViem = exports.LiquityActivePoolContractViem = exports.LiquityPriceFeedContractViem = exports.LiquityTroveManagerContractViem = exports.LiquityCollSurplusPoolContractViem = exports.LiquityViewContractViem = exports.BTCPriceFeedContractViem = exports.WeETHPriceFeedContractViem = exports.ComptrollerContractViem = exports.CompoundLoanInfoContractViem = exports.McdJugContractViem = exports.McdDogContractViem = exports.McdSpotterContractViem = exports.McdVatContractViem = exports.McdViewContractViem = exports.McdGetCdpsContractViem = exports.LlamaLendViewContractViem = exports.CrvUSDFactoryContractViem = exports.CrvUSDViewContractViem = exports.EulerV2ViewContractViem = exports.SparkIncentiveDataProviderContractViem = exports.SparkViewContractViem = exports.CompV3ViewContractViem = exports.WstETHPriceFeedContractViem = exports.USDCPriceFeedContractViem = exports.ETHPriceFeedContractViem = exports.COMPPriceFeedContractViem = exports.DFSFeedRegistryContractViem = exports.FeedRegistryContractViem = exports.AaveIncentiveDataProviderV3ContractViem = exports.AaveV3ViewContractViem = exports.AaveLoanInfoV2ContractViem = exports.MorphoBlueViewContractViem = exports.getYearnVaultContractViem = exports.getMorphoVaultContractViem = exports.createViemContractFromConfigFunc = exports.getConfigContractAbi = exports.getConfigContractAddress = void 0;
37
- exports.MakerDsrContractViem = void 0;
36
+ exports.StkAAVEViem = exports.LiquityV2sBoldVaultViem = exports.AaveRewardsControllerViem = exports.SparkRewardsControllerViem = exports.UUPSViem = exports.LiquityStabilityPoolViem = exports.LiquityLQTYStakingViem = exports.AaveUmbrellaViewViem = exports.AaveIncentivesControllerViem = exports.FluidViewContractViem = exports.LiquityV2LegacyViewContractViem = exports.LiquityV2ViewContractViem = exports.LiquityActivePoolContractViem = exports.LiquityPriceFeedContractViem = exports.LiquityTroveManagerContractViem = exports.LiquityCollSurplusPoolContractViem = exports.LiquityViewContractViem = exports.BTCPriceFeedContractViem = exports.WeETHPriceFeedContractViem = exports.ComptrollerContractViem = exports.CompoundLoanInfoContractViem = exports.McdJugContractViem = exports.McdDogContractViem = exports.McdSpotterContractViem = exports.McdVatContractViem = exports.McdViewContractViem = exports.McdGetCdpsContractViem = exports.LlamaLendViewContractViem = exports.CrvUSDFactoryContractViem = exports.CrvUSDViewContractViem = exports.EulerV2ViewContractViem = exports.SparkIncentiveDataProviderContractViem = exports.SparkViewContractViem = exports.CompV3ViewContractViem = exports.WstETHPriceFeedContractViem = exports.USDCPriceFeedContractViem = exports.ETHPriceFeedContractViem = exports.COMPPriceFeedContractViem = exports.DFSFeedRegistryContractViem = exports.FeedRegistryContractViem = exports.AaveIncentiveDataProviderV3ContractViem = exports.AaveV3ViewContractViem = exports.AaveLoanInfoV2ContractViem = exports.MorphoBlueViewContractViem = exports.createViemContractFromConfigFunc = exports.getConfigContractAbi = exports.getConfigContractAddress = void 0;
38
37
  const viem_1 = require("viem");
39
38
  const configRaw = __importStar(require("./config/contracts"));
40
39
  // @ts-ignore
@@ -85,24 +84,6 @@ const createViemContractFromConfigFunc = (name, _address) => (client, network, b
85
84
  });
86
85
  };
87
86
  exports.createViemContractFromConfigFunc = createViemContractFromConfigFunc;
88
- const getMorphoVaultContractViem = (client, address) => {
89
- const abi = (0, exports.getConfigContractAbi)('MorphoVault');
90
- return (0, viem_1.getContract)({
91
- address,
92
- abi,
93
- client,
94
- });
95
- };
96
- exports.getMorphoVaultContractViem = getMorphoVaultContractViem;
97
- const getYearnVaultContractViem = (client, address) => {
98
- const abi = (0, exports.getConfigContractAbi)('YearnVault');
99
- return (0, viem_1.getContract)({
100
- address,
101
- abi,
102
- client,
103
- });
104
- };
105
- exports.getYearnVaultContractViem = getYearnVaultContractViem;
106
87
  exports.MorphoBlueViewContractViem = (0, exports.createViemContractFromConfigFunc)('MorphoBlueView');
107
88
  exports.AaveLoanInfoV2ContractViem = (0, exports.createViemContractFromConfigFunc)('AaveLoanInfoV2');
108
89
  exports.AaveV3ViewContractViem = (0, exports.createViemContractFromConfigFunc)('AaveV3View');
@@ -147,5 +128,3 @@ exports.SparkRewardsControllerViem = (0, exports.createViemContractFromConfigFun
147
128
  exports.AaveRewardsControllerViem = (0, exports.createViemContractFromConfigFunc)('AaveRewardsController');
148
129
  exports.LiquityV2sBoldVaultViem = (0, exports.createViemContractFromConfigFunc)('LiquityV2sBoldVault');
149
130
  exports.StkAAVEViem = (0, exports.createViemContractFromConfigFunc)('StkAAVE');
150
- exports.YearnViewContractViem = (0, exports.createViemContractFromConfigFunc)('YearnView');
151
- exports.MakerDsrContractViem = (0, exports.createViemContractFromConfigFunc)('MakerDsr');
@@ -1146,23 +1146,11 @@ exports._getAllFluidMarketDataChunked = _getAllFluidMarketDataChunked;
1146
1146
  const getAllFluidMarketDataChunked = (network, provider) => __awaiter(void 0, void 0, void 0, function* () { return (0, exports._getAllFluidMarketDataChunked)(network, (0, viem_1.getViemProvider)(provider, network, { batch: { multicall: true } })); });
1147
1147
  exports.getAllFluidMarketDataChunked = getAllFluidMarketDataChunked;
1148
1148
  const _getFluidTokenData = (provider, network, token) => __awaiter(void 0, void 0, void 0, function* () {
1149
- var _a, _b;
1150
1149
  const view = (0, contracts_1.FluidViewContractViem)(provider, network);
1151
1150
  const fTokenAddress = (0, markets_1.getFTokenAddress)(token, network);
1152
- const [data, rewardsApiResponse,] = yield Promise.all([
1153
- yield view.read.getFTokenData([fTokenAddress]),
1154
- fetch(`https://api.fluid.instadapp.io/v2/lending/${network}/tokens/${fTokenAddress}`),
1155
- ]);
1156
- let rewardsData = { rewards: [] };
1157
- if (!rewardsApiResponse.ok) {
1158
- console.log('External API Failure: Failed to fetch fluid rewards APY');
1159
- }
1160
- else {
1161
- rewardsData = yield rewardsApiResponse.json();
1162
- }
1163
- const supplyRate = new decimal_js_1.default((rewardsData === null || rewardsData === void 0 ? void 0 : rewardsData.supplyRate) || '0').div(100).toString();
1164
- const rewardRates = ((_a = rewardsData === null || rewardsData === void 0 ? void 0 : rewardsData.rewards) === null || _a === void 0 ? void 0 : _a.reduce((acc, item) => acc.add(new decimal_js_1.default(item.rate || '0').div(100)), new decimal_js_1.default(0))) || '0';
1165
- const stakeRate = new decimal_js_1.default(((_b = rewardsData === null || rewardsData === void 0 ? void 0 : rewardsData.asset) === null || _b === void 0 ? void 0 : _b.stakingApr) || '0').div(100).toString();
1151
+ const data = yield view.read.getFTokenData([fTokenAddress]);
1152
+ const supplyRate = new decimal_js_1.default(data.supplyRate).div(100).toString();
1153
+ const rewardsRate = new decimal_js_1.default(data.rewardsRate).div(1e12).toString();
1166
1154
  const decimals = data.decimals.toString();
1167
1155
  const depositRate = new decimal_js_1.default((0, utils_1.getEthAmountForDecimals)(data.convertToShares.toString(), decimals)).toString();
1168
1156
  const withdrawRate = new decimal_js_1.default((0, utils_1.getEthAmountForDecimals)(data.convertToAssets.toString(), decimals)).toString();
@@ -1172,7 +1160,7 @@ const _getFluidTokenData = (provider, network, token) => __awaiter(void 0, void
1172
1160
  decimals,
1173
1161
  totalDeposited: (0, utils_1.getEthAmountForDecimals)(data.totalAssets.toString(), decimals),
1174
1162
  withdrawable: (0, utils_1.getEthAmountForDecimals)(data.withdrawable.toString(), decimals),
1175
- apy: new decimal_js_1.default(supplyRate).plus(rewardRates).plus(stakeRate).toString(),
1163
+ apy: new decimal_js_1.default(supplyRate).add(rewardsRate).toString(),
1176
1164
  depositRate,
1177
1165
  withdrawRate,
1178
1166
  };
package/cjs/index.d.ts CHANGED
@@ -19,6 +19,5 @@ import * as llamaLend from './llamaLend';
19
19
  import * as eulerV2 from './eulerV2';
20
20
  import * as portfolio from './portfolio';
21
21
  import * as claiming from './claiming';
22
- import * as savings from './savings';
23
22
  export * from './types';
24
- export { aaveV2, aaveV3, compoundV2, compoundV3, spark, curveUsd, liquity, liquityV2, maker, exchange, staking, moneymarket, markets, helpers, morphoBlue, llamaLend, eulerV2, fluid, portfolio, claiming, savings, };
23
+ export { aaveV2, aaveV3, compoundV2, compoundV3, spark, curveUsd, liquity, liquityV2, maker, exchange, staking, moneymarket, markets, helpers, morphoBlue, llamaLend, eulerV2, fluid, portfolio, claiming, };
package/cjs/index.js CHANGED
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.savings = exports.claiming = exports.portfolio = exports.fluid = exports.eulerV2 = exports.llamaLend = exports.morphoBlue = exports.helpers = exports.markets = exports.moneymarket = exports.staking = exports.exchange = exports.maker = exports.liquityV2 = exports.liquity = exports.curveUsd = exports.spark = exports.compoundV3 = exports.compoundV2 = exports.aaveV3 = exports.aaveV2 = void 0;
39
+ exports.claiming = exports.portfolio = exports.fluid = exports.eulerV2 = exports.llamaLend = exports.morphoBlue = exports.helpers = exports.markets = exports.moneymarket = exports.staking = exports.exchange = exports.maker = exports.liquityV2 = exports.liquity = exports.curveUsd = exports.spark = exports.compoundV3 = exports.compoundV2 = exports.aaveV3 = exports.aaveV2 = void 0;
40
40
  require("./setup");
41
41
  const fluid = __importStar(require("./fluid"));
42
42
  exports.fluid = fluid;
@@ -78,6 +78,4 @@ const portfolio = __importStar(require("./portfolio"));
78
78
  exports.portfolio = portfolio;
79
79
  const claiming = __importStar(require("./claiming"));
80
80
  exports.claiming = claiming;
81
- const savings = __importStar(require("./savings"));
82
- exports.savings = savings;
83
81
  __exportStar(require("./types"), exports);
@@ -10,7 +10,7 @@ exports.aaveV1AssetsDefaultMarket = [
10
10
  exports.aaveV2AssetsDefaultMarket = ['USDT', 'WBTC', 'ETH', 'YFI', 'ZRX', 'UNI', 'AAVE', 'BAT', 'BUSD', 'DAI', 'ENJ', 'KNCL', 'LINK', 'MANA', 'MKR', 'REN', 'SNX', 'SUSD', 'TUSD', 'USDC', 'CRV', 'GUSD', 'BAL', 'xSUSHI', 'RENFIL', 'RAI', 'AMPL', 'USDP', 'DPI', 'FRAX', 'FEI', 'stETH', 'ENS', 'UST', 'CVX', '1INCH', 'LUSD'];
11
11
  exports.aaveV3AssetsDefaultMarketEth = [
12
12
  'ETH', 'wstETH', 'WBTC', 'USDC', 'DAI', 'LINK', 'AAVE', 'cbETH', 'USDT', 'rETH', 'LUSD', 'CRV', 'MKR', 'SNX', 'BAL', 'UNI', 'LDO', 'ENS', '1INCH', 'FRAX', 'GHO', 'RPL', 'sDAI', 'STG', 'KNC', 'FXS', 'crvUSD', 'PYUSD', 'weETH', 'osETH', 'USDe', 'ETHx', 'sUSDe', 'tBTC', 'cbBTC', 'USDS', 'rsETH', 'LBTC', 'eBTC', 'RLUSD', 'PT eUSDe May', 'PT sUSDe July', 'USDtb',
13
- 'eUSDe', 'PT USDe July', 'PT eUSDe Aug', 'EURC', 'FBTC', 'PT sUSDe Sep', 'PT USDe Sep', 'tETH', 'ezETH', 'XAUt', 'PT sUSDe Nov', 'PT USDe Nov',
13
+ 'eUSDe', 'PT USDe July', 'PT eUSDe Aug', 'EURC', 'FBTC', 'PT sUSDe Sep', 'PT USDe Sep', 'tETH', 'ezETH', 'XAUt', 'PT sUSDe Nov', 'PT USDe Nov', 'PT sUSDe Feb', 'PT USDe Feb',
14
14
  ];
15
15
  exports.aaveV3AssetsDefaultMarketOpt = [
16
16
  'DAI', 'USDC.e', 'USDT', 'SUSD', 'AAVE', 'LINK', 'WBTC', 'ETH', 'OP', 'wstETH', 'LUSD', 'MAI', 'rETH', 'USDC',
@@ -31,6 +31,7 @@ exports.STABLE_ASSETS = [
31
31
  'DAI', 'USDC', 'USDT', 'TUSD', 'USDP', 'GUSD', 'BUSD', 'SUSD', 'FRAX', 'LUSD', 'USDC.e', 'GHO', 'sDAI', 'USDA',
32
32
  'USDe', 'sUSDe', 'USDS', 'sUSDS', 'USR', 'EURC', 'BOLD', 'BOLD Legacy', 'RLUSD', 'PT sUSDe July', 'PT eUSDe May',
33
33
  'USDtb', 'eUSDe', 'PT USDe July', 'PT eUSDe Aug', 'PT sUSDe Sep', 'PT USDe Sep', 'PT sUSDe Nov', 'PT USDe Nov', 'PT sUSDe Jan', 'PT USDe Jan',
34
+ 'PT sUSDe Feb', 'PT USDe Feb',
34
35
  ];
35
36
  const isLeveragedPos = (usedAssets, dustLimit = 5) => {
36
37
  let borrowUnstable = 0;
@@ -72,6 +72,7 @@ exports.STAKING_ASSETS = [
72
72
  'cbETH', 'wstETH', 'cbETH', 'rETH', 'sDAI', 'weETH', 'sUSDe', 'osETH',
73
73
  'ezETH', 'ETHx', 'rsETH', 'pufETH', 'wrsETH', 'wsuperOETHb', 'sUSDS', 'tETH', 'PT sUSDe Sep', 'PT USDe Sep',
74
74
  'PT sUSDe Nov', 'PT USDe Nov', 'PT USDe Jan', 'PT sUSDe Jan', 'wrsETH', 'wstETH', 'syrupUSDT', 'syrupUSDC', 'wstUSR',
75
+ 'PT sUSDe Feb', 'PT USDe Feb',
75
76
  ];
76
77
  exports.getStakingApy = (0, memoizee_1.default)((asset_1, ...args_1) => __awaiter(void 0, [asset_1, ...args_1], void 0, function* (asset, network = common_1.NetworkNumber.Eth) {
77
78
  try {
@@ -131,6 +132,10 @@ exports.getStakingApy = (0, memoizee_1.default)((asset_1, ...args_1) => __awaite
131
132
  return yield getApyFromDfsApi('syrupUSDC');
132
133
  if (asset === 'wstUSR')
133
134
  return yield getApyFromDfsApi('wstUSR');
135
+ if (asset === 'PT sUSDe Feb')
136
+ return yield getApyFromDfsApi('PT sUSDe Feb', network);
137
+ if (asset === 'PT USDe Feb')
138
+ return yield getApyFromDfsApi('PT USDe Feb', network);
134
139
  }
135
140
  catch (e) {
136
141
  console.error(`Failed to fetch APY for ${asset}`);
@@ -12,4 +12,3 @@ export * from './fluid';
12
12
  export * from './portfolio';
13
13
  export * from './merit';
14
14
  export * from './merkl';
15
- export * from './savings';
@@ -28,4 +28,3 @@ __exportStar(require("./fluid"), exports);
28
28
  __exportStar(require("./portfolio"), exports);
29
29
  __exportStar(require("./merit"), exports);
30
30
  __exportStar(require("./merkl"), exports);
31
- __exportStar(require("./savings"), exports);
@@ -85162,176 +85162,3 @@ export declare const StkAAVE: {
85162
85162
  };
85163
85163
  };
85164
85164
  };
85165
- export declare const MorphoVault: {
85166
- readonly abi: readonly [{
85167
- readonly inputs: readonly [];
85168
- readonly name: "acceptTimelock";
85169
- readonly outputs: readonly [];
85170
- readonly stateMutability: "nonpayable";
85171
- readonly type: "function";
85172
- }, {
85173
- readonly inputs: readonly [{
85174
- readonly internalType: "address";
85175
- readonly name: "account";
85176
- readonly type: "address";
85177
- }];
85178
- readonly name: "balanceOf";
85179
- readonly outputs: readonly [{
85180
- readonly internalType: "uint256";
85181
- readonly name: "";
85182
- readonly type: "uint256";
85183
- }];
85184
- readonly stateMutability: "view";
85185
- readonly type: "function";
85186
- }, {
85187
- readonly inputs: readonly [{
85188
- readonly internalType: "uint256";
85189
- readonly name: "shares";
85190
- readonly type: "uint256";
85191
- }];
85192
- readonly name: "convertToAssets";
85193
- readonly outputs: readonly [{
85194
- readonly internalType: "uint256";
85195
- readonly name: "";
85196
- readonly type: "uint256";
85197
- }];
85198
- readonly stateMutability: "view";
85199
- readonly type: "function";
85200
- }, {
85201
- readonly inputs: readonly [];
85202
- readonly name: "decimals";
85203
- readonly outputs: readonly [{
85204
- readonly internalType: "uint8";
85205
- readonly name: "";
85206
- readonly type: "uint8";
85207
- }];
85208
- readonly stateMutability: "view";
85209
- readonly type: "function";
85210
- }, {
85211
- readonly inputs: readonly [];
85212
- readonly name: "DECIMALS_OFFSET";
85213
- readonly outputs: readonly [{
85214
- readonly internalType: "uint8";
85215
- readonly name: "";
85216
- readonly type: "uint8";
85217
- }];
85218
- readonly stateMutability: "view";
85219
- readonly type: "function";
85220
- }, {
85221
- readonly inputs: readonly [{
85222
- readonly internalType: "uint256";
85223
- readonly name: "shares";
85224
- readonly type: "uint256";
85225
- }];
85226
- readonly name: "previewRedeem";
85227
- readonly outputs: readonly [{
85228
- readonly internalType: "uint256";
85229
- readonly name: "";
85230
- readonly type: "uint256";
85231
- }];
85232
- readonly stateMutability: "view";
85233
- readonly type: "function";
85234
- }, {
85235
- readonly inputs: readonly [];
85236
- readonly name: "totalAssets";
85237
- readonly outputs: readonly [{
85238
- readonly internalType: "uint256";
85239
- readonly name: "";
85240
- readonly type: "uint256";
85241
- }];
85242
- readonly stateMutability: "view";
85243
- readonly type: "function";
85244
- }, {
85245
- readonly inputs: readonly [];
85246
- readonly name: "totalSupply";
85247
- readonly outputs: readonly [{
85248
- readonly internalType: "uint256";
85249
- readonly name: "";
85250
- readonly type: "uint256";
85251
- }];
85252
- readonly stateMutability: "view";
85253
- readonly type: "function";
85254
- }];
85255
- };
85256
- export declare const YearnVault: {
85257
- readonly abi: readonly [{
85258
- readonly stateMutability: "view";
85259
- readonly type: "function";
85260
- readonly name: "balanceOf";
85261
- readonly inputs: readonly [{
85262
- readonly name: "arg0";
85263
- readonly type: "address";
85264
- }];
85265
- readonly outputs: readonly [{
85266
- readonly name: "";
85267
- readonly type: "uint256";
85268
- }];
85269
- readonly gas: 3923;
85270
- }, {
85271
- readonly stateMutability: "view";
85272
- readonly type: "function";
85273
- readonly name: "totalAssets";
85274
- readonly inputs: readonly [];
85275
- readonly outputs: readonly [{
85276
- readonly name: "";
85277
- readonly type: "uint256";
85278
- }];
85279
- readonly gas: 8698;
85280
- }, {
85281
- readonly stateMutability: "view";
85282
- readonly type: "function";
85283
- readonly name: "totalSupply";
85284
- readonly inputs: readonly [];
85285
- readonly outputs: readonly [{
85286
- readonly name: "";
85287
- readonly type: "uint256";
85288
- }];
85289
- readonly gas: 3768;
85290
- }];
85291
- };
85292
- export declare const YearnView: {
85293
- readonly abi: readonly [{
85294
- readonly inputs: readonly [{
85295
- readonly internalType: "address";
85296
- readonly name: "_vault";
85297
- readonly type: "address";
85298
- }];
85299
- readonly name: "getPoolLiquidity";
85300
- readonly outputs: readonly [{
85301
- readonly internalType: "uint256";
85302
- readonly name: "";
85303
- readonly type: "uint256";
85304
- }];
85305
- readonly stateMutability: "view";
85306
- readonly type: "function";
85307
- }];
85308
- readonly networks: {
85309
- readonly "1": {
85310
- readonly address: "0x36314D468E1da48Fb637fFB7c7DBDF222eC3FFe7";
85311
- };
85312
- };
85313
- };
85314
- export declare const MakerDsr: {
85315
- abi: {
85316
- constant: boolean;
85317
- inputs: {
85318
- internalType: string;
85319
- name: string;
85320
- type: string;
85321
- }[];
85322
- name: string;
85323
- outputs: {
85324
- internalType: string;
85325
- name: string;
85326
- type: string;
85327
- }[];
85328
- payable: boolean;
85329
- stateMutability: string;
85330
- type: string;
85331
- }[];
85332
- networks: {
85333
- "1": {
85334
- address: string;
85335
- };
85336
- };
85337
- };
@@ -1256,25 +1256,3 @@ export const StkAAVE = {
1256
1256
  }
1257
1257
  }
1258
1258
  };
1259
- export const MorphoVault = {
1260
- "abi": [{ "inputs": [], "name": "acceptTimelock", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "shares", "type": "uint256" }], "name": "convertToAssets", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DECIMALS_OFFSET", "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "shares", "type": "uint256" }], "name": "previewRedeem", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalAssets", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }],
1261
- };
1262
- export const YearnVault = {
1263
- "abi": [{ "stateMutability": "view", "type": "function", "name": "balanceOf", "inputs": [{ "name": "arg0", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "gas": 3923 }, { "stateMutability": "view", "type": "function", "name": "totalAssets", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "gas": 8698 }, { "stateMutability": "view", "type": "function", "name": "totalSupply", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "gas": 3768 }]
1264
- };
1265
- export const YearnView = {
1266
- "abi": [{ "inputs": [{ "internalType": "address", "name": "_vault", "type": "address" }], "name": "getPoolLiquidity", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }],
1267
- "networks": {
1268
- "1": {
1269
- "address": "0x36314D468E1da48Fb637fFB7c7DBDF222eC3FFe7",
1270
- }
1271
- }
1272
- };
1273
- export const MakerDsr = {
1274
- "abi": [{ "constant": true, "inputs": [], "name": "chi", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "pie", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "Pie", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }],
1275
- "networks": {
1276
- "1": {
1277
- "address": "0x197e90f9fad81970ba7976f33cbd77088e5d7cf7",
1278
- }
1279
- }
1280
- };