@gearbox-protocol/sdk 3.0.0-next.5 → 3.0.0-next.50
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.
- package/contracts/IAirdropDistributor.sol +55 -0
- package/contracts/IDegenDistributor.sol +28 -0
- package/contracts/IOffchainOracle.sol +17 -0
- package/contracts/IWETHGateway.sol +33 -0
- package/contracts/IwstETHGateway.sol +24 -0
- package/contracts/index.sol +11 -3
- package/lib/apy/curveAPY.js +2 -1
- package/lib/apy/index.d.ts +2 -2
- package/lib/apy/yearnAPY.js +1 -1
- package/lib/config.d.ts +0 -1
- package/lib/config.js +1 -2
- package/lib/core/assets.d.ts +4 -4
- package/lib/core/assets.js +28 -17
- package/lib/core/creditAccount.d.ts +31 -6
- package/lib/core/creditAccount.js +101 -37
- package/lib/core/creditAccount.spec.js +693 -10
- package/lib/core/creditManager.d.ts +22 -8
- package/lib/core/creditManager.js +86 -30
- package/lib/core/events.js +14 -14
- package/lib/core/gauge.d.ts +26 -0
- package/lib/core/gauge.js +63 -0
- package/lib/core/gaugeMath.d.ts +40 -0
- package/lib/core/gaugeMath.js +108 -0
- package/lib/core/gaugeMath.spec.d.ts +1 -0
- package/lib/core/gaugeMath.spec.js +388 -0
- package/lib/core/{pool/data.d.ts → pool.d.ts} +18 -10
- package/lib/core/{pool/data.js → pool.js} +69 -24
- package/lib/core/strategy.js +2 -2
- package/lib/core/trade.d.ts +5 -23
- package/lib/core/trade.js +4 -61
- package/lib/core/transactions.d.ts +50 -3
- package/lib/core/transactions.js +136 -105
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/parsers/abstractParser.js +1 -2
- package/lib/parsers/creditFacadeParser.d.ts +2 -1
- package/lib/parsers/creditFacadeParser.js +17 -5
- package/lib/parsers/creditFacadeParser.spec.js +2 -3
- package/lib/parsers/curveAdapterParser.js +2 -3
- package/lib/parsers/txParser.d.ts +4 -4
- package/lib/parsers/txParser.js +9 -3
- package/lib/parsers/uniV2AdapterParser.js +2 -2
- package/lib/parsers/uniV3AdapterParser.js +3 -3
- package/lib/pathfinder/core.d.ts +4 -4
- package/lib/pathfinder/pathOptions.d.ts +2 -1
- package/lib/pathfinder/pathOptions.js +20 -1
- package/lib/pathfinder/pathOptions.spec.js +2 -2
- package/lib/pathfinder/pathfinder.js +4 -3
- package/lib/pathfinder/pathfinder.spec.js +3 -1
- package/lib/payload/creditAccount.d.ts +2 -2
- package/lib/payload/gauge.d.ts +12 -0
- package/lib/payload/pool.d.ts +6 -1
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributor.d.ts +124 -0
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributorEvents.d.ts +73 -0
- package/lib/types/IAirdropDistributor.sol/index.d.ts +2 -0
- package/lib/types/IConvexToken.d.ts +9 -1
- package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +17 -1
- package/lib/types/{IConvexV1BoosterAdapter.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts} +19 -4
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +43 -0
- package/lib/types/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3.d.ts +716 -0
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.d.ts +275 -0
- package/lib/types/ICreditConfiguratorV3.sol/index.d.ts +2 -0
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +7 -11
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +165 -20
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +5 -7
- package/lib/types/ICreditFacadeV3Multicall.d.ts +35 -12
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +273 -39
- package/lib/types/IDataCompressorV2_10.d.ts +43 -9
- package/lib/types/IDataCompressorV3_00.d.ts +140 -10
- package/lib/types/IDegenDistributor.sol/IDegenDistributor.d.ts +96 -0
- package/lib/types/IDegenDistributor.sol/IDegenDistributorEvents.d.ts +53 -0
- package/lib/types/IDegenDistributor.sol/index.d.ts +2 -0
- package/lib/types/{draft-IERC20Permit.sol/IERC20Permit.d.ts → IERC20Permit.d.ts} +1 -1
- package/lib/types/IERC20ZapperDeposits.d.ts +117 -0
- package/lib/types/IETHZapperDeposits.d.ts +66 -0
- package/lib/types/IGasPricer.d.ts +44 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +408 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
- package/lib/types/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.d.ts → ILidoV1Adapter.d.ts} +5 -40
- package/lib/types/ILidoV1Adapter.js +2 -0
- package/lib/types/IOffchainOracle.d.ts +58 -0
- package/lib/types/IOffchainOracle.js +2 -0
- package/lib/types/IPoolV3.sol/IPoolV3.d.ts +43 -11
- package/lib/types/IPoolV3.sol/index.d.ts +0 -1
- package/lib/types/IWETHGateway.d.ts +90 -0
- package/lib/types/IWETHGateway.js +2 -0
- package/lib/types/IZapper.d.ts +130 -0
- package/lib/types/IZapper.js +2 -0
- package/lib/types/IwstETHGateway.sol/IwstETHGateWay.d.ts +70 -0
- package/lib/types/IwstETHGateway.sol/IwstETHGateWay.js +2 -0
- package/lib/types/IwstETHGateway.sol/index.d.ts +1 -0
- package/lib/types/IwstETHGateway.sol/index.js +2 -0
- package/lib/types/factories/AddressProvider__factory.d.ts +1 -1
- package/lib/types/factories/AddressProvider__factory.js +1 -1
- package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +1 -1
- package/lib/types/factories/Balances.sol/BalanceOps__factory.js +1 -1
- package/lib/types/factories/Claimable__factory.d.ts +1 -1
- package/lib/types/factories/Claimable__factory.js +1 -1
- package/lib/types/factories/Errors__factory.d.ts +1 -1
- package/lib/types/factories/Errors__factory.js +1 -1
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +63 -0
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +88 -0
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +119 -0
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +161 -0
- package/lib/types/factories/IAirdropDistributor.sol/index.d.ts +2 -0
- package/lib/types/factories/IAirdropDistributor.sol/index.js +10 -0
- package/lib/types/factories/IConvexToken__factory.d.ts +10 -0
- package/lib/types/factories/IConvexToken__factory.js +13 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +20 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +26 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +23 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +38 -0
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts} +16 -1
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +19 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +10 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +273 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +357 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +605 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +785 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/index.d.ts +2 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/index.js +10 -0
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +0 -4
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +0 -5
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +1 -6
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +1 -7
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +144 -13
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +185 -15
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +35 -5
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +43 -5
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +199 -25
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +252 -28
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +110 -12
- package/lib/types/factories/IDataCompressorV2_10__factory.js +138 -14
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +400 -16
- package/lib/types/factories/IDataCompressorV3_00__factory.js +508 -19
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +38 -0
- package/lib/types/factories/{AaveV2_WrappedAToken.sol/IWrappedATokenEvents__factory.js → IDegenDistributor.sol/IDegenDistributorEvents__factory.js} +13 -25
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +84 -0
- package/lib/types/factories/{IPoolV3.sol/IPoolBase__factory.js → IDegenDistributor.sol/IDegenDistributor__factory.js} +46 -41
- package/lib/types/factories/IDegenDistributor.sol/index.d.ts +2 -0
- package/lib/types/factories/IDegenDistributor.sol/index.js +10 -0
- package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.d.ts → IERC20Permit__factory.d.ts} +1 -1
- package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +120 -0
- package/lib/types/factories/IERC20ZapperDeposits__factory.js +165 -0
- package/lib/types/factories/IETHZapperDeposits__factory.d.ts +40 -0
- package/lib/types/factories/IETHZapperDeposits__factory.js +62 -0
- package/lib/types/factories/IGasPricer__factory.d.ts +22 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → IGasPricer__factory.js} +14 -8
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +113 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +152 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +504 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +660 -0
- package/lib/types/factories/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IGearStakingV3.sol/index.js +10 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts → ILidoV1Adapter__factory.d.ts} +1 -35
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +0 -44
- package/lib/types/factories/IOffchainOracle__factory.d.ts +48 -0
- package/lib/types/factories/IOffchainOracle__factory.js +72 -0
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +62 -14
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +79 -17
- package/lib/types/factories/IPoolV3.sol/index.d.ts +0 -1
- package/lib/types/factories/IPoolV3.sol/index.js +1 -3
- package/lib/types/factories/IWETHGateway__factory.d.ts +58 -0
- package/lib/types/factories/IWETHGateway__factory.js +83 -0
- package/lib/types/factories/{WERC20ZapperBase__factory.d.ts → IZapper__factory.d.ts} +57 -61
- package/lib/types/factories/{WERC20ZapperBase__factory.js → IZapper__factory.js} +65 -71
- package/lib/types/factories/{ZapperBase__factory.d.ts → IwstETHGateway.sol/IwstETHGateWay__factory.d.ts} +22 -34
- package/lib/types/factories/{ZapperBase__factory.js → IwstETHGateway.sol/IwstETHGateWay__factory.js} +22 -39
- package/lib/types/factories/IwstETHGateway.sol/index.d.ts +1 -0
- package/lib/types/factories/IwstETHGateway.sol/index.js +8 -0
- package/lib/types/factories/SafeERC20__factory.d.ts +1 -1
- package/lib/types/factories/SafeERC20__factory.js +1 -1
- package/lib/types/factories/index.d.ts +15 -13
- package/lib/types/factories/index.js +25 -25
- package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +15 -1
- package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +19 -0
- package/lib/types/factories/interfaces/index.d.ts +1 -0
- package/lib/types/factories/interfaces/index.js +8 -0
- package/lib/types/index.d.ts +62 -48
- package/lib/types/index.js +52 -46
- package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +12 -2
- package/lib/types/interfaces/IRouter.js +2 -0
- package/lib/types/interfaces/index.d.ts +1 -0
- package/lib/types/interfaces/index.js +2 -0
- package/lib/utils/formatter.d.ts +0 -3
- package/lib/utils/formatter.js +1 -67
- package/lib/utils/math.d.ts +2 -0
- package/lib/utils/math.js +2 -0
- package/lib/utils/types.d.ts +1 -0
- package/lib/watchers/creditAccountWatcher.d.ts +3 -2
- package/lib/watchers/creditAccountWatcher.js +19 -13
- package/lib/watchers/creditAccountWatcher.spec.js +18 -18
- package/lib/watchers/creditManagerWatcher.d.ts +5 -3
- package/lib/watchers/creditManagerWatcher.js +32 -10
- package/lib/watchers/creditManagerWatcher.spec.js +12 -4
- package/package.json +10 -9
- package/contracts/IRouter.sol +0 -100
- package/lib/core/pool/index.d.ts +0 -1
- package/lib/core/pool/index.js +0 -17
- package/lib/types/AaveV2_WrappedAToken.sol/IWrappedATokenEvents.d.ts +0 -60
- package/lib/types/AaveV2_WrappedAToken.sol/WrappedAToken.d.ts +0 -332
- package/lib/types/AaveV2_WrappedAToken.sol/index.d.ts +0 -2
- package/lib/types/ERC20.d.ts +0 -198
- package/lib/types/IAToken.d.ts +0 -182
- package/lib/types/ILendingPool.d.ts +0 -140
- package/lib/types/ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts +0 -39
- package/lib/types/ILidoV1Adapter.sol/ILidoV1AdapterExceptions.d.ts +0 -27
- package/lib/types/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/IPoolV3.sol/IPoolBase.d.ts +0 -102
- package/lib/types/WATokenZapper.d.ts +0 -134
- package/lib/types/WERC20ZapperBase.d.ts +0 -134
- package/lib/types/WETHZapper.d.ts +0 -122
- package/lib/types/WstETHZapper.d.ts +0 -134
- package/lib/types/ZapperBase.d.ts +0 -70
- package/lib/types/draft-IERC20Permit.sol/index.d.ts +0 -1
- package/lib/types/factories/AaveV2_WrappedAToken.sol/IWrappedATokenEvents__factory.d.ts +0 -48
- package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.d.ts +0 -397
- package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.js +0 -535
- package/lib/types/factories/AaveV2_WrappedAToken.sol/index.d.ts +0 -2
- package/lib/types/factories/AaveV2_WrappedAToken.sol/index.js +0 -10
- package/lib/types/factories/ERC20__factory.d.ts +0 -239
- package/lib/types/factories/ERC20__factory.js +0 -328
- package/lib/types/factories/IAToken__factory.d.ts +0 -198
- package/lib/types/factories/IAToken__factory.js +0 -267
- package/lib/types/factories/ILendingPool__factory.d.ts +0 -134
- package/lib/types/factories/ILendingPool__factory.js +0 -183
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.d.ts +0 -18
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.d.ts +0 -12
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js +0 -24
- package/lib/types/factories/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/factories/ILidoV1Adapter.sol/index.js +0 -12
- package/lib/types/factories/IPoolV3.sol/IPoolBase__factory.d.ts +0 -80
- package/lib/types/factories/WATokenZapper__factory.d.ts +0 -161
- package/lib/types/factories/WATokenZapper__factory.js +0 -227
- package/lib/types/factories/WETHZapper__factory.d.ts +0 -138
- package/lib/types/factories/WETHZapper__factory.js +0 -198
- package/lib/types/factories/WstETHZapper__factory.d.ts +0 -161
- package/lib/types/factories/WstETHZapper__factory.js +0 -227
- package/lib/types/factories/draft-IERC20Permit.sol/index.d.ts +0 -1
- package/lib/types/factories/draft-IERC20Permit.sol/index.js +0 -8
- /package/lib/{types/AaveV2_WrappedAToken.sol/IWrappedATokenEvents.js → payload/gauge.js} +0 -0
- /package/lib/types/{AaveV2_WrappedAToken.sol/WrappedAToken.js → IAirdropDistributor.sol/IAirdropDistributor.js} +0 -0
- /package/lib/types/{AaveV2_WrappedAToken.sol/index.js → IAirdropDistributor.sol/IAirdropDistributorEvents.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol → IAirdropDistributor.sol}/index.js +0 -0
- /package/lib/types/{IConvexV1BoosterAdapter.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js} +0 -0
- /package/lib/types/{ERC20.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js} +0 -0
- /package/lib/types/{draft-IERC20Permit.sol → IConvexV1BoosterAdapter.sol}/index.js +0 -0
- /package/lib/types/{IAToken.js → ICreditConfiguratorV3.sol/ICreditConfiguratorV3.js} +0 -0
- /package/lib/types/{ILendingPool.js → ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.js → ICreditConfiguratorV3.sol/index.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → IDegenDistributor.sol/IDegenDistributor.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → IDegenDistributor.sol/IDegenDistributorEvents.js} +0 -0
- /package/lib/types/{IPoolV3.sol/IPoolBase.js → IDegenDistributor.sol/index.js} +0 -0
- /package/lib/types/{draft-IERC20Permit.sol/IERC20Permit.js → IERC20Permit.js} +0 -0
- /package/lib/types/{IRouter.js → IERC20ZapperDeposits.js} +0 -0
- /package/lib/types/{WATokenZapper.js → IETHZapperDeposits.js} +0 -0
- /package/lib/types/{WERC20ZapperBase.js → IGasPricer.js} +0 -0
- /package/lib/types/{WETHZapper.js → IGearStakingV3.sol/IGearStakingV3.js} +0 -0
- /package/lib/types/{WstETHZapper.js → IGearStakingV3.sol/IGearStakingV3Events.js} +0 -0
- /package/lib/types/{ZapperBase.js → IGearStakingV3.sol/index.js} +0 -0
- /package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.js → IERC20Permit__factory.js} +0 -0
|
@@ -72,6 +72,11 @@ const _abi = [
|
|
|
72
72
|
name: "creditManager",
|
|
73
73
|
type: "address",
|
|
74
74
|
},
|
|
75
|
+
{
|
|
76
|
+
internalType: "string",
|
|
77
|
+
name: "cmName",
|
|
78
|
+
type: "string",
|
|
79
|
+
},
|
|
75
80
|
{
|
|
76
81
|
internalType: "address",
|
|
77
82
|
name: "creditFacade",
|
|
@@ -87,11 +92,6 @@ const _abi = [
|
|
|
87
92
|
name: "debt",
|
|
88
93
|
type: "uint256",
|
|
89
94
|
},
|
|
90
|
-
{
|
|
91
|
-
internalType: "uint256",
|
|
92
|
-
name: "cumulativeIndexNow",
|
|
93
|
-
type: "uint256",
|
|
94
|
-
},
|
|
95
95
|
{
|
|
96
96
|
internalType: "uint256",
|
|
97
97
|
name: "cumulativeIndexLastUpdate",
|
|
@@ -189,6 +189,11 @@ const _abi = [
|
|
|
189
189
|
name: "quotaRate",
|
|
190
190
|
type: "uint16",
|
|
191
191
|
},
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "quotaCumulativeIndexLU",
|
|
195
|
+
type: "uint256",
|
|
196
|
+
},
|
|
192
197
|
],
|
|
193
198
|
internalType: "struct TokenBalance[]",
|
|
194
199
|
name: "balances",
|
|
@@ -292,6 +297,11 @@ const _abi = [
|
|
|
292
297
|
name: "creditManager",
|
|
293
298
|
type: "address",
|
|
294
299
|
},
|
|
300
|
+
{
|
|
301
|
+
internalType: "string",
|
|
302
|
+
name: "cmName",
|
|
303
|
+
type: "string",
|
|
304
|
+
},
|
|
295
305
|
{
|
|
296
306
|
internalType: "address",
|
|
297
307
|
name: "creditFacade",
|
|
@@ -307,11 +317,6 @@ const _abi = [
|
|
|
307
317
|
name: "debt",
|
|
308
318
|
type: "uint256",
|
|
309
319
|
},
|
|
310
|
-
{
|
|
311
|
-
internalType: "uint256",
|
|
312
|
-
name: "cumulativeIndexNow",
|
|
313
|
-
type: "uint256",
|
|
314
|
-
},
|
|
315
320
|
{
|
|
316
321
|
internalType: "uint256",
|
|
317
322
|
name: "cumulativeIndexLastUpdate",
|
|
@@ -409,6 +414,11 @@ const _abi = [
|
|
|
409
414
|
name: "quotaRate",
|
|
410
415
|
type: "uint16",
|
|
411
416
|
},
|
|
417
|
+
{
|
|
418
|
+
internalType: "uint256",
|
|
419
|
+
name: "quotaCumulativeIndexLU",
|
|
420
|
+
type: "uint256",
|
|
421
|
+
},
|
|
412
422
|
],
|
|
413
423
|
internalType: "struct TokenBalance[]",
|
|
414
424
|
name: "balances",
|
|
@@ -492,6 +502,11 @@ const _abi = [
|
|
|
492
502
|
name: "addr",
|
|
493
503
|
type: "address",
|
|
494
504
|
},
|
|
505
|
+
{
|
|
506
|
+
internalType: "string",
|
|
507
|
+
name: "name",
|
|
508
|
+
type: "string",
|
|
509
|
+
},
|
|
495
510
|
{
|
|
496
511
|
internalType: "uint256",
|
|
497
512
|
name: "cfVersion",
|
|
@@ -698,6 +713,11 @@ const _abi = [
|
|
|
698
713
|
name: "R_slope3",
|
|
699
714
|
type: "uint16",
|
|
700
715
|
},
|
|
716
|
+
{
|
|
717
|
+
internalType: "bool",
|
|
718
|
+
name: "isBorrowingMoreU2Forbidden",
|
|
719
|
+
type: "bool",
|
|
720
|
+
},
|
|
701
721
|
],
|
|
702
722
|
internalType: "struct LinearModel",
|
|
703
723
|
name: "lirm",
|
|
@@ -728,6 +748,11 @@ const _abi = [
|
|
|
728
748
|
name: "addr",
|
|
729
749
|
type: "address",
|
|
730
750
|
},
|
|
751
|
+
{
|
|
752
|
+
internalType: "string",
|
|
753
|
+
name: "name",
|
|
754
|
+
type: "string",
|
|
755
|
+
},
|
|
731
756
|
{
|
|
732
757
|
internalType: "uint256",
|
|
733
758
|
name: "cfVersion",
|
|
@@ -934,6 +959,11 @@ const _abi = [
|
|
|
934
959
|
name: "R_slope3",
|
|
935
960
|
type: "uint16",
|
|
936
961
|
},
|
|
962
|
+
{
|
|
963
|
+
internalType: "bool",
|
|
964
|
+
name: "isBorrowingMoreU2Forbidden",
|
|
965
|
+
type: "bool",
|
|
966
|
+
},
|
|
937
967
|
],
|
|
938
968
|
internalType: "struct LinearModel",
|
|
939
969
|
name: "lirm",
|
|
@@ -980,9 +1010,19 @@ const _abi = [
|
|
|
980
1010
|
name: "dieselToken",
|
|
981
1011
|
type: "address",
|
|
982
1012
|
},
|
|
1013
|
+
{
|
|
1014
|
+
internalType: "string",
|
|
1015
|
+
name: "symbol",
|
|
1016
|
+
type: "string",
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
internalType: "string",
|
|
1020
|
+
name: "name",
|
|
1021
|
+
type: "string",
|
|
1022
|
+
},
|
|
983
1023
|
{
|
|
984
1024
|
internalType: "uint256",
|
|
985
|
-
name: "
|
|
1025
|
+
name: "baseInterestIndex",
|
|
986
1026
|
type: "uint256",
|
|
987
1027
|
},
|
|
988
1028
|
{
|
|
@@ -1064,7 +1104,7 @@ const _abi = [
|
|
|
1064
1104
|
},
|
|
1065
1105
|
{
|
|
1066
1106
|
internalType: "uint256",
|
|
1067
|
-
name: "
|
|
1107
|
+
name: "lastBaseInterestUpdate",
|
|
1068
1108
|
type: "uint256",
|
|
1069
1109
|
},
|
|
1070
1110
|
{
|
|
@@ -1077,6 +1117,16 @@ const _abi = [
|
|
|
1077
1117
|
name: "version",
|
|
1078
1118
|
type: "uint256",
|
|
1079
1119
|
},
|
|
1120
|
+
{
|
|
1121
|
+
internalType: "address",
|
|
1122
|
+
name: "poolQuotaKeeper",
|
|
1123
|
+
type: "address",
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
internalType: "address",
|
|
1127
|
+
name: "gauge",
|
|
1128
|
+
type: "address",
|
|
1129
|
+
},
|
|
1080
1130
|
{
|
|
1081
1131
|
components: [
|
|
1082
1132
|
{
|
|
@@ -1114,6 +1164,28 @@ const _abi = [
|
|
|
1114
1164
|
name: "quotas",
|
|
1115
1165
|
type: "tuple[]",
|
|
1116
1166
|
},
|
|
1167
|
+
{
|
|
1168
|
+
components: [
|
|
1169
|
+
{
|
|
1170
|
+
internalType: "address",
|
|
1171
|
+
name: "zapper",
|
|
1172
|
+
type: "address",
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
internalType: "address",
|
|
1176
|
+
name: "tokenIn",
|
|
1177
|
+
type: "address",
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
internalType: "address",
|
|
1181
|
+
name: "tokenOut",
|
|
1182
|
+
type: "address",
|
|
1183
|
+
},
|
|
1184
|
+
],
|
|
1185
|
+
internalType: "struct ZapperInfo[]",
|
|
1186
|
+
name: "zappers",
|
|
1187
|
+
type: "tuple[]",
|
|
1188
|
+
},
|
|
1117
1189
|
{
|
|
1118
1190
|
components: [
|
|
1119
1191
|
{
|
|
@@ -1156,6 +1228,11 @@ const _abi = [
|
|
|
1156
1228
|
name: "R_slope3",
|
|
1157
1229
|
type: "uint16",
|
|
1158
1230
|
},
|
|
1231
|
+
{
|
|
1232
|
+
internalType: "bool",
|
|
1233
|
+
name: "isBorrowingMoreU2Forbidden",
|
|
1234
|
+
type: "bool",
|
|
1235
|
+
},
|
|
1159
1236
|
],
|
|
1160
1237
|
internalType: "struct LinearModel",
|
|
1161
1238
|
name: "lirm",
|
|
@@ -1196,9 +1273,19 @@ const _abi = [
|
|
|
1196
1273
|
name: "dieselToken",
|
|
1197
1274
|
type: "address",
|
|
1198
1275
|
},
|
|
1276
|
+
{
|
|
1277
|
+
internalType: "string",
|
|
1278
|
+
name: "symbol",
|
|
1279
|
+
type: "string",
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
internalType: "string",
|
|
1283
|
+
name: "name",
|
|
1284
|
+
type: "string",
|
|
1285
|
+
},
|
|
1199
1286
|
{
|
|
1200
1287
|
internalType: "uint256",
|
|
1201
|
-
name: "
|
|
1288
|
+
name: "baseInterestIndex",
|
|
1202
1289
|
type: "uint256",
|
|
1203
1290
|
},
|
|
1204
1291
|
{
|
|
@@ -1280,7 +1367,7 @@ const _abi = [
|
|
|
1280
1367
|
},
|
|
1281
1368
|
{
|
|
1282
1369
|
internalType: "uint256",
|
|
1283
|
-
name: "
|
|
1370
|
+
name: "lastBaseInterestUpdate",
|
|
1284
1371
|
type: "uint256",
|
|
1285
1372
|
},
|
|
1286
1373
|
{
|
|
@@ -1293,6 +1380,16 @@ const _abi = [
|
|
|
1293
1380
|
name: "version",
|
|
1294
1381
|
type: "uint256",
|
|
1295
1382
|
},
|
|
1383
|
+
{
|
|
1384
|
+
internalType: "address",
|
|
1385
|
+
name: "poolQuotaKeeper",
|
|
1386
|
+
type: "address",
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
internalType: "address",
|
|
1390
|
+
name: "gauge",
|
|
1391
|
+
type: "address",
|
|
1392
|
+
},
|
|
1296
1393
|
{
|
|
1297
1394
|
components: [
|
|
1298
1395
|
{
|
|
@@ -1330,6 +1427,28 @@ const _abi = [
|
|
|
1330
1427
|
name: "quotas",
|
|
1331
1428
|
type: "tuple[]",
|
|
1332
1429
|
},
|
|
1430
|
+
{
|
|
1431
|
+
components: [
|
|
1432
|
+
{
|
|
1433
|
+
internalType: "address",
|
|
1434
|
+
name: "zapper",
|
|
1435
|
+
type: "address",
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
internalType: "address",
|
|
1439
|
+
name: "tokenIn",
|
|
1440
|
+
type: "address",
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
internalType: "address",
|
|
1444
|
+
name: "tokenOut",
|
|
1445
|
+
type: "address",
|
|
1446
|
+
},
|
|
1447
|
+
],
|
|
1448
|
+
internalType: "struct ZapperInfo[]",
|
|
1449
|
+
name: "zappers",
|
|
1450
|
+
type: "tuple[]",
|
|
1451
|
+
},
|
|
1333
1452
|
{
|
|
1334
1453
|
components: [
|
|
1335
1454
|
{
|
|
@@ -1372,6 +1491,11 @@ const _abi = [
|
|
|
1372
1491
|
name: "R_slope3",
|
|
1373
1492
|
type: "uint16",
|
|
1374
1493
|
},
|
|
1494
|
+
{
|
|
1495
|
+
internalType: "bool",
|
|
1496
|
+
name: "isBorrowingMoreU2Forbidden",
|
|
1497
|
+
type: "bool",
|
|
1498
|
+
},
|
|
1375
1499
|
],
|
|
1376
1500
|
internalType: "struct LinearModel",
|
|
1377
1501
|
name: "lirm",
|