@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
@@ -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
- };
@@ -2,7 +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.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;
5
+ 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
6
  exports.AaveV3View = {
7
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": "string", "name": "label", "type": "string" }, { "internalType": "uint128", "name": "borrowableBitmap", "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": "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": "string", "name": "label", "type": "string" }, { "internalType": "uint128", "name": "borrowableBitmap", "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": [{ "components": [{ "internalType": "uint256", "name": "data", "type": "uint256" }], "internalType": "struct DataTypes.ReserveConfigurationMap", "name": "self", "type": "tuple" }], "name": "getLtv", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "pure", "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": "_market", "type": "address" }], "name": "isBorrowAllowed", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }],
8
8
  "networks": {
@@ -1260,25 +1260,3 @@ exports.StkAAVE = {
1260
1260
  }
1261
1261
  }
1262
1262
  };
1263
- exports.MorphoVault = {
1264
- "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" }],
1265
- };
1266
- exports.YearnVault = {
1267
- "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 }]
1268
- };
1269
- exports.YearnView = {
1270
- "abi": [{ "inputs": [{ "internalType": "address", "name": "_vault", "type": "address" }], "name": "getPoolLiquidity", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }],
1271
- "networks": {
1272
- "1": {
1273
- "address": "0x36314D468E1da48Fb637fFB7c7DBDF222eC3FFe7",
1274
- }
1275
- }
1276
- };
1277
- exports.MakerDsr = {
1278
- "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" }],
1279
- "networks": {
1280
- "1": {
1281
- "address": "0x197e90f9fad81970ba7976f33cbd77088e5d7cf7",
1282
- }
1283
- }
1284
- };