@dhedge/v2-sdk 1.5.0 → 1.5.1

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.
@@ -3866,14 +3866,15 @@ var Transaction;
3866
3866
  Transaction["REMOVE_LIQUIDITY_UNSTAKE"] = "removeLiquidityAndUnstake";
3867
3867
  })(Transaction || (Transaction = {}));
3868
3868
 
3869
- var _factoryAddress, _Network$POLYGON, _Network$OPTIMISM, _routerAddress, _Network$POLYGON2, _dappFactoryAddress, _Network$POLYGON3, _stakingAddress, _nonfungiblePositionM, _networkChainIdMap, _balancerSubgraph, _multiCallAddress;
3869
+ var _factoryAddress, _Network$POLYGON, _Network$OPTIMISM, _routerAddress, _Network$POLYGON2, _dappFactoryAddress, _Network$POLYGON3, _Network$OPTIMISM2, _stakingAddress, _Network$POLYGON4, _Network$OPTIMISM3, _aaveAddressProvider, _nonfungiblePositionM, _networkChainIdMap, _balancerSubgraph, _multiCallAddress;
3870
3870
 
3871
3871
  require("dotenv").config();
3872
3872
 
3873
3873
  var factoryAddress = (_factoryAddress = {}, _factoryAddress[Network.POLYGON] = process.env.STAGING_CONTRACTS ? "0xDd87eCdB10cFF7004276AAbAbd30e7a08F69bb53" : "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", _factoryAddress[Network.OPTIMISM] = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", _factoryAddress);
3874
- var routerAddress = (_routerAddress = {}, _routerAddress[Network.POLYGON] = (_Network$POLYGON = {}, _Network$POLYGON[Dapp.SUSHISWAP] = "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", _Network$POLYGON[Dapp.AAVE] = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", _Network$POLYGON[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$POLYGON[Dapp.ONEINCH] = "0x1111111254fb6c44bac0bed2854e76f90643097d", _Network$POLYGON[Dapp.QUICKSWAP] = "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff", _Network$POLYGON[Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$POLYGON[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$POLYGON[Dapp.ARRAKIS] = "0xbc91a120cCD8F80b819EAF32F0996daC3Fa76a6C", _Network$POLYGON[Dapp.TOROS] = "0x9e080df81d9Db50348ef40F630fAE74f5Aea1f68", _Network$POLYGON), _routerAddress[Network.OPTIMISM] = (_Network$OPTIMISM = {}, _Network$OPTIMISM[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$OPTIMISM[Dapp.SYNTHETIX] = "0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4", _Network$OPTIMISM[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$OPTIMISM[Dapp.ONEINCH] = "0x1111111254760F7ab3F16433eea9304126DCd199", _Network$OPTIMISM[Dapp.TOROS] = "0x15B7199AA9b9CaE9e611d858ab458aea8D36555B", _Network$OPTIMISM), _routerAddress);
3874
+ var routerAddress = (_routerAddress = {}, _routerAddress[Network.POLYGON] = (_Network$POLYGON = {}, _Network$POLYGON[Dapp.SUSHISWAP] = "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", _Network$POLYGON[Dapp.AAVE] = "0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf", _Network$POLYGON[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$POLYGON[Dapp.ONEINCH] = "0x1111111254fb6c44bac0bed2854e76f90643097d", _Network$POLYGON[Dapp.QUICKSWAP] = "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff", _Network$POLYGON[Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$POLYGON[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$POLYGON[Dapp.ARRAKIS] = "0xbc91a120cCD8F80b819EAF32F0996daC3Fa76a6C", _Network$POLYGON[Dapp.TOROS] = "0x42B1DDcFa1c43E06F483BA0Dd1b9cC923043677f", _Network$POLYGON), _routerAddress[Network.OPTIMISM] = (_Network$OPTIMISM = {}, _Network$OPTIMISM[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$OPTIMISM[Dapp.SYNTHETIX] = "0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4", _Network$OPTIMISM[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$OPTIMISM[Dapp.ONEINCH] = "0x1111111254760F7ab3F16433eea9304126DCd199", _Network$OPTIMISM[Dapp.TOROS] = "0xf8C62BD5f2fEf9E1a329c197F32E77AD6866B022", _Network$OPTIMISM), _routerAddress);
3875
3875
  var dappFactoryAddress = (_dappFactoryAddress = {}, _dappFactoryAddress[Network.POLYGON] = (_Network$POLYGON2 = {}, _Network$POLYGON2[Dapp.SUSHISWAP] = "0xc35DADB65012eC5796536bD9864eD8773aBc74C4", _Network$POLYGON2[Dapp.QUICKSWAP] = "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32", _Network$POLYGON2), _dappFactoryAddress[Network.OPTIMISM] = {}, _dappFactoryAddress);
3876
- var stakingAddress = (_stakingAddress = {}, _stakingAddress[Network.POLYGON] = (_Network$POLYGON3 = {}, _Network$POLYGON3[Dapp.SUSHISWAP] = "0x0769fd68dFb93167989C6f7254cd0D766Fb2841F", _Network$POLYGON3[Dapp.BALANCER] = "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e", _Network$POLYGON3[Dapp.AAVE] = "0x357D51124f59836DeD84c8a1730D72B749d8BC23", _Network$POLYGON3), _stakingAddress[Network.OPTIMISM] = {}, _stakingAddress);
3876
+ var stakingAddress = (_stakingAddress = {}, _stakingAddress[Network.POLYGON] = (_Network$POLYGON3 = {}, _Network$POLYGON3[Dapp.SUSHISWAP] = "0x0769fd68dFb93167989C6f7254cd0D766Fb2841F", _Network$POLYGON3[Dapp.BALANCER] = "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e", _Network$POLYGON3[Dapp.AAVE] = "0x357D51124f59836DeD84c8a1730D72B749d8BC23", _Network$POLYGON3[Dapp.AAVEV3] = "0x929EC64c34a17401F460460D4B9390518E5B473e", _Network$POLYGON3), _stakingAddress[Network.OPTIMISM] = (_Network$OPTIMISM2 = {}, _Network$OPTIMISM2[Dapp.AAVEV3] = "0x929EC64c34a17401F460460D4B9390518E5B473e", _Network$OPTIMISM2), _stakingAddress);
3877
+ var aaveAddressProvider = (_aaveAddressProvider = {}, _aaveAddressProvider[Network.POLYGON] = (_Network$POLYGON4 = {}, _Network$POLYGON4[Dapp.AAVE] = "0xd05e3E715d945B59290df0ae8eF85c1BdB684744", _Network$POLYGON4[Dapp.AAVEV3] = "0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb", _Network$POLYGON4), _aaveAddressProvider[Network.OPTIMISM] = (_Network$OPTIMISM3 = {}, _Network$OPTIMISM3[Dapp.AAVEV3] = "0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb", _Network$OPTIMISM3), _aaveAddressProvider);
3877
3878
  var nonfungiblePositionManagerAddress = (_nonfungiblePositionM = {}, _nonfungiblePositionM[Network.POLYGON] = "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", _nonfungiblePositionM[Network.OPTIMISM] = "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", _nonfungiblePositionM);
3878
3879
  var networkChainIdMap = (_networkChainIdMap = {}, _networkChainIdMap[Network.POLYGON] = 137, _networkChainIdMap[Network.OPTIMISM] = 10, _networkChainIdMap);
3879
3880
  var balancerSubgraph = (_balancerSubgraph = {}, _balancerSubgraph[Network.POLYGON] = "https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-polygon-v2", _balancerSubgraph[Network.OPTIMISM] = "", _balancerSubgraph);
@@ -10643,7 +10644,7 @@ function _getChainlinkPriceInUsd() {
10643
10644
  case 0:
10644
10645
  //Workaround as Chainlink doesn't have feed registry on Polygon/Optimism
10645
10646
  //Use oracle from Aave which uses Chainlink
10646
- lendingPoolAddressProvider = new ethers.Contract("0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb", IAaveV3PoolAddressProvider.abi, pool.signer);
10647
+ lendingPoolAddressProvider = new ethers.Contract(aaveAddressProvider[pool.network][Dapp.AAVEV3], IAaveV3PoolAddressProvider.abi, pool.signer);
10647
10648
  _context.next = 3;
10648
10649
  return lendingPoolAddressProvider.getPriceOracle();
10649
10650
 
@@ -10958,6 +10959,2756 @@ function _getOneInchProtocols() {
10958
10959
  return _getOneInchProtocols.apply(this, arguments);
10959
10960
  }
10960
10961
 
10962
+ var abi$j = [
10963
+ {
10964
+ inputs: [
10965
+ {
10966
+ internalType: "address",
10967
+ name: "emissionManager",
10968
+ type: "address"
10969
+ }
10970
+ ],
10971
+ stateMutability: "nonpayable",
10972
+ type: "constructor"
10973
+ },
10974
+ {
10975
+ anonymous: false,
10976
+ inputs: [
10977
+ {
10978
+ indexed: true,
10979
+ internalType: "address",
10980
+ name: "asset",
10981
+ type: "address"
10982
+ },
10983
+ {
10984
+ indexed: true,
10985
+ internalType: "address",
10986
+ name: "reward",
10987
+ type: "address"
10988
+ },
10989
+ {
10990
+ indexed: true,
10991
+ internalType: "address",
10992
+ name: "user",
10993
+ type: "address"
10994
+ },
10995
+ {
10996
+ indexed: false,
10997
+ internalType: "uint256",
10998
+ name: "assetIndex",
10999
+ type: "uint256"
11000
+ },
11001
+ {
11002
+ indexed: false,
11003
+ internalType: "uint256",
11004
+ name: "userIndex",
11005
+ type: "uint256"
11006
+ },
11007
+ {
11008
+ indexed: false,
11009
+ internalType: "uint256",
11010
+ name: "rewardsAccrued",
11011
+ type: "uint256"
11012
+ }
11013
+ ],
11014
+ name: "Accrued",
11015
+ type: "event"
11016
+ },
11017
+ {
11018
+ anonymous: false,
11019
+ inputs: [
11020
+ {
11021
+ indexed: true,
11022
+ internalType: "address",
11023
+ name: "asset",
11024
+ type: "address"
11025
+ },
11026
+ {
11027
+ indexed: true,
11028
+ internalType: "address",
11029
+ name: "reward",
11030
+ type: "address"
11031
+ },
11032
+ {
11033
+ indexed: false,
11034
+ internalType: "uint256",
11035
+ name: "oldEmission",
11036
+ type: "uint256"
11037
+ },
11038
+ {
11039
+ indexed: false,
11040
+ internalType: "uint256",
11041
+ name: "newEmission",
11042
+ type: "uint256"
11043
+ },
11044
+ {
11045
+ indexed: false,
11046
+ internalType: "uint256",
11047
+ name: "oldDistributionEnd",
11048
+ type: "uint256"
11049
+ },
11050
+ {
11051
+ indexed: false,
11052
+ internalType: "uint256",
11053
+ name: "newDistributionEnd",
11054
+ type: "uint256"
11055
+ },
11056
+ {
11057
+ indexed: false,
11058
+ internalType: "uint256",
11059
+ name: "assetIndex",
11060
+ type: "uint256"
11061
+ }
11062
+ ],
11063
+ name: "AssetConfigUpdated",
11064
+ type: "event"
11065
+ },
11066
+ {
11067
+ anonymous: false,
11068
+ inputs: [
11069
+ {
11070
+ indexed: true,
11071
+ internalType: "address",
11072
+ name: "user",
11073
+ type: "address"
11074
+ },
11075
+ {
11076
+ indexed: true,
11077
+ internalType: "address",
11078
+ name: "claimer",
11079
+ type: "address"
11080
+ }
11081
+ ],
11082
+ name: "ClaimerSet",
11083
+ type: "event"
11084
+ },
11085
+ {
11086
+ anonymous: false,
11087
+ inputs: [
11088
+ {
11089
+ indexed: true,
11090
+ internalType: "address",
11091
+ name: "oldEmissionManager",
11092
+ type: "address"
11093
+ },
11094
+ {
11095
+ indexed: true,
11096
+ internalType: "address",
11097
+ name: "newEmissionManager",
11098
+ type: "address"
11099
+ }
11100
+ ],
11101
+ name: "EmissionManagerUpdated",
11102
+ type: "event"
11103
+ },
11104
+ {
11105
+ anonymous: false,
11106
+ inputs: [
11107
+ {
11108
+ indexed: true,
11109
+ internalType: "address",
11110
+ name: "reward",
11111
+ type: "address"
11112
+ },
11113
+ {
11114
+ indexed: true,
11115
+ internalType: "address",
11116
+ name: "rewardOracle",
11117
+ type: "address"
11118
+ }
11119
+ ],
11120
+ name: "RewardOracleUpdated",
11121
+ type: "event"
11122
+ },
11123
+ {
11124
+ anonymous: false,
11125
+ inputs: [
11126
+ {
11127
+ indexed: true,
11128
+ internalType: "address",
11129
+ name: "user",
11130
+ type: "address"
11131
+ },
11132
+ {
11133
+ indexed: true,
11134
+ internalType: "address",
11135
+ name: "reward",
11136
+ type: "address"
11137
+ },
11138
+ {
11139
+ indexed: true,
11140
+ internalType: "address",
11141
+ name: "to",
11142
+ type: "address"
11143
+ },
11144
+ {
11145
+ indexed: false,
11146
+ internalType: "address",
11147
+ name: "claimer",
11148
+ type: "address"
11149
+ },
11150
+ {
11151
+ indexed: false,
11152
+ internalType: "uint256",
11153
+ name: "amount",
11154
+ type: "uint256"
11155
+ }
11156
+ ],
11157
+ name: "RewardsClaimed",
11158
+ type: "event"
11159
+ },
11160
+ {
11161
+ anonymous: false,
11162
+ inputs: [
11163
+ {
11164
+ indexed: true,
11165
+ internalType: "address",
11166
+ name: "reward",
11167
+ type: "address"
11168
+ },
11169
+ {
11170
+ indexed: true,
11171
+ internalType: "address",
11172
+ name: "transferStrategy",
11173
+ type: "address"
11174
+ }
11175
+ ],
11176
+ name: "TransferStrategyInstalled",
11177
+ type: "event"
11178
+ },
11179
+ {
11180
+ inputs: [
11181
+ ],
11182
+ name: "REVISION",
11183
+ outputs: [
11184
+ {
11185
+ internalType: "uint256",
11186
+ name: "",
11187
+ type: "uint256"
11188
+ }
11189
+ ],
11190
+ stateMutability: "view",
11191
+ type: "function"
11192
+ },
11193
+ {
11194
+ inputs: [
11195
+ {
11196
+ internalType: "address[]",
11197
+ name: "assets",
11198
+ type: "address[]"
11199
+ },
11200
+ {
11201
+ internalType: "address",
11202
+ name: "to",
11203
+ type: "address"
11204
+ }
11205
+ ],
11206
+ name: "claimAllRewards",
11207
+ outputs: [
11208
+ {
11209
+ internalType: "address[]",
11210
+ name: "rewardsList",
11211
+ type: "address[]"
11212
+ },
11213
+ {
11214
+ internalType: "uint256[]",
11215
+ name: "claimedAmounts",
11216
+ type: "uint256[]"
11217
+ }
11218
+ ],
11219
+ stateMutability: "nonpayable",
11220
+ type: "function"
11221
+ },
11222
+ {
11223
+ inputs: [
11224
+ {
11225
+ internalType: "address[]",
11226
+ name: "assets",
11227
+ type: "address[]"
11228
+ },
11229
+ {
11230
+ internalType: "address",
11231
+ name: "user",
11232
+ type: "address"
11233
+ },
11234
+ {
11235
+ internalType: "address",
11236
+ name: "to",
11237
+ type: "address"
11238
+ }
11239
+ ],
11240
+ name: "claimAllRewardsOnBehalf",
11241
+ outputs: [
11242
+ {
11243
+ internalType: "address[]",
11244
+ name: "rewardsList",
11245
+ type: "address[]"
11246
+ },
11247
+ {
11248
+ internalType: "uint256[]",
11249
+ name: "claimedAmounts",
11250
+ type: "uint256[]"
11251
+ }
11252
+ ],
11253
+ stateMutability: "nonpayable",
11254
+ type: "function"
11255
+ },
11256
+ {
11257
+ inputs: [
11258
+ {
11259
+ internalType: "address[]",
11260
+ name: "assets",
11261
+ type: "address[]"
11262
+ }
11263
+ ],
11264
+ name: "claimAllRewardsToSelf",
11265
+ outputs: [
11266
+ {
11267
+ internalType: "address[]",
11268
+ name: "rewardsList",
11269
+ type: "address[]"
11270
+ },
11271
+ {
11272
+ internalType: "uint256[]",
11273
+ name: "claimedAmounts",
11274
+ type: "uint256[]"
11275
+ }
11276
+ ],
11277
+ stateMutability: "nonpayable",
11278
+ type: "function"
11279
+ },
11280
+ {
11281
+ inputs: [
11282
+ {
11283
+ internalType: "address[]",
11284
+ name: "assets",
11285
+ type: "address[]"
11286
+ },
11287
+ {
11288
+ internalType: "uint256",
11289
+ name: "amount",
11290
+ type: "uint256"
11291
+ },
11292
+ {
11293
+ internalType: "address",
11294
+ name: "to",
11295
+ type: "address"
11296
+ },
11297
+ {
11298
+ internalType: "address",
11299
+ name: "reward",
11300
+ type: "address"
11301
+ }
11302
+ ],
11303
+ name: "claimRewards",
11304
+ outputs: [
11305
+ {
11306
+ internalType: "uint256",
11307
+ name: "",
11308
+ type: "uint256"
11309
+ }
11310
+ ],
11311
+ stateMutability: "nonpayable",
11312
+ type: "function"
11313
+ },
11314
+ {
11315
+ inputs: [
11316
+ {
11317
+ internalType: "address[]",
11318
+ name: "assets",
11319
+ type: "address[]"
11320
+ },
11321
+ {
11322
+ internalType: "uint256",
11323
+ name: "amount",
11324
+ type: "uint256"
11325
+ },
11326
+ {
11327
+ internalType: "address",
11328
+ name: "user",
11329
+ type: "address"
11330
+ },
11331
+ {
11332
+ internalType: "address",
11333
+ name: "to",
11334
+ type: "address"
11335
+ },
11336
+ {
11337
+ internalType: "address",
11338
+ name: "reward",
11339
+ type: "address"
11340
+ }
11341
+ ],
11342
+ name: "claimRewardsOnBehalf",
11343
+ outputs: [
11344
+ {
11345
+ internalType: "uint256",
11346
+ name: "",
11347
+ type: "uint256"
11348
+ }
11349
+ ],
11350
+ stateMutability: "nonpayable",
11351
+ type: "function"
11352
+ },
11353
+ {
11354
+ inputs: [
11355
+ {
11356
+ internalType: "address[]",
11357
+ name: "assets",
11358
+ type: "address[]"
11359
+ },
11360
+ {
11361
+ internalType: "uint256",
11362
+ name: "amount",
11363
+ type: "uint256"
11364
+ },
11365
+ {
11366
+ internalType: "address",
11367
+ name: "reward",
11368
+ type: "address"
11369
+ }
11370
+ ],
11371
+ name: "claimRewardsToSelf",
11372
+ outputs: [
11373
+ {
11374
+ internalType: "uint256",
11375
+ name: "",
11376
+ type: "uint256"
11377
+ }
11378
+ ],
11379
+ stateMutability: "nonpayable",
11380
+ type: "function"
11381
+ },
11382
+ {
11383
+ inputs: [
11384
+ {
11385
+ components: [
11386
+ {
11387
+ internalType: "uint88",
11388
+ name: "emissionPerSecond",
11389
+ type: "uint88"
11390
+ },
11391
+ {
11392
+ internalType: "uint256",
11393
+ name: "totalSupply",
11394
+ type: "uint256"
11395
+ },
11396
+ {
11397
+ internalType: "uint32",
11398
+ name: "distributionEnd",
11399
+ type: "uint32"
11400
+ },
11401
+ {
11402
+ internalType: "address",
11403
+ name: "asset",
11404
+ type: "address"
11405
+ },
11406
+ {
11407
+ internalType: "address",
11408
+ name: "reward",
11409
+ type: "address"
11410
+ },
11411
+ {
11412
+ internalType: "contract ITransferStrategyBase",
11413
+ name: "transferStrategy",
11414
+ type: "address"
11415
+ },
11416
+ {
11417
+ internalType: "contract IEACAggregatorProxy",
11418
+ name: "rewardOracle",
11419
+ type: "address"
11420
+ }
11421
+ ],
11422
+ internalType: "struct RewardsDataTypes.RewardsConfigInput[]",
11423
+ name: "config",
11424
+ type: "tuple[]"
11425
+ }
11426
+ ],
11427
+ name: "configureAssets",
11428
+ outputs: [
11429
+ ],
11430
+ stateMutability: "nonpayable",
11431
+ type: "function"
11432
+ },
11433
+ {
11434
+ inputs: [
11435
+ {
11436
+ internalType: "address[]",
11437
+ name: "assets",
11438
+ type: "address[]"
11439
+ },
11440
+ {
11441
+ internalType: "address",
11442
+ name: "user",
11443
+ type: "address"
11444
+ }
11445
+ ],
11446
+ name: "getAllUserRewards",
11447
+ outputs: [
11448
+ {
11449
+ internalType: "address[]",
11450
+ name: "rewardsList",
11451
+ type: "address[]"
11452
+ },
11453
+ {
11454
+ internalType: "uint256[]",
11455
+ name: "unclaimedAmounts",
11456
+ type: "uint256[]"
11457
+ }
11458
+ ],
11459
+ stateMutability: "view",
11460
+ type: "function"
11461
+ },
11462
+ {
11463
+ inputs: [
11464
+ {
11465
+ internalType: "address",
11466
+ name: "asset",
11467
+ type: "address"
11468
+ }
11469
+ ],
11470
+ name: "getAssetDecimals",
11471
+ outputs: [
11472
+ {
11473
+ internalType: "uint8",
11474
+ name: "",
11475
+ type: "uint8"
11476
+ }
11477
+ ],
11478
+ stateMutability: "view",
11479
+ type: "function"
11480
+ },
11481
+ {
11482
+ inputs: [
11483
+ {
11484
+ internalType: "address",
11485
+ name: "user",
11486
+ type: "address"
11487
+ }
11488
+ ],
11489
+ name: "getClaimer",
11490
+ outputs: [
11491
+ {
11492
+ internalType: "address",
11493
+ name: "",
11494
+ type: "address"
11495
+ }
11496
+ ],
11497
+ stateMutability: "view",
11498
+ type: "function"
11499
+ },
11500
+ {
11501
+ inputs: [
11502
+ {
11503
+ internalType: "address",
11504
+ name: "asset",
11505
+ type: "address"
11506
+ },
11507
+ {
11508
+ internalType: "address",
11509
+ name: "reward",
11510
+ type: "address"
11511
+ }
11512
+ ],
11513
+ name: "getDistributionEnd",
11514
+ outputs: [
11515
+ {
11516
+ internalType: "uint256",
11517
+ name: "",
11518
+ type: "uint256"
11519
+ }
11520
+ ],
11521
+ stateMutability: "view",
11522
+ type: "function"
11523
+ },
11524
+ {
11525
+ inputs: [
11526
+ ],
11527
+ name: "getEmissionManager",
11528
+ outputs: [
11529
+ {
11530
+ internalType: "address",
11531
+ name: "",
11532
+ type: "address"
11533
+ }
11534
+ ],
11535
+ stateMutability: "view",
11536
+ type: "function"
11537
+ },
11538
+ {
11539
+ inputs: [
11540
+ {
11541
+ internalType: "address",
11542
+ name: "reward",
11543
+ type: "address"
11544
+ }
11545
+ ],
11546
+ name: "getRewardOracle",
11547
+ outputs: [
11548
+ {
11549
+ internalType: "address",
11550
+ name: "",
11551
+ type: "address"
11552
+ }
11553
+ ],
11554
+ stateMutability: "view",
11555
+ type: "function"
11556
+ },
11557
+ {
11558
+ inputs: [
11559
+ {
11560
+ internalType: "address",
11561
+ name: "asset",
11562
+ type: "address"
11563
+ }
11564
+ ],
11565
+ name: "getRewardsByAsset",
11566
+ outputs: [
11567
+ {
11568
+ internalType: "address[]",
11569
+ name: "",
11570
+ type: "address[]"
11571
+ }
11572
+ ],
11573
+ stateMutability: "view",
11574
+ type: "function"
11575
+ },
11576
+ {
11577
+ inputs: [
11578
+ {
11579
+ internalType: "address",
11580
+ name: "asset",
11581
+ type: "address"
11582
+ },
11583
+ {
11584
+ internalType: "address",
11585
+ name: "reward",
11586
+ type: "address"
11587
+ }
11588
+ ],
11589
+ name: "getRewardsData",
11590
+ outputs: [
11591
+ {
11592
+ internalType: "uint256",
11593
+ name: "",
11594
+ type: "uint256"
11595
+ },
11596
+ {
11597
+ internalType: "uint256",
11598
+ name: "",
11599
+ type: "uint256"
11600
+ },
11601
+ {
11602
+ internalType: "uint256",
11603
+ name: "",
11604
+ type: "uint256"
11605
+ },
11606
+ {
11607
+ internalType: "uint256",
11608
+ name: "",
11609
+ type: "uint256"
11610
+ }
11611
+ ],
11612
+ stateMutability: "view",
11613
+ type: "function"
11614
+ },
11615
+ {
11616
+ inputs: [
11617
+ ],
11618
+ name: "getRewardsList",
11619
+ outputs: [
11620
+ {
11621
+ internalType: "address[]",
11622
+ name: "",
11623
+ type: "address[]"
11624
+ }
11625
+ ],
11626
+ stateMutability: "view",
11627
+ type: "function"
11628
+ },
11629
+ {
11630
+ inputs: [
11631
+ {
11632
+ internalType: "address",
11633
+ name: "reward",
11634
+ type: "address"
11635
+ }
11636
+ ],
11637
+ name: "getTransferStrategy",
11638
+ outputs: [
11639
+ {
11640
+ internalType: "address",
11641
+ name: "",
11642
+ type: "address"
11643
+ }
11644
+ ],
11645
+ stateMutability: "view",
11646
+ type: "function"
11647
+ },
11648
+ {
11649
+ inputs: [
11650
+ {
11651
+ internalType: "address",
11652
+ name: "user",
11653
+ type: "address"
11654
+ },
11655
+ {
11656
+ internalType: "address",
11657
+ name: "reward",
11658
+ type: "address"
11659
+ }
11660
+ ],
11661
+ name: "getUserAccruedRewards",
11662
+ outputs: [
11663
+ {
11664
+ internalType: "uint256",
11665
+ name: "",
11666
+ type: "uint256"
11667
+ }
11668
+ ],
11669
+ stateMutability: "view",
11670
+ type: "function"
11671
+ },
11672
+ {
11673
+ inputs: [
11674
+ {
11675
+ internalType: "address",
11676
+ name: "user",
11677
+ type: "address"
11678
+ },
11679
+ {
11680
+ internalType: "address",
11681
+ name: "asset",
11682
+ type: "address"
11683
+ },
11684
+ {
11685
+ internalType: "address",
11686
+ name: "reward",
11687
+ type: "address"
11688
+ }
11689
+ ],
11690
+ name: "getUserAssetIndex",
11691
+ outputs: [
11692
+ {
11693
+ internalType: "uint256",
11694
+ name: "",
11695
+ type: "uint256"
11696
+ }
11697
+ ],
11698
+ stateMutability: "view",
11699
+ type: "function"
11700
+ },
11701
+ {
11702
+ inputs: [
11703
+ {
11704
+ internalType: "address[]",
11705
+ name: "assets",
11706
+ type: "address[]"
11707
+ },
11708
+ {
11709
+ internalType: "address",
11710
+ name: "user",
11711
+ type: "address"
11712
+ },
11713
+ {
11714
+ internalType: "address",
11715
+ name: "reward",
11716
+ type: "address"
11717
+ }
11718
+ ],
11719
+ name: "getUserRewards",
11720
+ outputs: [
11721
+ {
11722
+ internalType: "uint256",
11723
+ name: "",
11724
+ type: "uint256"
11725
+ }
11726
+ ],
11727
+ stateMutability: "view",
11728
+ type: "function"
11729
+ },
11730
+ {
11731
+ inputs: [
11732
+ {
11733
+ internalType: "address",
11734
+ name: "user",
11735
+ type: "address"
11736
+ },
11737
+ {
11738
+ internalType: "uint256",
11739
+ name: "totalSupply",
11740
+ type: "uint256"
11741
+ },
11742
+ {
11743
+ internalType: "uint256",
11744
+ name: "userBalance",
11745
+ type: "uint256"
11746
+ }
11747
+ ],
11748
+ name: "handleAction",
11749
+ outputs: [
11750
+ ],
11751
+ stateMutability: "nonpayable",
11752
+ type: "function"
11753
+ },
11754
+ {
11755
+ inputs: [
11756
+ {
11757
+ internalType: "address",
11758
+ name: "emissionManager",
11759
+ type: "address"
11760
+ }
11761
+ ],
11762
+ name: "initialize",
11763
+ outputs: [
11764
+ ],
11765
+ stateMutability: "nonpayable",
11766
+ type: "function"
11767
+ },
11768
+ {
11769
+ inputs: [
11770
+ {
11771
+ internalType: "address",
11772
+ name: "user",
11773
+ type: "address"
11774
+ },
11775
+ {
11776
+ internalType: "address",
11777
+ name: "caller",
11778
+ type: "address"
11779
+ }
11780
+ ],
11781
+ name: "setClaimer",
11782
+ outputs: [
11783
+ ],
11784
+ stateMutability: "nonpayable",
11785
+ type: "function"
11786
+ },
11787
+ {
11788
+ inputs: [
11789
+ {
11790
+ internalType: "address",
11791
+ name: "asset",
11792
+ type: "address"
11793
+ },
11794
+ {
11795
+ internalType: "address",
11796
+ name: "reward",
11797
+ type: "address"
11798
+ },
11799
+ {
11800
+ internalType: "uint32",
11801
+ name: "newDistributionEnd",
11802
+ type: "uint32"
11803
+ }
11804
+ ],
11805
+ name: "setDistributionEnd",
11806
+ outputs: [
11807
+ ],
11808
+ stateMutability: "nonpayable",
11809
+ type: "function"
11810
+ },
11811
+ {
11812
+ inputs: [
11813
+ {
11814
+ internalType: "address",
11815
+ name: "emissionManager",
11816
+ type: "address"
11817
+ }
11818
+ ],
11819
+ name: "setEmissionManager",
11820
+ outputs: [
11821
+ ],
11822
+ stateMutability: "nonpayable",
11823
+ type: "function"
11824
+ },
11825
+ {
11826
+ inputs: [
11827
+ {
11828
+ internalType: "address",
11829
+ name: "asset",
11830
+ type: "address"
11831
+ },
11832
+ {
11833
+ internalType: "address[]",
11834
+ name: "rewards",
11835
+ type: "address[]"
11836
+ },
11837
+ {
11838
+ internalType: "uint88[]",
11839
+ name: "newEmissionsPerSecond",
11840
+ type: "uint88[]"
11841
+ }
11842
+ ],
11843
+ name: "setEmissionPerSecond",
11844
+ outputs: [
11845
+ ],
11846
+ stateMutability: "nonpayable",
11847
+ type: "function"
11848
+ },
11849
+ {
11850
+ inputs: [
11851
+ {
11852
+ internalType: "address",
11853
+ name: "reward",
11854
+ type: "address"
11855
+ },
11856
+ {
11857
+ internalType: "contract IEACAggregatorProxy",
11858
+ name: "rewardOracle",
11859
+ type: "address"
11860
+ }
11861
+ ],
11862
+ name: "setRewardOracle",
11863
+ outputs: [
11864
+ ],
11865
+ stateMutability: "nonpayable",
11866
+ type: "function"
11867
+ },
11868
+ {
11869
+ inputs: [
11870
+ {
11871
+ internalType: "address",
11872
+ name: "reward",
11873
+ type: "address"
11874
+ },
11875
+ {
11876
+ internalType: "contract ITransferStrategyBase",
11877
+ name: "transferStrategy",
11878
+ type: "address"
11879
+ }
11880
+ ],
11881
+ name: "setTransferStrategy",
11882
+ outputs: [
11883
+ ],
11884
+ stateMutability: "nonpayable",
11885
+ type: "function"
11886
+ }
11887
+ ];
11888
+ var IAaveV3Incentives = {
11889
+ abi: abi$j
11890
+ };
11891
+
11892
+ var abi$k = [
11893
+ {
11894
+ inputs: [
11895
+ {
11896
+ internalType: "contract IPoolAddressesProvider",
11897
+ name: "provider",
11898
+ type: "address"
11899
+ }
11900
+ ],
11901
+ stateMutability: "nonpayable",
11902
+ type: "constructor"
11903
+ },
11904
+ {
11905
+ anonymous: false,
11906
+ inputs: [
11907
+ {
11908
+ indexed: true,
11909
+ internalType: "address",
11910
+ name: "reserve",
11911
+ type: "address"
11912
+ },
11913
+ {
11914
+ indexed: true,
11915
+ internalType: "address",
11916
+ name: "backer",
11917
+ type: "address"
11918
+ },
11919
+ {
11920
+ indexed: false,
11921
+ internalType: "uint256",
11922
+ name: "amount",
11923
+ type: "uint256"
11924
+ },
11925
+ {
11926
+ indexed: false,
11927
+ internalType: "uint256",
11928
+ name: "fee",
11929
+ type: "uint256"
11930
+ }
11931
+ ],
11932
+ name: "BackUnbacked",
11933
+ type: "event"
11934
+ },
11935
+ {
11936
+ anonymous: false,
11937
+ inputs: [
11938
+ {
11939
+ indexed: true,
11940
+ internalType: "address",
11941
+ name: "reserve",
11942
+ type: "address"
11943
+ },
11944
+ {
11945
+ indexed: false,
11946
+ internalType: "address",
11947
+ name: "user",
11948
+ type: "address"
11949
+ },
11950
+ {
11951
+ indexed: true,
11952
+ internalType: "address",
11953
+ name: "onBehalfOf",
11954
+ type: "address"
11955
+ },
11956
+ {
11957
+ indexed: false,
11958
+ internalType: "uint256",
11959
+ name: "amount",
11960
+ type: "uint256"
11961
+ },
11962
+ {
11963
+ indexed: false,
11964
+ internalType: "enum DataTypes.InterestRateMode",
11965
+ name: "interestRateMode",
11966
+ type: "uint8"
11967
+ },
11968
+ {
11969
+ indexed: false,
11970
+ internalType: "uint256",
11971
+ name: "borrowRate",
11972
+ type: "uint256"
11973
+ },
11974
+ {
11975
+ indexed: true,
11976
+ internalType: "uint16",
11977
+ name: "referralCode",
11978
+ type: "uint16"
11979
+ }
11980
+ ],
11981
+ name: "Borrow",
11982
+ type: "event"
11983
+ },
11984
+ {
11985
+ anonymous: false,
11986
+ inputs: [
11987
+ {
11988
+ indexed: true,
11989
+ internalType: "address",
11990
+ name: "target",
11991
+ type: "address"
11992
+ },
11993
+ {
11994
+ indexed: false,
11995
+ internalType: "address",
11996
+ name: "initiator",
11997
+ type: "address"
11998
+ },
11999
+ {
12000
+ indexed: true,
12001
+ internalType: "address",
12002
+ name: "asset",
12003
+ type: "address"
12004
+ },
12005
+ {
12006
+ indexed: false,
12007
+ internalType: "uint256",
12008
+ name: "amount",
12009
+ type: "uint256"
12010
+ },
12011
+ {
12012
+ indexed: false,
12013
+ internalType: "enum DataTypes.InterestRateMode",
12014
+ name: "interestRateMode",
12015
+ type: "uint8"
12016
+ },
12017
+ {
12018
+ indexed: false,
12019
+ internalType: "uint256",
12020
+ name: "premium",
12021
+ type: "uint256"
12022
+ },
12023
+ {
12024
+ indexed: true,
12025
+ internalType: "uint16",
12026
+ name: "referralCode",
12027
+ type: "uint16"
12028
+ }
12029
+ ],
12030
+ name: "FlashLoan",
12031
+ type: "event"
12032
+ },
12033
+ {
12034
+ anonymous: false,
12035
+ inputs: [
12036
+ {
12037
+ indexed: true,
12038
+ internalType: "address",
12039
+ name: "asset",
12040
+ type: "address"
12041
+ },
12042
+ {
12043
+ indexed: false,
12044
+ internalType: "uint256",
12045
+ name: "totalDebt",
12046
+ type: "uint256"
12047
+ }
12048
+ ],
12049
+ name: "IsolationModeTotalDebtUpdated",
12050
+ type: "event"
12051
+ },
12052
+ {
12053
+ anonymous: false,
12054
+ inputs: [
12055
+ {
12056
+ indexed: true,
12057
+ internalType: "address",
12058
+ name: "collateralAsset",
12059
+ type: "address"
12060
+ },
12061
+ {
12062
+ indexed: true,
12063
+ internalType: "address",
12064
+ name: "debtAsset",
12065
+ type: "address"
12066
+ },
12067
+ {
12068
+ indexed: true,
12069
+ internalType: "address",
12070
+ name: "user",
12071
+ type: "address"
12072
+ },
12073
+ {
12074
+ indexed: false,
12075
+ internalType: "uint256",
12076
+ name: "debtToCover",
12077
+ type: "uint256"
12078
+ },
12079
+ {
12080
+ indexed: false,
12081
+ internalType: "uint256",
12082
+ name: "liquidatedCollateralAmount",
12083
+ type: "uint256"
12084
+ },
12085
+ {
12086
+ indexed: false,
12087
+ internalType: "address",
12088
+ name: "liquidator",
12089
+ type: "address"
12090
+ },
12091
+ {
12092
+ indexed: false,
12093
+ internalType: "bool",
12094
+ name: "receiveAToken",
12095
+ type: "bool"
12096
+ }
12097
+ ],
12098
+ name: "LiquidationCall",
12099
+ type: "event"
12100
+ },
12101
+ {
12102
+ anonymous: false,
12103
+ inputs: [
12104
+ {
12105
+ indexed: true,
12106
+ internalType: "address",
12107
+ name: "reserve",
12108
+ type: "address"
12109
+ },
12110
+ {
12111
+ indexed: false,
12112
+ internalType: "address",
12113
+ name: "user",
12114
+ type: "address"
12115
+ },
12116
+ {
12117
+ indexed: true,
12118
+ internalType: "address",
12119
+ name: "onBehalfOf",
12120
+ type: "address"
12121
+ },
12122
+ {
12123
+ indexed: false,
12124
+ internalType: "uint256",
12125
+ name: "amount",
12126
+ type: "uint256"
12127
+ },
12128
+ {
12129
+ indexed: true,
12130
+ internalType: "uint16",
12131
+ name: "referralCode",
12132
+ type: "uint16"
12133
+ }
12134
+ ],
12135
+ name: "MintUnbacked",
12136
+ type: "event"
12137
+ },
12138
+ {
12139
+ anonymous: false,
12140
+ inputs: [
12141
+ {
12142
+ indexed: true,
12143
+ internalType: "address",
12144
+ name: "reserve",
12145
+ type: "address"
12146
+ },
12147
+ {
12148
+ indexed: false,
12149
+ internalType: "uint256",
12150
+ name: "amountMinted",
12151
+ type: "uint256"
12152
+ }
12153
+ ],
12154
+ name: "MintedToTreasury",
12155
+ type: "event"
12156
+ },
12157
+ {
12158
+ anonymous: false,
12159
+ inputs: [
12160
+ {
12161
+ indexed: true,
12162
+ internalType: "address",
12163
+ name: "reserve",
12164
+ type: "address"
12165
+ },
12166
+ {
12167
+ indexed: true,
12168
+ internalType: "address",
12169
+ name: "user",
12170
+ type: "address"
12171
+ }
12172
+ ],
12173
+ name: "RebalanceStableBorrowRate",
12174
+ type: "event"
12175
+ },
12176
+ {
12177
+ anonymous: false,
12178
+ inputs: [
12179
+ {
12180
+ indexed: true,
12181
+ internalType: "address",
12182
+ name: "reserve",
12183
+ type: "address"
12184
+ },
12185
+ {
12186
+ indexed: true,
12187
+ internalType: "address",
12188
+ name: "user",
12189
+ type: "address"
12190
+ },
12191
+ {
12192
+ indexed: true,
12193
+ internalType: "address",
12194
+ name: "repayer",
12195
+ type: "address"
12196
+ },
12197
+ {
12198
+ indexed: false,
12199
+ internalType: "uint256",
12200
+ name: "amount",
12201
+ type: "uint256"
12202
+ },
12203
+ {
12204
+ indexed: false,
12205
+ internalType: "bool",
12206
+ name: "useATokens",
12207
+ type: "bool"
12208
+ }
12209
+ ],
12210
+ name: "Repay",
12211
+ type: "event"
12212
+ },
12213
+ {
12214
+ anonymous: false,
12215
+ inputs: [
12216
+ {
12217
+ indexed: true,
12218
+ internalType: "address",
12219
+ name: "reserve",
12220
+ type: "address"
12221
+ },
12222
+ {
12223
+ indexed: false,
12224
+ internalType: "uint256",
12225
+ name: "liquidityRate",
12226
+ type: "uint256"
12227
+ },
12228
+ {
12229
+ indexed: false,
12230
+ internalType: "uint256",
12231
+ name: "stableBorrowRate",
12232
+ type: "uint256"
12233
+ },
12234
+ {
12235
+ indexed: false,
12236
+ internalType: "uint256",
12237
+ name: "variableBorrowRate",
12238
+ type: "uint256"
12239
+ },
12240
+ {
12241
+ indexed: false,
12242
+ internalType: "uint256",
12243
+ name: "liquidityIndex",
12244
+ type: "uint256"
12245
+ },
12246
+ {
12247
+ indexed: false,
12248
+ internalType: "uint256",
12249
+ name: "variableBorrowIndex",
12250
+ type: "uint256"
12251
+ }
12252
+ ],
12253
+ name: "ReserveDataUpdated",
12254
+ type: "event"
12255
+ },
12256
+ {
12257
+ anonymous: false,
12258
+ inputs: [
12259
+ {
12260
+ indexed: true,
12261
+ internalType: "address",
12262
+ name: "reserve",
12263
+ type: "address"
12264
+ },
12265
+ {
12266
+ indexed: true,
12267
+ internalType: "address",
12268
+ name: "user",
12269
+ type: "address"
12270
+ }
12271
+ ],
12272
+ name: "ReserveUsedAsCollateralDisabled",
12273
+ type: "event"
12274
+ },
12275
+ {
12276
+ anonymous: false,
12277
+ inputs: [
12278
+ {
12279
+ indexed: true,
12280
+ internalType: "address",
12281
+ name: "reserve",
12282
+ type: "address"
12283
+ },
12284
+ {
12285
+ indexed: true,
12286
+ internalType: "address",
12287
+ name: "user",
12288
+ type: "address"
12289
+ }
12290
+ ],
12291
+ name: "ReserveUsedAsCollateralEnabled",
12292
+ type: "event"
12293
+ },
12294
+ {
12295
+ anonymous: false,
12296
+ inputs: [
12297
+ {
12298
+ indexed: true,
12299
+ internalType: "address",
12300
+ name: "reserve",
12301
+ type: "address"
12302
+ },
12303
+ {
12304
+ indexed: false,
12305
+ internalType: "address",
12306
+ name: "user",
12307
+ type: "address"
12308
+ },
12309
+ {
12310
+ indexed: true,
12311
+ internalType: "address",
12312
+ name: "onBehalfOf",
12313
+ type: "address"
12314
+ },
12315
+ {
12316
+ indexed: false,
12317
+ internalType: "uint256",
12318
+ name: "amount",
12319
+ type: "uint256"
12320
+ },
12321
+ {
12322
+ indexed: true,
12323
+ internalType: "uint16",
12324
+ name: "referralCode",
12325
+ type: "uint16"
12326
+ }
12327
+ ],
12328
+ name: "Supply",
12329
+ type: "event"
12330
+ },
12331
+ {
12332
+ anonymous: false,
12333
+ inputs: [
12334
+ {
12335
+ indexed: true,
12336
+ internalType: "address",
12337
+ name: "reserve",
12338
+ type: "address"
12339
+ },
12340
+ {
12341
+ indexed: true,
12342
+ internalType: "address",
12343
+ name: "user",
12344
+ type: "address"
12345
+ },
12346
+ {
12347
+ indexed: false,
12348
+ internalType: "enum DataTypes.InterestRateMode",
12349
+ name: "interestRateMode",
12350
+ type: "uint8"
12351
+ }
12352
+ ],
12353
+ name: "SwapBorrowRateMode",
12354
+ type: "event"
12355
+ },
12356
+ {
12357
+ anonymous: false,
12358
+ inputs: [
12359
+ {
12360
+ indexed: true,
12361
+ internalType: "address",
12362
+ name: "user",
12363
+ type: "address"
12364
+ },
12365
+ {
12366
+ indexed: false,
12367
+ internalType: "uint8",
12368
+ name: "categoryId",
12369
+ type: "uint8"
12370
+ }
12371
+ ],
12372
+ name: "UserEModeSet",
12373
+ type: "event"
12374
+ },
12375
+ {
12376
+ anonymous: false,
12377
+ inputs: [
12378
+ {
12379
+ indexed: true,
12380
+ internalType: "address",
12381
+ name: "reserve",
12382
+ type: "address"
12383
+ },
12384
+ {
12385
+ indexed: true,
12386
+ internalType: "address",
12387
+ name: "user",
12388
+ type: "address"
12389
+ },
12390
+ {
12391
+ indexed: true,
12392
+ internalType: "address",
12393
+ name: "to",
12394
+ type: "address"
12395
+ },
12396
+ {
12397
+ indexed: false,
12398
+ internalType: "uint256",
12399
+ name: "amount",
12400
+ type: "uint256"
12401
+ }
12402
+ ],
12403
+ name: "Withdraw",
12404
+ type: "event"
12405
+ },
12406
+ {
12407
+ inputs: [
12408
+ ],
12409
+ name: "ADDRESSES_PROVIDER",
12410
+ outputs: [
12411
+ {
12412
+ internalType: "contract IPoolAddressesProvider",
12413
+ name: "",
12414
+ type: "address"
12415
+ }
12416
+ ],
12417
+ stateMutability: "view",
12418
+ type: "function"
12419
+ },
12420
+ {
12421
+ inputs: [
12422
+ ],
12423
+ name: "BRIDGE_PROTOCOL_FEE",
12424
+ outputs: [
12425
+ {
12426
+ internalType: "uint256",
12427
+ name: "",
12428
+ type: "uint256"
12429
+ }
12430
+ ],
12431
+ stateMutability: "view",
12432
+ type: "function"
12433
+ },
12434
+ {
12435
+ inputs: [
12436
+ ],
12437
+ name: "FLASHLOAN_PREMIUM_TOTAL",
12438
+ outputs: [
12439
+ {
12440
+ internalType: "uint128",
12441
+ name: "",
12442
+ type: "uint128"
12443
+ }
12444
+ ],
12445
+ stateMutability: "view",
12446
+ type: "function"
12447
+ },
12448
+ {
12449
+ inputs: [
12450
+ ],
12451
+ name: "FLASHLOAN_PREMIUM_TO_PROTOCOL",
12452
+ outputs: [
12453
+ {
12454
+ internalType: "uint128",
12455
+ name: "",
12456
+ type: "uint128"
12457
+ }
12458
+ ],
12459
+ stateMutability: "view",
12460
+ type: "function"
12461
+ },
12462
+ {
12463
+ inputs: [
12464
+ ],
12465
+ name: "MAX_NUMBER_RESERVES",
12466
+ outputs: [
12467
+ {
12468
+ internalType: "uint16",
12469
+ name: "",
12470
+ type: "uint16"
12471
+ }
12472
+ ],
12473
+ stateMutability: "view",
12474
+ type: "function"
12475
+ },
12476
+ {
12477
+ inputs: [
12478
+ ],
12479
+ name: "MAX_STABLE_RATE_BORROW_SIZE_PERCENT",
12480
+ outputs: [
12481
+ {
12482
+ internalType: "uint256",
12483
+ name: "",
12484
+ type: "uint256"
12485
+ }
12486
+ ],
12487
+ stateMutability: "view",
12488
+ type: "function"
12489
+ },
12490
+ {
12491
+ inputs: [
12492
+ ],
12493
+ name: "POOL_REVISION",
12494
+ outputs: [
12495
+ {
12496
+ internalType: "uint256",
12497
+ name: "",
12498
+ type: "uint256"
12499
+ }
12500
+ ],
12501
+ stateMutability: "view",
12502
+ type: "function"
12503
+ },
12504
+ {
12505
+ inputs: [
12506
+ {
12507
+ internalType: "address",
12508
+ name: "asset",
12509
+ type: "address"
12510
+ },
12511
+ {
12512
+ internalType: "uint256",
12513
+ name: "amount",
12514
+ type: "uint256"
12515
+ },
12516
+ {
12517
+ internalType: "uint256",
12518
+ name: "fee",
12519
+ type: "uint256"
12520
+ }
12521
+ ],
12522
+ name: "backUnbacked",
12523
+ outputs: [
12524
+ ],
12525
+ stateMutability: "nonpayable",
12526
+ type: "function"
12527
+ },
12528
+ {
12529
+ inputs: [
12530
+ {
12531
+ internalType: "address",
12532
+ name: "asset",
12533
+ type: "address"
12534
+ },
12535
+ {
12536
+ internalType: "uint256",
12537
+ name: "amount",
12538
+ type: "uint256"
12539
+ },
12540
+ {
12541
+ internalType: "uint256",
12542
+ name: "interestRateMode",
12543
+ type: "uint256"
12544
+ },
12545
+ {
12546
+ internalType: "uint16",
12547
+ name: "referralCode",
12548
+ type: "uint16"
12549
+ },
12550
+ {
12551
+ internalType: "address",
12552
+ name: "onBehalfOf",
12553
+ type: "address"
12554
+ }
12555
+ ],
12556
+ name: "borrow",
12557
+ outputs: [
12558
+ ],
12559
+ stateMutability: "nonpayable",
12560
+ type: "function"
12561
+ },
12562
+ {
12563
+ inputs: [
12564
+ {
12565
+ internalType: "uint8",
12566
+ name: "id",
12567
+ type: "uint8"
12568
+ },
12569
+ {
12570
+ components: [
12571
+ {
12572
+ internalType: "uint16",
12573
+ name: "ltv",
12574
+ type: "uint16"
12575
+ },
12576
+ {
12577
+ internalType: "uint16",
12578
+ name: "liquidationThreshold",
12579
+ type: "uint16"
12580
+ },
12581
+ {
12582
+ internalType: "uint16",
12583
+ name: "liquidationBonus",
12584
+ type: "uint16"
12585
+ },
12586
+ {
12587
+ internalType: "address",
12588
+ name: "priceSource",
12589
+ type: "address"
12590
+ },
12591
+ {
12592
+ internalType: "string",
12593
+ name: "label",
12594
+ type: "string"
12595
+ }
12596
+ ],
12597
+ internalType: "struct DataTypes.EModeCategory",
12598
+ name: "category",
12599
+ type: "tuple"
12600
+ }
12601
+ ],
12602
+ name: "configureEModeCategory",
12603
+ outputs: [
12604
+ ],
12605
+ stateMutability: "nonpayable",
12606
+ type: "function"
12607
+ },
12608
+ {
12609
+ inputs: [
12610
+ {
12611
+ internalType: "address",
12612
+ name: "asset",
12613
+ type: "address"
12614
+ },
12615
+ {
12616
+ internalType: "uint256",
12617
+ name: "amount",
12618
+ type: "uint256"
12619
+ },
12620
+ {
12621
+ internalType: "address",
12622
+ name: "onBehalfOf",
12623
+ type: "address"
12624
+ },
12625
+ {
12626
+ internalType: "uint16",
12627
+ name: "referralCode",
12628
+ type: "uint16"
12629
+ }
12630
+ ],
12631
+ name: "deposit",
12632
+ outputs: [
12633
+ ],
12634
+ stateMutability: "nonpayable",
12635
+ type: "function"
12636
+ },
12637
+ {
12638
+ inputs: [
12639
+ {
12640
+ internalType: "address",
12641
+ name: "asset",
12642
+ type: "address"
12643
+ }
12644
+ ],
12645
+ name: "dropReserve",
12646
+ outputs: [
12647
+ ],
12648
+ stateMutability: "nonpayable",
12649
+ type: "function"
12650
+ },
12651
+ {
12652
+ inputs: [
12653
+ {
12654
+ internalType: "address",
12655
+ name: "asset",
12656
+ type: "address"
12657
+ },
12658
+ {
12659
+ internalType: "address",
12660
+ name: "from",
12661
+ type: "address"
12662
+ },
12663
+ {
12664
+ internalType: "address",
12665
+ name: "to",
12666
+ type: "address"
12667
+ },
12668
+ {
12669
+ internalType: "uint256",
12670
+ name: "amount",
12671
+ type: "uint256"
12672
+ },
12673
+ {
12674
+ internalType: "uint256",
12675
+ name: "balanceFromBefore",
12676
+ type: "uint256"
12677
+ },
12678
+ {
12679
+ internalType: "uint256",
12680
+ name: "balanceToBefore",
12681
+ type: "uint256"
12682
+ }
12683
+ ],
12684
+ name: "finalizeTransfer",
12685
+ outputs: [
12686
+ ],
12687
+ stateMutability: "nonpayable",
12688
+ type: "function"
12689
+ },
12690
+ {
12691
+ inputs: [
12692
+ {
12693
+ internalType: "address",
12694
+ name: "receiverAddress",
12695
+ type: "address"
12696
+ },
12697
+ {
12698
+ internalType: "address[]",
12699
+ name: "assets",
12700
+ type: "address[]"
12701
+ },
12702
+ {
12703
+ internalType: "uint256[]",
12704
+ name: "amounts",
12705
+ type: "uint256[]"
12706
+ },
12707
+ {
12708
+ internalType: "uint256[]",
12709
+ name: "interestRateModes",
12710
+ type: "uint256[]"
12711
+ },
12712
+ {
12713
+ internalType: "address",
12714
+ name: "onBehalfOf",
12715
+ type: "address"
12716
+ },
12717
+ {
12718
+ internalType: "bytes",
12719
+ name: "params",
12720
+ type: "bytes"
12721
+ },
12722
+ {
12723
+ internalType: "uint16",
12724
+ name: "referralCode",
12725
+ type: "uint16"
12726
+ }
12727
+ ],
12728
+ name: "flashLoan",
12729
+ outputs: [
12730
+ ],
12731
+ stateMutability: "nonpayable",
12732
+ type: "function"
12733
+ },
12734
+ {
12735
+ inputs: [
12736
+ {
12737
+ internalType: "address",
12738
+ name: "receiverAddress",
12739
+ type: "address"
12740
+ },
12741
+ {
12742
+ internalType: "address",
12743
+ name: "asset",
12744
+ type: "address"
12745
+ },
12746
+ {
12747
+ internalType: "uint256",
12748
+ name: "amount",
12749
+ type: "uint256"
12750
+ },
12751
+ {
12752
+ internalType: "bytes",
12753
+ name: "params",
12754
+ type: "bytes"
12755
+ },
12756
+ {
12757
+ internalType: "uint16",
12758
+ name: "referralCode",
12759
+ type: "uint16"
12760
+ }
12761
+ ],
12762
+ name: "flashLoanSimple",
12763
+ outputs: [
12764
+ ],
12765
+ stateMutability: "nonpayable",
12766
+ type: "function"
12767
+ },
12768
+ {
12769
+ inputs: [
12770
+ {
12771
+ internalType: "address",
12772
+ name: "asset",
12773
+ type: "address"
12774
+ }
12775
+ ],
12776
+ name: "getConfiguration",
12777
+ outputs: [
12778
+ {
12779
+ components: [
12780
+ {
12781
+ internalType: "uint256",
12782
+ name: "data",
12783
+ type: "uint256"
12784
+ }
12785
+ ],
12786
+ internalType: "struct DataTypes.ReserveConfigurationMap",
12787
+ name: "",
12788
+ type: "tuple"
12789
+ }
12790
+ ],
12791
+ stateMutability: "view",
12792
+ type: "function"
12793
+ },
12794
+ {
12795
+ inputs: [
12796
+ {
12797
+ internalType: "uint8",
12798
+ name: "id",
12799
+ type: "uint8"
12800
+ }
12801
+ ],
12802
+ name: "getEModeCategoryData",
12803
+ outputs: [
12804
+ {
12805
+ components: [
12806
+ {
12807
+ internalType: "uint16",
12808
+ name: "ltv",
12809
+ type: "uint16"
12810
+ },
12811
+ {
12812
+ internalType: "uint16",
12813
+ name: "liquidationThreshold",
12814
+ type: "uint16"
12815
+ },
12816
+ {
12817
+ internalType: "uint16",
12818
+ name: "liquidationBonus",
12819
+ type: "uint16"
12820
+ },
12821
+ {
12822
+ internalType: "address",
12823
+ name: "priceSource",
12824
+ type: "address"
12825
+ },
12826
+ {
12827
+ internalType: "string",
12828
+ name: "label",
12829
+ type: "string"
12830
+ }
12831
+ ],
12832
+ internalType: "struct DataTypes.EModeCategory",
12833
+ name: "",
12834
+ type: "tuple"
12835
+ }
12836
+ ],
12837
+ stateMutability: "view",
12838
+ type: "function"
12839
+ },
12840
+ {
12841
+ inputs: [
12842
+ {
12843
+ internalType: "uint16",
12844
+ name: "id",
12845
+ type: "uint16"
12846
+ }
12847
+ ],
12848
+ name: "getReserveAddressById",
12849
+ outputs: [
12850
+ {
12851
+ internalType: "address",
12852
+ name: "",
12853
+ type: "address"
12854
+ }
12855
+ ],
12856
+ stateMutability: "view",
12857
+ type: "function"
12858
+ },
12859
+ {
12860
+ inputs: [
12861
+ {
12862
+ internalType: "address",
12863
+ name: "asset",
12864
+ type: "address"
12865
+ }
12866
+ ],
12867
+ name: "getReserveData",
12868
+ outputs: [
12869
+ {
12870
+ components: [
12871
+ {
12872
+ components: [
12873
+ {
12874
+ internalType: "uint256",
12875
+ name: "data",
12876
+ type: "uint256"
12877
+ }
12878
+ ],
12879
+ internalType: "struct DataTypes.ReserveConfigurationMap",
12880
+ name: "configuration",
12881
+ type: "tuple"
12882
+ },
12883
+ {
12884
+ internalType: "uint128",
12885
+ name: "liquidityIndex",
12886
+ type: "uint128"
12887
+ },
12888
+ {
12889
+ internalType: "uint128",
12890
+ name: "currentLiquidityRate",
12891
+ type: "uint128"
12892
+ },
12893
+ {
12894
+ internalType: "uint128",
12895
+ name: "variableBorrowIndex",
12896
+ type: "uint128"
12897
+ },
12898
+ {
12899
+ internalType: "uint128",
12900
+ name: "currentVariableBorrowRate",
12901
+ type: "uint128"
12902
+ },
12903
+ {
12904
+ internalType: "uint128",
12905
+ name: "currentStableBorrowRate",
12906
+ type: "uint128"
12907
+ },
12908
+ {
12909
+ internalType: "uint40",
12910
+ name: "lastUpdateTimestamp",
12911
+ type: "uint40"
12912
+ },
12913
+ {
12914
+ internalType: "uint16",
12915
+ name: "id",
12916
+ type: "uint16"
12917
+ },
12918
+ {
12919
+ internalType: "address",
12920
+ name: "aTokenAddress",
12921
+ type: "address"
12922
+ },
12923
+ {
12924
+ internalType: "address",
12925
+ name: "stableDebtTokenAddress",
12926
+ type: "address"
12927
+ },
12928
+ {
12929
+ internalType: "address",
12930
+ name: "variableDebtTokenAddress",
12931
+ type: "address"
12932
+ },
12933
+ {
12934
+ internalType: "address",
12935
+ name: "interestRateStrategyAddress",
12936
+ type: "address"
12937
+ },
12938
+ {
12939
+ internalType: "uint128",
12940
+ name: "accruedToTreasury",
12941
+ type: "uint128"
12942
+ },
12943
+ {
12944
+ internalType: "uint128",
12945
+ name: "unbacked",
12946
+ type: "uint128"
12947
+ },
12948
+ {
12949
+ internalType: "uint128",
12950
+ name: "isolationModeTotalDebt",
12951
+ type: "uint128"
12952
+ }
12953
+ ],
12954
+ internalType: "struct DataTypes.ReserveData",
12955
+ name: "",
12956
+ type: "tuple"
12957
+ }
12958
+ ],
12959
+ stateMutability: "view",
12960
+ type: "function"
12961
+ },
12962
+ {
12963
+ inputs: [
12964
+ {
12965
+ internalType: "address",
12966
+ name: "asset",
12967
+ type: "address"
12968
+ }
12969
+ ],
12970
+ name: "getReserveNormalizedIncome",
12971
+ outputs: [
12972
+ {
12973
+ internalType: "uint256",
12974
+ name: "",
12975
+ type: "uint256"
12976
+ }
12977
+ ],
12978
+ stateMutability: "view",
12979
+ type: "function"
12980
+ },
12981
+ {
12982
+ inputs: [
12983
+ {
12984
+ internalType: "address",
12985
+ name: "asset",
12986
+ type: "address"
12987
+ }
12988
+ ],
12989
+ name: "getReserveNormalizedVariableDebt",
12990
+ outputs: [
12991
+ {
12992
+ internalType: "uint256",
12993
+ name: "",
12994
+ type: "uint256"
12995
+ }
12996
+ ],
12997
+ stateMutability: "view",
12998
+ type: "function"
12999
+ },
13000
+ {
13001
+ inputs: [
13002
+ ],
13003
+ name: "getReservesList",
13004
+ outputs: [
13005
+ {
13006
+ internalType: "address[]",
13007
+ name: "",
13008
+ type: "address[]"
13009
+ }
13010
+ ],
13011
+ stateMutability: "view",
13012
+ type: "function"
13013
+ },
13014
+ {
13015
+ inputs: [
13016
+ {
13017
+ internalType: "address",
13018
+ name: "user",
13019
+ type: "address"
13020
+ }
13021
+ ],
13022
+ name: "getUserAccountData",
13023
+ outputs: [
13024
+ {
13025
+ internalType: "uint256",
13026
+ name: "totalCollateralBase",
13027
+ type: "uint256"
13028
+ },
13029
+ {
13030
+ internalType: "uint256",
13031
+ name: "totalDebtBase",
13032
+ type: "uint256"
13033
+ },
13034
+ {
13035
+ internalType: "uint256",
13036
+ name: "availableBorrowsBase",
13037
+ type: "uint256"
13038
+ },
13039
+ {
13040
+ internalType: "uint256",
13041
+ name: "currentLiquidationThreshold",
13042
+ type: "uint256"
13043
+ },
13044
+ {
13045
+ internalType: "uint256",
13046
+ name: "ltv",
13047
+ type: "uint256"
13048
+ },
13049
+ {
13050
+ internalType: "uint256",
13051
+ name: "healthFactor",
13052
+ type: "uint256"
13053
+ }
13054
+ ],
13055
+ stateMutability: "view",
13056
+ type: "function"
13057
+ },
13058
+ {
13059
+ inputs: [
13060
+ {
13061
+ internalType: "address",
13062
+ name: "user",
13063
+ type: "address"
13064
+ }
13065
+ ],
13066
+ name: "getUserConfiguration",
13067
+ outputs: [
13068
+ {
13069
+ components: [
13070
+ {
13071
+ internalType: "uint256",
13072
+ name: "data",
13073
+ type: "uint256"
13074
+ }
13075
+ ],
13076
+ internalType: "struct DataTypes.UserConfigurationMap",
13077
+ name: "",
13078
+ type: "tuple"
13079
+ }
13080
+ ],
13081
+ stateMutability: "view",
13082
+ type: "function"
13083
+ },
13084
+ {
13085
+ inputs: [
13086
+ {
13087
+ internalType: "address",
13088
+ name: "user",
13089
+ type: "address"
13090
+ }
13091
+ ],
13092
+ name: "getUserEMode",
13093
+ outputs: [
13094
+ {
13095
+ internalType: "uint256",
13096
+ name: "",
13097
+ type: "uint256"
13098
+ }
13099
+ ],
13100
+ stateMutability: "view",
13101
+ type: "function"
13102
+ },
13103
+ {
13104
+ inputs: [
13105
+ {
13106
+ internalType: "address",
13107
+ name: "asset",
13108
+ type: "address"
13109
+ },
13110
+ {
13111
+ internalType: "address",
13112
+ name: "aTokenAddress",
13113
+ type: "address"
13114
+ },
13115
+ {
13116
+ internalType: "address",
13117
+ name: "stableDebtAddress",
13118
+ type: "address"
13119
+ },
13120
+ {
13121
+ internalType: "address",
13122
+ name: "variableDebtAddress",
13123
+ type: "address"
13124
+ },
13125
+ {
13126
+ internalType: "address",
13127
+ name: "interestRateStrategyAddress",
13128
+ type: "address"
13129
+ }
13130
+ ],
13131
+ name: "initReserve",
13132
+ outputs: [
13133
+ ],
13134
+ stateMutability: "nonpayable",
13135
+ type: "function"
13136
+ },
13137
+ {
13138
+ inputs: [
13139
+ {
13140
+ internalType: "contract IPoolAddressesProvider",
13141
+ name: "provider",
13142
+ type: "address"
13143
+ }
13144
+ ],
13145
+ name: "initialize",
13146
+ outputs: [
13147
+ ],
13148
+ stateMutability: "nonpayable",
13149
+ type: "function"
13150
+ },
13151
+ {
13152
+ inputs: [
13153
+ {
13154
+ internalType: "address",
13155
+ name: "collateralAsset",
13156
+ type: "address"
13157
+ },
13158
+ {
13159
+ internalType: "address",
13160
+ name: "debtAsset",
13161
+ type: "address"
13162
+ },
13163
+ {
13164
+ internalType: "address",
13165
+ name: "user",
13166
+ type: "address"
13167
+ },
13168
+ {
13169
+ internalType: "uint256",
13170
+ name: "debtToCover",
13171
+ type: "uint256"
13172
+ },
13173
+ {
13174
+ internalType: "bool",
13175
+ name: "receiveAToken",
13176
+ type: "bool"
13177
+ }
13178
+ ],
13179
+ name: "liquidationCall",
13180
+ outputs: [
13181
+ ],
13182
+ stateMutability: "nonpayable",
13183
+ type: "function"
13184
+ },
13185
+ {
13186
+ inputs: [
13187
+ {
13188
+ internalType: "address[]",
13189
+ name: "assets",
13190
+ type: "address[]"
13191
+ }
13192
+ ],
13193
+ name: "mintToTreasury",
13194
+ outputs: [
13195
+ ],
13196
+ stateMutability: "nonpayable",
13197
+ type: "function"
13198
+ },
13199
+ {
13200
+ inputs: [
13201
+ {
13202
+ internalType: "address",
13203
+ name: "asset",
13204
+ type: "address"
13205
+ },
13206
+ {
13207
+ internalType: "uint256",
13208
+ name: "amount",
13209
+ type: "uint256"
13210
+ },
13211
+ {
13212
+ internalType: "address",
13213
+ name: "onBehalfOf",
13214
+ type: "address"
13215
+ },
13216
+ {
13217
+ internalType: "uint16",
13218
+ name: "referralCode",
13219
+ type: "uint16"
13220
+ }
13221
+ ],
13222
+ name: "mintUnbacked",
13223
+ outputs: [
13224
+ ],
13225
+ stateMutability: "nonpayable",
13226
+ type: "function"
13227
+ },
13228
+ {
13229
+ inputs: [
13230
+ {
13231
+ internalType: "address",
13232
+ name: "asset",
13233
+ type: "address"
13234
+ },
13235
+ {
13236
+ internalType: "address",
13237
+ name: "user",
13238
+ type: "address"
13239
+ }
13240
+ ],
13241
+ name: "rebalanceStableBorrowRate",
13242
+ outputs: [
13243
+ ],
13244
+ stateMutability: "nonpayable",
13245
+ type: "function"
13246
+ },
13247
+ {
13248
+ inputs: [
13249
+ {
13250
+ internalType: "address",
13251
+ name: "asset",
13252
+ type: "address"
13253
+ },
13254
+ {
13255
+ internalType: "uint256",
13256
+ name: "amount",
13257
+ type: "uint256"
13258
+ },
13259
+ {
13260
+ internalType: "uint256",
13261
+ name: "interestRateMode",
13262
+ type: "uint256"
13263
+ },
13264
+ {
13265
+ internalType: "address",
13266
+ name: "onBehalfOf",
13267
+ type: "address"
13268
+ }
13269
+ ],
13270
+ name: "repay",
13271
+ outputs: [
13272
+ {
13273
+ internalType: "uint256",
13274
+ name: "",
13275
+ type: "uint256"
13276
+ }
13277
+ ],
13278
+ stateMutability: "nonpayable",
13279
+ type: "function"
13280
+ },
13281
+ {
13282
+ inputs: [
13283
+ {
13284
+ internalType: "address",
13285
+ name: "asset",
13286
+ type: "address"
13287
+ },
13288
+ {
13289
+ internalType: "uint256",
13290
+ name: "amount",
13291
+ type: "uint256"
13292
+ },
13293
+ {
13294
+ internalType: "uint256",
13295
+ name: "interestRateMode",
13296
+ type: "uint256"
13297
+ }
13298
+ ],
13299
+ name: "repayWithATokens",
13300
+ outputs: [
13301
+ {
13302
+ internalType: "uint256",
13303
+ name: "",
13304
+ type: "uint256"
13305
+ }
13306
+ ],
13307
+ stateMutability: "nonpayable",
13308
+ type: "function"
13309
+ },
13310
+ {
13311
+ inputs: [
13312
+ {
13313
+ internalType: "address",
13314
+ name: "asset",
13315
+ type: "address"
13316
+ },
13317
+ {
13318
+ internalType: "uint256",
13319
+ name: "amount",
13320
+ type: "uint256"
13321
+ },
13322
+ {
13323
+ internalType: "uint256",
13324
+ name: "interestRateMode",
13325
+ type: "uint256"
13326
+ },
13327
+ {
13328
+ internalType: "address",
13329
+ name: "onBehalfOf",
13330
+ type: "address"
13331
+ },
13332
+ {
13333
+ internalType: "uint256",
13334
+ name: "deadline",
13335
+ type: "uint256"
13336
+ },
13337
+ {
13338
+ internalType: "uint8",
13339
+ name: "permitV",
13340
+ type: "uint8"
13341
+ },
13342
+ {
13343
+ internalType: "bytes32",
13344
+ name: "permitR",
13345
+ type: "bytes32"
13346
+ },
13347
+ {
13348
+ internalType: "bytes32",
13349
+ name: "permitS",
13350
+ type: "bytes32"
13351
+ }
13352
+ ],
13353
+ name: "repayWithPermit",
13354
+ outputs: [
13355
+ {
13356
+ internalType: "uint256",
13357
+ name: "",
13358
+ type: "uint256"
13359
+ }
13360
+ ],
13361
+ stateMutability: "nonpayable",
13362
+ type: "function"
13363
+ },
13364
+ {
13365
+ inputs: [
13366
+ {
13367
+ internalType: "address",
13368
+ name: "token",
13369
+ type: "address"
13370
+ },
13371
+ {
13372
+ internalType: "address",
13373
+ name: "to",
13374
+ type: "address"
13375
+ },
13376
+ {
13377
+ internalType: "uint256",
13378
+ name: "amount",
13379
+ type: "uint256"
13380
+ }
13381
+ ],
13382
+ name: "rescueTokens",
13383
+ outputs: [
13384
+ ],
13385
+ stateMutability: "nonpayable",
13386
+ type: "function"
13387
+ },
13388
+ {
13389
+ inputs: [
13390
+ {
13391
+ internalType: "address",
13392
+ name: "asset",
13393
+ type: "address"
13394
+ }
13395
+ ],
13396
+ name: "resetIsolationModeTotalDebt",
13397
+ outputs: [
13398
+ ],
13399
+ stateMutability: "nonpayable",
13400
+ type: "function"
13401
+ },
13402
+ {
13403
+ inputs: [
13404
+ {
13405
+ internalType: "address",
13406
+ name: "asset",
13407
+ type: "address"
13408
+ },
13409
+ {
13410
+ components: [
13411
+ {
13412
+ internalType: "uint256",
13413
+ name: "data",
13414
+ type: "uint256"
13415
+ }
13416
+ ],
13417
+ internalType: "struct DataTypes.ReserveConfigurationMap",
13418
+ name: "configuration",
13419
+ type: "tuple"
13420
+ }
13421
+ ],
13422
+ name: "setConfiguration",
13423
+ outputs: [
13424
+ ],
13425
+ stateMutability: "nonpayable",
13426
+ type: "function"
13427
+ },
13428
+ {
13429
+ inputs: [
13430
+ {
13431
+ internalType: "address",
13432
+ name: "asset",
13433
+ type: "address"
13434
+ },
13435
+ {
13436
+ internalType: "address",
13437
+ name: "rateStrategyAddress",
13438
+ type: "address"
13439
+ }
13440
+ ],
13441
+ name: "setReserveInterestRateStrategyAddress",
13442
+ outputs: [
13443
+ ],
13444
+ stateMutability: "nonpayable",
13445
+ type: "function"
13446
+ },
13447
+ {
13448
+ inputs: [
13449
+ {
13450
+ internalType: "uint8",
13451
+ name: "categoryId",
13452
+ type: "uint8"
13453
+ }
13454
+ ],
13455
+ name: "setUserEMode",
13456
+ outputs: [
13457
+ ],
13458
+ stateMutability: "nonpayable",
13459
+ type: "function"
13460
+ },
13461
+ {
13462
+ inputs: [
13463
+ {
13464
+ internalType: "address",
13465
+ name: "asset",
13466
+ type: "address"
13467
+ },
13468
+ {
13469
+ internalType: "bool",
13470
+ name: "useAsCollateral",
13471
+ type: "bool"
13472
+ }
13473
+ ],
13474
+ name: "setUserUseReserveAsCollateral",
13475
+ outputs: [
13476
+ ],
13477
+ stateMutability: "nonpayable",
13478
+ type: "function"
13479
+ },
13480
+ {
13481
+ inputs: [
13482
+ {
13483
+ internalType: "address",
13484
+ name: "asset",
13485
+ type: "address"
13486
+ },
13487
+ {
13488
+ internalType: "uint256",
13489
+ name: "amount",
13490
+ type: "uint256"
13491
+ },
13492
+ {
13493
+ internalType: "address",
13494
+ name: "onBehalfOf",
13495
+ type: "address"
13496
+ },
13497
+ {
13498
+ internalType: "uint16",
13499
+ name: "referralCode",
13500
+ type: "uint16"
13501
+ }
13502
+ ],
13503
+ name: "supply",
13504
+ outputs: [
13505
+ ],
13506
+ stateMutability: "nonpayable",
13507
+ type: "function"
13508
+ },
13509
+ {
13510
+ inputs: [
13511
+ {
13512
+ internalType: "address",
13513
+ name: "asset",
13514
+ type: "address"
13515
+ },
13516
+ {
13517
+ internalType: "uint256",
13518
+ name: "amount",
13519
+ type: "uint256"
13520
+ },
13521
+ {
13522
+ internalType: "address",
13523
+ name: "onBehalfOf",
13524
+ type: "address"
13525
+ },
13526
+ {
13527
+ internalType: "uint16",
13528
+ name: "referralCode",
13529
+ type: "uint16"
13530
+ },
13531
+ {
13532
+ internalType: "uint256",
13533
+ name: "deadline",
13534
+ type: "uint256"
13535
+ },
13536
+ {
13537
+ internalType: "uint8",
13538
+ name: "permitV",
13539
+ type: "uint8"
13540
+ },
13541
+ {
13542
+ internalType: "bytes32",
13543
+ name: "permitR",
13544
+ type: "bytes32"
13545
+ },
13546
+ {
13547
+ internalType: "bytes32",
13548
+ name: "permitS",
13549
+ type: "bytes32"
13550
+ }
13551
+ ],
13552
+ name: "supplyWithPermit",
13553
+ outputs: [
13554
+ ],
13555
+ stateMutability: "nonpayable",
13556
+ type: "function"
13557
+ },
13558
+ {
13559
+ inputs: [
13560
+ {
13561
+ internalType: "address",
13562
+ name: "asset",
13563
+ type: "address"
13564
+ },
13565
+ {
13566
+ internalType: "uint256",
13567
+ name: "interestRateMode",
13568
+ type: "uint256"
13569
+ }
13570
+ ],
13571
+ name: "swapBorrowRateMode",
13572
+ outputs: [
13573
+ ],
13574
+ stateMutability: "nonpayable",
13575
+ type: "function"
13576
+ },
13577
+ {
13578
+ inputs: [
13579
+ {
13580
+ internalType: "uint256",
13581
+ name: "protocolFee",
13582
+ type: "uint256"
13583
+ }
13584
+ ],
13585
+ name: "updateBridgeProtocolFee",
13586
+ outputs: [
13587
+ ],
13588
+ stateMutability: "nonpayable",
13589
+ type: "function"
13590
+ },
13591
+ {
13592
+ inputs: [
13593
+ {
13594
+ internalType: "uint128",
13595
+ name: "flashLoanPremiumTotal",
13596
+ type: "uint128"
13597
+ },
13598
+ {
13599
+ internalType: "uint128",
13600
+ name: "flashLoanPremiumToProtocol",
13601
+ type: "uint128"
13602
+ }
13603
+ ],
13604
+ name: "updateFlashloanPremiums",
13605
+ outputs: [
13606
+ ],
13607
+ stateMutability: "nonpayable",
13608
+ type: "function"
13609
+ },
13610
+ {
13611
+ inputs: [
13612
+ {
13613
+ internalType: "address",
13614
+ name: "asset",
13615
+ type: "address"
13616
+ },
13617
+ {
13618
+ internalType: "uint256",
13619
+ name: "amount",
13620
+ type: "uint256"
13621
+ },
13622
+ {
13623
+ internalType: "address",
13624
+ name: "to",
13625
+ type: "address"
13626
+ }
13627
+ ],
13628
+ name: "withdraw",
13629
+ outputs: [
13630
+ {
13631
+ internalType: "uint256",
13632
+ name: "",
13633
+ type: "uint256"
13634
+ }
13635
+ ],
13636
+ stateMutability: "nonpayable",
13637
+ type: "function"
13638
+ }
13639
+ ];
13640
+ var ILendingPoolV3 = {
13641
+ abi: abi$k
13642
+ };
13643
+
13644
+ function getAaveAssetsForUnderlying(_x, _x2, _x3) {
13645
+ return _getAaveAssetsForUnderlying.apply(this, arguments);
13646
+ }
13647
+
13648
+ function _getAaveAssetsForUnderlying() {
13649
+ _getAaveAssetsForUnderlying = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(pool, dapp, assets) {
13650
+ var iLendingPool, lendingPool, reserveData, aTokens, debtTokens;
13651
+ return runtime_1.wrap(function _callee$(_context) {
13652
+ while (1) {
13653
+ switch (_context.prev = _context.next) {
13654
+ case 0:
13655
+ iLendingPool = dapp === Dapp.AAVEV3 ? ILendingPoolV3 : ILendingPool;
13656
+ lendingPool = new ethers.Contract(routerAddress[pool.network][dapp], iLendingPool.abi, pool.signer);
13657
+ _context.next = 4;
13658
+ return Promise.all(assets.map(function (e) {
13659
+ return lendingPool.getReserveData(e);
13660
+ }));
13661
+
13662
+ case 4:
13663
+ reserveData = _context.sent;
13664
+ aTokens = reserveData.map(function (e) {
13665
+ return e.aTokenAddress;
13666
+ });
13667
+ debtTokens = reserveData.map(function (e) {
13668
+ return e.variableDebtTokenAddress;
13669
+ });
13670
+ return _context.abrupt("return", aTokens.concat(debtTokens));
13671
+
13672
+ case 8:
13673
+ case "end":
13674
+ return _context.stop();
13675
+ }
13676
+ }
13677
+ }, _callee);
13678
+ }));
13679
+ return _getAaveAssetsForUnderlying.apply(this, arguments);
13680
+ }
13681
+
13682
+ function getAaveV3ClaimTxData(_x, _x2, _x3) {
13683
+ return _getAaveV3ClaimTxData.apply(this, arguments);
13684
+ }
13685
+
13686
+ function _getAaveV3ClaimTxData() {
13687
+ _getAaveV3ClaimTxData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(pool, assets, rewardAsset) {
13688
+ var iAaveIncentives, aaveAsset, claimTxData;
13689
+ return runtime_1.wrap(function _callee$(_context) {
13690
+ while (1) {
13691
+ switch (_context.prev = _context.next) {
13692
+ case 0:
13693
+ iAaveIncentives = new ethers.utils.Interface(IAaveV3Incentives.abi);
13694
+ _context.next = 3;
13695
+ return getAaveAssetsForUnderlying(pool, Dapp.AAVEV3, assets);
13696
+
13697
+ case 3:
13698
+ aaveAsset = _context.sent;
13699
+ claimTxData = iAaveIncentives.encodeFunctionData("claimRewards", [aaveAsset, ethers.constants.MaxUint256, pool.address, rewardAsset]);
13700
+ return _context.abrupt("return", claimTxData);
13701
+
13702
+ case 6:
13703
+ case "end":
13704
+ return _context.stop();
13705
+ }
13706
+ }
13707
+ }, _callee);
13708
+ }));
13709
+ return _getAaveV3ClaimTxData.apply(this, arguments);
13710
+ }
13711
+
10961
13712
  var Pool = /*#__PURE__*/function () {
10962
13713
  function Pool(network, signer, poolLogic, mangerLogic, utils, factory) {
10963
13714
  this.network = network;
@@ -12276,6 +15027,54 @@ var Pool = /*#__PURE__*/function () {
12276
15027
 
12277
15028
  return harvestAaveRewards;
12278
15029
  }()
15030
+ /**
15031
+ * Claim rewards from Aave platform
15032
+ * @param {string[]} assets Assets invested in Aave
15033
+ * @param {string} rewardAssets Reward token address
15034
+ * @param {any} options Transaction options
15035
+ * @returns {Promise<any>} Transaction
15036
+ */
15037
+ ;
15038
+
15039
+ _proto.harvestAaveV3Rewards =
15040
+ /*#__PURE__*/
15041
+ function () {
15042
+ var _harvestAaveV3Rewards = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee27(assets, rewardAsset, options) {
15043
+ var claimTxData, tx;
15044
+ return runtime_1.wrap(function _callee27$(_context27) {
15045
+ while (1) {
15046
+ switch (_context27.prev = _context27.next) {
15047
+ case 0:
15048
+ if (options === void 0) {
15049
+ options = null;
15050
+ }
15051
+
15052
+ _context27.next = 3;
15053
+ return getAaveV3ClaimTxData(this, assets, rewardAsset);
15054
+
15055
+ case 3:
15056
+ claimTxData = _context27.sent;
15057
+ _context27.next = 6;
15058
+ return this.poolLogic.execTransaction(stakingAddress[this.network][Dapp.AAVEV3], claimTxData, options);
15059
+
15060
+ case 6:
15061
+ tx = _context27.sent;
15062
+ return _context27.abrupt("return", tx);
15063
+
15064
+ case 8:
15065
+ case "end":
15066
+ return _context27.stop();
15067
+ }
15068
+ }
15069
+ }, _callee27, this);
15070
+ }));
15071
+
15072
+ function harvestAaveV3Rewards(_x92, _x93, _x94) {
15073
+ return _harvestAaveV3Rewards.apply(this, arguments);
15074
+ }
15075
+
15076
+ return harvestAaveV3Rewards;
15077
+ }()
12279
15078
  /**
12280
15079
  * Create UniswapV3 liquidity pool
12281
15080
  * @param {string} assetA First asset
@@ -12295,18 +15094,18 @@ var Pool = /*#__PURE__*/function () {
12295
15094
  _proto.addLiquidityUniswapV3 =
12296
15095
  /*#__PURE__*/
12297
15096
  function () {
12298
- var _addLiquidityUniswapV = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee27(assetA, assetB, amountA, amountB, minPrice, maxPrice, minTick, maxTick, feeAmount, options) {
15097
+ var _addLiquidityUniswapV = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee28(assetA, assetB, amountA, amountB, minPrice, maxPrice, minTick, maxTick, feeAmount, options) {
12299
15098
  var iNonfungiblePositionManager, mintTxParams, mintTxData, tx;
12300
- return runtime_1.wrap(function _callee27$(_context27) {
15099
+ return runtime_1.wrap(function _callee28$(_context28) {
12301
15100
  while (1) {
12302
- switch (_context27.prev = _context27.next) {
15101
+ switch (_context28.prev = _context28.next) {
12303
15102
  case 0:
12304
15103
  if (options === void 0) {
12305
15104
  options = null;
12306
15105
  }
12307
15106
 
12308
15107
  if (!((minPrice === null || maxPrice === null) && (minTick === null || maxTick === null))) {
12309
- _context27.next = 3;
15108
+ _context28.next = 3;
12310
15109
  break;
12311
15110
  }
12312
15111
 
@@ -12314,28 +15113,28 @@ var Pool = /*#__PURE__*/function () {
12314
15113
 
12315
15114
  case 3:
12316
15115
  iNonfungiblePositionManager = new ethers.utils.Interface(INonfungiblePositionManager.abi);
12317
- _context27.next = 6;
15116
+ _context28.next = 6;
12318
15117
  return getUniswapV3MintParams(this, assetA, assetB, amountA, amountB, minPrice, maxPrice, minTick, maxTick, feeAmount);
12319
15118
 
12320
15119
  case 6:
12321
- mintTxParams = _context27.sent;
15120
+ mintTxParams = _context28.sent;
12322
15121
  mintTxData = iNonfungiblePositionManager.encodeFunctionData(Transaction.MINT, [mintTxParams]);
12323
- _context27.next = 10;
15122
+ _context28.next = 10;
12324
15123
  return this.poolLogic.execTransaction(nonfungiblePositionManagerAddress[this.network], mintTxData, options);
12325
15124
 
12326
15125
  case 10:
12327
- tx = _context27.sent;
12328
- return _context27.abrupt("return", tx);
15126
+ tx = _context28.sent;
15127
+ return _context28.abrupt("return", tx);
12329
15128
 
12330
15129
  case 12:
12331
15130
  case "end":
12332
- return _context27.stop();
15131
+ return _context28.stop();
12333
15132
  }
12334
15133
  }
12335
- }, _callee27, this);
15134
+ }, _callee28, this);
12336
15135
  }));
12337
15136
 
12338
- function addLiquidityUniswapV3(_x92, _x93, _x94, _x95, _x96, _x97, _x98, _x99, _x100, _x101) {
15137
+ function addLiquidityUniswapV3(_x95, _x96, _x97, _x98, _x99, _x100, _x101, _x102, _x103, _x104) {
12339
15138
  return _addLiquidityUniswapV.apply(this, arguments);
12340
15139
  }
12341
15140
 
@@ -12354,12 +15153,12 @@ var Pool = /*#__PURE__*/function () {
12354
15153
  _proto.decreaseLiquidity =
12355
15154
  /*#__PURE__*/
12356
15155
  function () {
12357
- var _decreaseLiquidity = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee28(dapp, tokenId, amount, options) {
15156
+ var _decreaseLiquidity = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee29(dapp, tokenId, amount, options) {
12358
15157
  var txData, dappAddress, abi, liquidity, decreaseLiquidityTxData, collectTxData, multicallParams, burnTxData, _abi, _liquidity, tx;
12359
15158
 
12360
- return runtime_1.wrap(function _callee28$(_context28) {
15159
+ return runtime_1.wrap(function _callee29$(_context29) {
12361
15160
  while (1) {
12362
- switch (_context28.prev = _context28.next) {
15161
+ switch (_context29.prev = _context29.next) {
12363
15162
  case 0:
12364
15163
  if (amount === void 0) {
12365
15164
  amount = 100;
@@ -12370,17 +15169,17 @@ var Pool = /*#__PURE__*/function () {
12370
15169
  }
12371
15170
 
12372
15171
  if (!(dapp === Dapp.UNISWAPV3)) {
12373
- _context28.next = 15;
15172
+ _context29.next = 15;
12374
15173
  break;
12375
15174
  }
12376
15175
 
12377
15176
  dappAddress = nonfungiblePositionManagerAddress[this.network];
12378
15177
  abi = new ethers.utils.Interface(INonfungiblePositionManager.abi);
12379
- _context28.next = 7;
15178
+ _context29.next = 7;
12380
15179
  return getUniswapV3Liquidity(tokenId, this);
12381
15180
 
12382
15181
  case 7:
12383
- liquidity = _context28.sent.mul(Math.round(amount * 1e4)).div(1e6);
15182
+ liquidity = _context29.sent.mul(Math.round(amount * 1e4)).div(1e6);
12384
15183
  decreaseLiquidityTxData = abi.encodeFunctionData(Transaction.DECREASE_LIQUIDITY, [[tokenId, liquidity, 0, 0, deadline]]);
12385
15184
  collectTxData = abi.encodeFunctionData(Transaction.COLLECT, [[tokenId, this.address, MaxUint128, MaxUint128]]);
12386
15185
  multicallParams = [decreaseLiquidityTxData, collectTxData];
@@ -12391,46 +15190,46 @@ var Pool = /*#__PURE__*/function () {
12391
15190
  }
12392
15191
 
12393
15192
  txData = abi.encodeFunctionData(Transaction.MULTI_CALL, [multicallParams]);
12394
- _context28.next = 25;
15193
+ _context29.next = 25;
12395
15194
  break;
12396
15195
 
12397
15196
  case 15:
12398
15197
  if (!(dapp === Dapp.ARRAKIS)) {
12399
- _context28.next = 24;
15198
+ _context29.next = 24;
12400
15199
  break;
12401
15200
  }
12402
15201
 
12403
15202
  dappAddress = routerAddress[this.network][dapp];
12404
15203
  _abi = new ethers.utils.Interface(IArrakisV1RouterStaking.abi);
12405
- _context28.next = 20;
15204
+ _context29.next = 20;
12406
15205
  return this.utils.getBalance(tokenId, this.address);
12407
15206
 
12408
15207
  case 20:
12409
- _liquidity = _context28.sent.mul(Math.round(amount * 1e4)).div(1e6);
15208
+ _liquidity = _context29.sent.mul(Math.round(amount * 1e4)).div(1e6);
12410
15209
  txData = _abi.encodeFunctionData(Transaction.REMOVE_LIQUIDITY_UNSTAKE, [tokenId, _liquidity, 0, 0, this.address]);
12411
- _context28.next = 25;
15210
+ _context29.next = 25;
12412
15211
  break;
12413
15212
 
12414
15213
  case 24:
12415
15214
  throw new Error("dapp not supported");
12416
15215
 
12417
15216
  case 25:
12418
- _context28.next = 27;
15217
+ _context29.next = 27;
12419
15218
  return this.poolLogic.execTransaction(dappAddress, txData, options);
12420
15219
 
12421
15220
  case 27:
12422
- tx = _context28.sent;
12423
- return _context28.abrupt("return", tx);
15221
+ tx = _context29.sent;
15222
+ return _context29.abrupt("return", tx);
12424
15223
 
12425
15224
  case 29:
12426
15225
  case "end":
12427
- return _context28.stop();
15226
+ return _context29.stop();
12428
15227
  }
12429
15228
  }
12430
- }, _callee28, this);
15229
+ }, _callee29, this);
12431
15230
  }));
12432
15231
 
12433
- function decreaseLiquidity(_x102, _x103, _x104, _x105) {
15232
+ function decreaseLiquidity(_x105, _x106, _x107, _x108) {
12434
15233
  return _decreaseLiquidity.apply(this, arguments);
12435
15234
  }
12436
15235
 
@@ -12450,60 +15249,60 @@ var Pool = /*#__PURE__*/function () {
12450
15249
  _proto.increaseLiquidity =
12451
15250
  /*#__PURE__*/
12452
15251
  function () {
12453
- var _increaseLiquidity = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee29(dapp, tokenId, amountA, amountB, options) {
15252
+ var _increaseLiquidity = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee30(dapp, tokenId, amountA, amountB, options) {
12454
15253
  var txData, dappAddress, abi, _abi2, tx;
12455
15254
 
12456
- return runtime_1.wrap(function _callee29$(_context29) {
15255
+ return runtime_1.wrap(function _callee30$(_context30) {
12457
15256
  while (1) {
12458
- switch (_context29.prev = _context29.next) {
15257
+ switch (_context30.prev = _context30.next) {
12459
15258
  case 0:
12460
15259
  if (options === void 0) {
12461
15260
  options = null;
12462
15261
  }
12463
15262
 
12464
15263
  if (!(dapp === Dapp.UNISWAPV3)) {
12465
- _context29.next = 7;
15264
+ _context30.next = 7;
12466
15265
  break;
12467
15266
  }
12468
15267
 
12469
15268
  dappAddress = nonfungiblePositionManagerAddress[this.network];
12470
15269
  abi = new ethers.utils.Interface(INonfungiblePositionManager.abi);
12471
15270
  txData = abi.encodeFunctionData(Transaction.INCREASE_LIQUIDITY, [[tokenId, amountA, amountB, 0, 0, deadline]]);
12472
- _context29.next = 14;
15271
+ _context30.next = 14;
12473
15272
  break;
12474
15273
 
12475
15274
  case 7:
12476
15275
  if (!(dapp === Dapp.ARRAKIS)) {
12477
- _context29.next = 13;
15276
+ _context30.next = 13;
12478
15277
  break;
12479
15278
  }
12480
15279
 
12481
15280
  dappAddress = routerAddress[this.network][dapp];
12482
15281
  _abi2 = new ethers.utils.Interface(IArrakisV1RouterStaking.abi);
12483
15282
  txData = _abi2.encodeFunctionData(Transaction.ADD_LIQUIDITY_STAKE, [tokenId, amountA, amountB, 0, 0, this.address]);
12484
- _context29.next = 14;
15283
+ _context30.next = 14;
12485
15284
  break;
12486
15285
 
12487
15286
  case 13:
12488
15287
  throw new Error("dapp not supported");
12489
15288
 
12490
15289
  case 14:
12491
- _context29.next = 16;
15290
+ _context30.next = 16;
12492
15291
  return this.poolLogic.execTransaction(dappAddress, txData, options);
12493
15292
 
12494
15293
  case 16:
12495
- tx = _context29.sent;
12496
- return _context29.abrupt("return", tx);
15294
+ tx = _context30.sent;
15295
+ return _context30.abrupt("return", tx);
12497
15296
 
12498
15297
  case 18:
12499
15298
  case "end":
12500
- return _context29.stop();
15299
+ return _context30.stop();
12501
15300
  }
12502
15301
  }
12503
- }, _callee29, this);
15302
+ }, _callee30, this);
12504
15303
  }));
12505
15304
 
12506
- function increaseLiquidity(_x106, _x107, _x108, _x109, _x110) {
15305
+ function increaseLiquidity(_x109, _x110, _x111, _x112, _x113) {
12507
15306
  return _increaseLiquidity.apply(this, arguments);
12508
15307
  }
12509
15308
 
@@ -12521,59 +15320,59 @@ var Pool = /*#__PURE__*/function () {
12521
15320
  _proto.claimFees =
12522
15321
  /*#__PURE__*/
12523
15322
  function () {
12524
- var _claimFees = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee30(dapp, tokenId, options) {
15323
+ var _claimFees = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee31(dapp, tokenId, options) {
12525
15324
  var txData, contractAddress, iNonfungiblePositionManager, abi, tx;
12526
- return runtime_1.wrap(function _callee30$(_context30) {
15325
+ return runtime_1.wrap(function _callee31$(_context31) {
12527
15326
  while (1) {
12528
- switch (_context30.prev = _context30.next) {
15327
+ switch (_context31.prev = _context31.next) {
12529
15328
  case 0:
12530
15329
  if (options === void 0) {
12531
15330
  options = null;
12532
15331
  }
12533
15332
 
12534
15333
  if (!(dapp === Dapp.UNISWAPV3)) {
12535
- _context30.next = 7;
15334
+ _context31.next = 7;
12536
15335
  break;
12537
15336
  }
12538
15337
 
12539
15338
  contractAddress = nonfungiblePositionManagerAddress[this.network];
12540
15339
  iNonfungiblePositionManager = new ethers.utils.Interface(INonfungiblePositionManager.abi);
12541
15340
  txData = iNonfungiblePositionManager.encodeFunctionData(Transaction.COLLECT, [[tokenId, this.address, MaxUint128, MaxUint128]]);
12542
- _context30.next = 14;
15341
+ _context31.next = 14;
12543
15342
  break;
12544
15343
 
12545
15344
  case 7:
12546
15345
  if (!(dapp === Dapp.ARRAKIS || dapp === Dapp.BALANCER)) {
12547
- _context30.next = 13;
15346
+ _context31.next = 13;
12548
15347
  break;
12549
15348
  }
12550
15349
 
12551
15350
  contractAddress = tokenId;
12552
15351
  abi = new ethers.utils.Interface(ILiquidityGaugeV4.abi);
12553
15352
  txData = abi.encodeFunctionData("claim_rewards()", []);
12554
- _context30.next = 14;
15353
+ _context31.next = 14;
12555
15354
  break;
12556
15355
 
12557
15356
  case 13:
12558
15357
  throw new Error("dapp not supported");
12559
15358
 
12560
15359
  case 14:
12561
- _context30.next = 16;
15360
+ _context31.next = 16;
12562
15361
  return this.poolLogic.execTransaction(contractAddress, txData, options);
12563
15362
 
12564
15363
  case 16:
12565
- tx = _context30.sent;
12566
- return _context30.abrupt("return", tx);
15364
+ tx = _context31.sent;
15365
+ return _context31.abrupt("return", tx);
12567
15366
 
12568
15367
  case 18:
12569
15368
  case "end":
12570
- return _context30.stop();
15369
+ return _context31.stop();
12571
15370
  }
12572
15371
  }
12573
- }, _callee30, this);
15372
+ }, _callee31, this);
12574
15373
  }));
12575
15374
 
12576
- function claimFees(_x111, _x112, _x113) {
15375
+ function claimFees(_x114, _x115, _x116) {
12577
15376
  return _claimFees.apply(this, arguments);
12578
15377
  }
12579
15378
 
@@ -12595,11 +15394,11 @@ var Pool = /*#__PURE__*/function () {
12595
15394
  _proto.tradeUniswapV3 =
12596
15395
  /*#__PURE__*/
12597
15396
  function () {
12598
- var _tradeUniswapV = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee31(assetFrom, assetTo, amountIn, feeAmount, slippage, options) {
15397
+ var _tradeUniswapV = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee32(assetFrom, assetTo, amountIn, feeAmount, slippage, options) {
12599
15398
  var swapxData, tx;
12600
- return runtime_1.wrap(function _callee31$(_context31) {
15399
+ return runtime_1.wrap(function _callee32$(_context32) {
12601
15400
  while (1) {
12602
- switch (_context31.prev = _context31.next) {
15401
+ switch (_context32.prev = _context32.next) {
12603
15402
  case 0:
12604
15403
  if (slippage === void 0) {
12605
15404
  slippage = 0.5;
@@ -12609,27 +15408,27 @@ var Pool = /*#__PURE__*/function () {
12609
15408
  options = null;
12610
15409
  }
12611
15410
 
12612
- _context31.next = 4;
15411
+ _context32.next = 4;
12613
15412
  return getUniswapV3SwapTxData(this, assetFrom, assetTo, amountIn, slippage, feeAmount);
12614
15413
 
12615
15414
  case 4:
12616
- swapxData = _context31.sent;
12617
- _context31.next = 7;
15415
+ swapxData = _context32.sent;
15416
+ _context32.next = 7;
12618
15417
  return this.poolLogic.execTransaction(routerAddress[this.network][Dapp.UNISWAPV3], swapxData, options);
12619
15418
 
12620
15419
  case 7:
12621
- tx = _context31.sent;
12622
- return _context31.abrupt("return", tx);
15420
+ tx = _context32.sent;
15421
+ return _context32.abrupt("return", tx);
12623
15422
 
12624
15423
  case 9:
12625
15424
  case "end":
12626
- return _context31.stop();
15425
+ return _context32.stop();
12627
15426
  }
12628
15427
  }
12629
- }, _callee31, this);
15428
+ }, _callee32, this);
12630
15429
  }));
12631
15430
 
12632
- function tradeUniswapV3(_x114, _x115, _x116, _x117, _x118, _x119) {
15431
+ function tradeUniswapV3(_x117, _x118, _x119, _x120, _x121, _x122) {
12633
15432
  return _tradeUniswapV.apply(this, arguments);
12634
15433
  }
12635
15434
 
@@ -12639,7 +15438,7 @@ var Pool = /*#__PURE__*/function () {
12639
15438
  return Pool;
12640
15439
  }();
12641
15440
 
12642
- var abi$j = [
15441
+ var abi$l = [
12643
15442
  {
12644
15443
  inputs: [
12645
15444
  {
@@ -12863,10 +15662,10 @@ var abi$j = [
12863
15662
  }
12864
15663
  ];
12865
15664
  var UniswapV2Factory = {
12866
- abi: abi$j
15665
+ abi: abi$l
12867
15666
  };
12868
15667
 
12869
- var abi$k = [
15668
+ var abi$m = [
12870
15669
  {
12871
15670
  anonymous: false,
12872
15671
  inputs: [
@@ -13610,7 +16409,7 @@ var evm = {
13610
16409
  }
13611
16410
  };
13612
16411
  var UniswapV2Pair = {
13613
- abi: abi$k,
16412
+ abi: abi$m,
13614
16413
  evm: evm,
13615
16414
  "interface": [
13616
16415
  {
@@ -14341,7 +17140,7 @@ var UniswapV2Pair = {
14341
17140
  ]
14342
17141
  };
14343
17142
 
14344
- var abi$l = [
17143
+ var abi$n = [
14345
17144
  {
14346
17145
  inputs: [
14347
17146
  {
@@ -15536,7 +18335,7 @@ var abi$l = [
15536
18335
  }
15537
18336
  ];
15538
18337
  var IBalancerV2Vault = {
15539
- abi: abi$l
18338
+ abi: abi$n
15540
18339
  };
15541
18340
 
15542
18341
  var Utils = /*#__PURE__*/function () {