@dhedge/v2-sdk 2.1.4 → 2.1.5

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.
@@ -4363,12 +4363,12 @@ var Transaction;
4363
4363
  Transaction["REMOVE_LIQUIDITY_UNSTAKE"] = "removeLiquidityAndUnstake";
4364
4364
  })(Transaction || (Transaction = {}));
4365
4365
 
4366
- var _factoryAddress, _Network$POLYGON, _Network$OPTIMISM, _Network$ARBITRUM, _Network$BASE, _Network$ETHEREUM, _Network$PLASMA, _routerAddress, _Network$POLYGON2, _dappFactoryAddress, _Network$POLYGON3, _Network$OPTIMISM2, _Network$ARBITRUM2, _Network$BASE2, _stakingAddress, _Network$POLYGON4, _Network$OPTIMISM3, _Network$ARBITRUM3, _Network$BASE3, _Network$ETHEREUM2, _Network$PLASMA2, _aaveAddressProvider, _Network$POLYGON5, _Network$OPTIMISM4, _Network$ARBITRUM4, _Network$BASE4, _nonfungiblePositionM, _networkChainIdMap, _balancerSubgraph, _multiCallAddress, _lyraNetworkMap, _flatMoneyContractAdd;
4366
+ var _factoryAddress, _Network$POLYGON, _Network$OPTIMISM, _Network$ARBITRUM, _Network$BASE, _Network$ETHEREUM, _Network$PLASMA, _routerAddress, _Network$POLYGON2, _dappFactoryAddress, _Network$POLYGON3, _Network$OPTIMISM2, _Network$ARBITRUM2, _Network$BASE2, _stakingAddress, _Network$POLYGON4, _Network$OPTIMISM3, _Network$ARBITRUM3, _Network$BASE3, _Network$ETHEREUM2, _Network$PLASMA2, _aaveAddressProvider, _Network$POLYGON5, _Network$OPTIMISM4, _Network$ARBITRUM4, _Network$BASE4, _nonfungiblePositionM, _networkChainIdMap, _balancerSubgraph, _multiCallAddress, _lyraNetworkMap, _flatMoneyContractAdd, _OdosSwapFeeRecipient;
4367
4367
 
4368
4368
  require("dotenv").config();
4369
4369
 
4370
4370
  var factoryAddress = (_factoryAddress = {}, _factoryAddress[Network.POLYGON] = process.env.STAGING_CONTRACTS ? "0xDd87eCdB10cFF7004276AAbAbd30e7a08F69bb53" : "0xfdc7b8bFe0DD3513Cc669bB8d601Cb83e2F69cB0", _factoryAddress[Network.OPTIMISM] = "0x5e61a079A178f0E5784107a4963baAe0c5a680c6", _factoryAddress[Network.ARBITRUM] = "0xfffb5fb14606eb3a548c113026355020ddf27535", _factoryAddress[Network.BASE] = "0x49Afe3abCf66CF09Fab86cb1139D8811C8afe56F", _factoryAddress[Network.ETHEREUM] = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d", _factoryAddress[Network.PLASMA] = "0xAec4975Fc8ad911464D2948D771488b30F6eEE87", _factoryAddress);
4371
- 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] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$POLYGON[Dapp.QUICKSWAP] = "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff", _Network$POLYGON[Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$POLYGON[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$POLYGON[Dapp.ARRAKIS] = "0xc73fb100a995b33f9fa181d420f4c8d74506df66", _Network$POLYGON[Dapp.TOROS] = "0x45b90480D6F643dE2f128db091A357C3c90399f2", _Network$POLYGON[Dapp.ODOS] = "0x4e3288c9ca110bcc82bf38f09a7b425c095d92bf", _Network$POLYGON[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _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] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$OPTIMISM[Dapp.TOROS] = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", _Network$OPTIMISM[Dapp.VELODROME] = "0x9c12939390052919aF3155f41Bf4160Fd3666A6f", _Network$OPTIMISM[Dapp.VELODROMEV2] = "0xa062ae8a9c5e11aaa026fc2670b0d65ccc8b2858", _Network$OPTIMISM[Dapp.LYRA] = "0xCCE7819d65f348c64B7Beb205BA367b3fE33763B", _Network$OPTIMISM[Dapp.ARRAKIS] = "0x9ce88a56d120300061593eF7AD074A1B710094d5", _Network$OPTIMISM[Dapp.ODOS] = "0xca423977156bb05b13a2ba3b76bc5419e2fe9680", _Network$OPTIMISM[Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$OPTIMISM[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _Network$OPTIMISM), _routerAddress[Network.ARBITRUM] = (_Network$ARBITRUM = {}, _Network$ARBITRUM[Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$ARBITRUM[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$ARBITRUM[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$ARBITRUM[Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$ARBITRUM[Dapp.RAMSES] = "0xaaa87963efeb6f7e0a2711f397663105acb1805e", _Network$ARBITRUM[Dapp.TOROS] = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", _Network$ARBITRUM[Dapp.ODOS] = "0xa669e7A0d4b3e4Fa48af2dE86BD4CD7126Be4e13", _Network$ARBITRUM[Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$ARBITRUM[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _Network$ARBITRUM), _routerAddress[Network.BASE] = (_Network$BASE = {}, _Network$BASE[Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$BASE[Dapp.AERODROME] = "0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43", _Network$BASE[Dapp.AAVEV3] = "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5", _Network$BASE[Dapp.TOROS] = "0xf067575Eb60c7587C11e867907AA7284833704d1", _Network$BASE[Dapp.ODOS] = "0x19cEeAd7105607Cd444F5ad10dd51356436095a1", _Network$BASE[Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$BASE[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _Network$BASE), _routerAddress[Network.ETHEREUM] = (_Network$ETHEREUM = {}, _Network$ETHEREUM[Dapp.AAVEV3] = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", _Network$ETHEREUM[Dapp.ODOS] = "0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559", _Network$ETHEREUM[Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$ETHEREUM[Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$ETHEREUM[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _Network$ETHEREUM), _routerAddress[Network.PLASMA] = (_Network$PLASMA = {}, _Network$PLASMA[Dapp.AAVEV3] = "0x925a2A7214Ed92428B5b1B090F80b25700095e12", _Network$PLASMA[Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$PLASMA[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _Network$PLASMA), _routerAddress);
4371
+ 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] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$POLYGON[Dapp.QUICKSWAP] = "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff", _Network$POLYGON[Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$POLYGON[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$POLYGON[Dapp.ARRAKIS] = "0xc73fb100a995b33f9fa181d420f4c8d74506df66", _Network$POLYGON[Dapp.TOROS] = "0x45b90480D6F643dE2f128db091A357C3c90399f2", _Network$POLYGON[Dapp.ODOS] = "0x0D05a7D3448512B78fa8A9e46c4872C88C4a0D05", _Network$POLYGON[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _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] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$OPTIMISM[Dapp.TOROS] = "0x2Ed1bd7f66e47113672f3870308b5E867C5bb743", _Network$OPTIMISM[Dapp.VELODROME] = "0x9c12939390052919aF3155f41Bf4160Fd3666A6f", _Network$OPTIMISM[Dapp.VELODROMEV2] = "0xa062ae8a9c5e11aaa026fc2670b0d65ccc8b2858", _Network$OPTIMISM[Dapp.LYRA] = "0xCCE7819d65f348c64B7Beb205BA367b3fE33763B", _Network$OPTIMISM[Dapp.ARRAKIS] = "0x9ce88a56d120300061593eF7AD074A1B710094d5", _Network$OPTIMISM[Dapp.ODOS] = "0x0D05a7D3448512B78fa8A9e46c4872C88C4a0D05", _Network$OPTIMISM[Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$OPTIMISM[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _Network$OPTIMISM), _routerAddress[Network.ARBITRUM] = (_Network$ARBITRUM = {}, _Network$ARBITRUM[Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$ARBITRUM[Dapp.UNISWAPV3] = "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", _Network$ARBITRUM[Dapp.AAVEV3] = "0x794a61358D6845594F94dc1DB02A252b5b4814aD", _Network$ARBITRUM[Dapp.BALANCER] = "0xBA12222222228d8Ba445958a75a0704d566BF2C8", _Network$ARBITRUM[Dapp.RAMSES] = "0xaaa87963efeb6f7e0a2711f397663105acb1805e", _Network$ARBITRUM[Dapp.TOROS] = "0xA5679C4272A056Bb83f039961fae7D99C48529F5", _Network$ARBITRUM[Dapp.ODOS] = "0x0D05a7D3448512B78fa8A9e46c4872C88C4a0D05", _Network$ARBITRUM[Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$ARBITRUM[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _Network$ARBITRUM), _routerAddress[Network.BASE] = (_Network$BASE = {}, _Network$BASE[Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$BASE[Dapp.AERODROME] = "0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43", _Network$BASE[Dapp.AAVEV3] = "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5", _Network$BASE[Dapp.TOROS] = "0xf067575Eb60c7587C11e867907AA7284833704d1", _Network$BASE[Dapp.ODOS] = "0x0D05a7D3448512B78fa8A9e46c4872C88C4a0D05", _Network$BASE[Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$BASE[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _Network$BASE), _routerAddress[Network.ETHEREUM] = (_Network$ETHEREUM = {}, _Network$ETHEREUM[Dapp.AAVEV3] = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", _Network$ETHEREUM[Dapp.ODOS] = "0x0D05a7D3448512B78fa8A9e46c4872C88C4a0D05", _Network$ETHEREUM[Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$ETHEREUM[Dapp.ONEINCH] = "0x111111125421ca6dc452d289314280a0f8842a65", _Network$ETHEREUM[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _Network$ETHEREUM), _routerAddress[Network.PLASMA] = (_Network$PLASMA = {}, _Network$PLASMA[Dapp.AAVEV3] = "0x925a2A7214Ed92428B5b1B090F80b25700095e12", _Network$PLASMA[Dapp.PENDLE] = "0x888888888889758F76e7103c6CbF23ABbF58F946", _Network$PLASMA[Dapp.KYBERSWAP] = "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5", _Network$PLASMA), _routerAddress);
4372
4372
  var dappFactoryAddress = (_dappFactoryAddress = {}, _dappFactoryAddress[Network.POLYGON] = (_Network$POLYGON2 = {}, _Network$POLYGON2[Dapp.SUSHISWAP] = "0xc35DADB65012eC5796536bD9864eD8773aBc74C4", _Network$POLYGON2[Dapp.QUICKSWAP] = "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32", _Network$POLYGON2), _dappFactoryAddress[Network.OPTIMISM] = {}, _dappFactoryAddress[Network.ARBITRUM] = {}, _dappFactoryAddress[Network.BASE] = {}, _dappFactoryAddress[Network.ETHEREUM] = {}, _dappFactoryAddress[Network.PLASMA] = {}, _dappFactoryAddress);
4373
4373
  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[Dapp.COMPOUNDV3] = "0x443ea0340cb75a160f31a440722dec7b5bc3c2e9", _Network$OPTIMISM2), _stakingAddress[Network.ARBITRUM] = (_Network$ARBITRUM2 = {}, _Network$ARBITRUM2[Dapp.COMPOUNDV3] = "0x88730d254a2f7e6ac8388c3198afd694ba9f7fae", _Network$ARBITRUM2[Dapp.PANCAKECL] = "0x5e09ACf80C0296740eC5d6F643005a4ef8DaA694", _Network$ARBITRUM2), _stakingAddress[Network.BASE] = (_Network$BASE2 = {}, _Network$BASE2[Dapp.PANCAKECL] = "0xC6A2Db661D5a5690172d8eB0a7DEA2d3008665A3", _Network$BASE2), _stakingAddress[Network.ETHEREUM] = {}, _stakingAddress[Network.PLASMA] = {}, _stakingAddress);
4374
4374
  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[Network.ARBITRUM] = (_Network$ARBITRUM3 = {}, _Network$ARBITRUM3[Dapp.AAVEV3] = "0xa97684ead0e402dc232d5a977953df7ecbab3cdb", _Network$ARBITRUM3), _aaveAddressProvider[Network.BASE] = (_Network$BASE3 = {}, _Network$BASE3[Dapp.AAVEV3] = "0xe20fCBdBfFC4Dd138cE8b2E6FBb6CB49777ad64D", _Network$BASE3), _aaveAddressProvider[Network.ETHEREUM] = (_Network$ETHEREUM2 = {}, _Network$ETHEREUM2[Dapp.AAVEV3] = "0x2f39d218133AFaB8F2B819B1066c7E434Ad94E9e", _Network$ETHEREUM2), _aaveAddressProvider[Network.PLASMA] = (_Network$PLASMA2 = {}, _Network$PLASMA2[Dapp.AAVEV3] = "0x061D8e131F26512348ee5FA42e2DF1bA9d6505E9", _Network$PLASMA2), _aaveAddressProvider);
@@ -4399,6 +4399,7 @@ var flatMoneyContractAddresses = (_flatMoneyContractAdd = {}, _flatMoneyContract
4399
4399
  COLLATERAL: "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
4400
4400
  StableModule: "0xcD3657cB0E851b6a734c4D1e7FC2640Bcd9f6B2d"
4401
4401
  }, _flatMoneyContractAdd);
4402
+ var OdosSwapFeeRecipient = (_OdosSwapFeeRecipient = {}, _OdosSwapFeeRecipient[Network.POLYGON] = "0x090e7fbD87A673eE3D0B6ccACf0e1d94fB90DA59", _OdosSwapFeeRecipient[Network.OPTIMISM] = "0x813123A13d01d3F07d434673Fdc89cBBA523f14d", _OdosSwapFeeRecipient[Network.ARBITRUM] = "0xfbD2B4216f422DC1eEe1Cff4Fb64B726F099dEF5", _OdosSwapFeeRecipient[Network.BASE] = "0x5619AD05b0253a7e647Bd2E4C01c7f40CEaB0879", _OdosSwapFeeRecipient[Network.ETHEREUM] = "0xfbD2B4216f422DC1eEe1Cff4Fb64B726F099dEF5", _OdosSwapFeeRecipient[Network.PLASMA] = "", _OdosSwapFeeRecipient);
4402
4403
 
4403
4404
  var abi$3 = [
4404
4405
  {
@@ -12545,24 +12546,1396 @@ var AaveLendingPoolAssetGuardAbi = [
12545
12546
  }
12546
12547
  ];
12547
12548
 
12548
- var odosBaseUrl = "https://api.odos.xyz/sor";
12549
+ var abi$h = [
12550
+ {
12551
+ inputs: [
12552
+ {
12553
+ internalType: "address",
12554
+ name: "owner",
12555
+ type: "address"
12556
+ }
12557
+ ],
12558
+ stateMutability: "nonpayable",
12559
+ type: "constructor"
12560
+ },
12561
+ {
12562
+ inputs: [
12563
+ {
12564
+ internalType: "address",
12565
+ name: "owner",
12566
+ type: "address"
12567
+ }
12568
+ ],
12569
+ name: "OwnableInvalidOwner",
12570
+ type: "error"
12571
+ },
12572
+ {
12573
+ inputs: [
12574
+ {
12575
+ internalType: "address",
12576
+ name: "account",
12577
+ type: "address"
12578
+ }
12579
+ ],
12580
+ name: "OwnableUnauthorizedAccount",
12581
+ type: "error"
12582
+ },
12583
+ {
12584
+ inputs: [
12585
+ {
12586
+ internalType: "address",
12587
+ name: "token",
12588
+ type: "address"
12589
+ }
12590
+ ],
12591
+ name: "SafeERC20FailedOperation",
12592
+ type: "error"
12593
+ },
12594
+ {
12595
+ anonymous: false,
12596
+ inputs: [
12597
+ {
12598
+ indexed: true,
12599
+ internalType: "address",
12600
+ name: "account",
12601
+ type: "address"
12602
+ }
12603
+ ],
12604
+ name: "LiquidatorAddressChanged",
12605
+ type: "event"
12606
+ },
12607
+ {
12608
+ anonymous: false,
12609
+ inputs: [
12610
+ {
12611
+ indexed: true,
12612
+ internalType: "address",
12613
+ name: "previousOwner",
12614
+ type: "address"
12615
+ },
12616
+ {
12617
+ indexed: true,
12618
+ internalType: "address",
12619
+ name: "newOwner",
12620
+ type: "address"
12621
+ }
12622
+ ],
12623
+ name: "OwnershipTransferStarted",
12624
+ type: "event"
12625
+ },
12626
+ {
12627
+ anonymous: false,
12628
+ inputs: [
12629
+ {
12630
+ indexed: true,
12631
+ internalType: "address",
12632
+ name: "previousOwner",
12633
+ type: "address"
12634
+ },
12635
+ {
12636
+ indexed: true,
12637
+ internalType: "address",
12638
+ name: "newOwner",
12639
+ type: "address"
12640
+ }
12641
+ ],
12642
+ name: "OwnershipTransferred",
12643
+ type: "event"
12644
+ },
12645
+ {
12646
+ anonymous: false,
12647
+ inputs: [
12648
+ {
12649
+ indexed: false,
12650
+ internalType: "address",
12651
+ name: "sender",
12652
+ type: "address"
12653
+ },
12654
+ {
12655
+ indexed: false,
12656
+ internalType: "uint256",
12657
+ name: "inputAmount",
12658
+ type: "uint256"
12659
+ },
12660
+ {
12661
+ indexed: false,
12662
+ internalType: "address",
12663
+ name: "inputToken",
12664
+ type: "address"
12665
+ },
12666
+ {
12667
+ indexed: false,
12668
+ internalType: "uint256",
12669
+ name: "amountOut",
12670
+ type: "uint256"
12671
+ },
12672
+ {
12673
+ indexed: false,
12674
+ internalType: "address",
12675
+ name: "outputToken",
12676
+ type: "address"
12677
+ },
12678
+ {
12679
+ indexed: false,
12680
+ internalType: "int256",
12681
+ name: "slippage",
12682
+ type: "int256"
12683
+ },
12684
+ {
12685
+ indexed: false,
12686
+ internalType: "uint64",
12687
+ name: "referralCode",
12688
+ type: "uint64"
12689
+ },
12690
+ {
12691
+ indexed: false,
12692
+ internalType: "uint64",
12693
+ name: "referralFee",
12694
+ type: "uint64"
12695
+ },
12696
+ {
12697
+ indexed: false,
12698
+ internalType: "address",
12699
+ name: "referralFeeRecipient",
12700
+ type: "address"
12701
+ }
12702
+ ],
12703
+ name: "Swap",
12704
+ type: "event"
12705
+ },
12706
+ {
12707
+ anonymous: false,
12708
+ inputs: [
12709
+ {
12710
+ indexed: false,
12711
+ internalType: "address",
12712
+ name: "sender",
12713
+ type: "address"
12714
+ },
12715
+ {
12716
+ indexed: false,
12717
+ internalType: "uint256[]",
12718
+ name: "amountsIn",
12719
+ type: "uint256[]"
12720
+ },
12721
+ {
12722
+ indexed: false,
12723
+ internalType: "address[]",
12724
+ name: "tokensIn",
12725
+ type: "address[]"
12726
+ },
12727
+ {
12728
+ indexed: false,
12729
+ internalType: "uint256[]",
12730
+ name: "amountsOut",
12731
+ type: "uint256[]"
12732
+ },
12733
+ {
12734
+ indexed: false,
12735
+ internalType: "address[]",
12736
+ name: "tokensOut",
12737
+ type: "address[]"
12738
+ },
12739
+ {
12740
+ indexed: false,
12741
+ internalType: "int256[]",
12742
+ name: "slippage",
12743
+ type: "int256[]"
12744
+ },
12745
+ {
12746
+ indexed: false,
12747
+ internalType: "uint64",
12748
+ name: "referralCode",
12749
+ type: "uint64"
12750
+ },
12751
+ {
12752
+ indexed: false,
12753
+ internalType: "uint64",
12754
+ name: "referralFee",
12755
+ type: "uint64"
12756
+ },
12757
+ {
12758
+ indexed: false,
12759
+ internalType: "address",
12760
+ name: "referralFeeRecipient",
12761
+ type: "address"
12762
+ }
12763
+ ],
12764
+ name: "SwapMulti",
12765
+ type: "event"
12766
+ },
12767
+ {
12768
+ inputs: [
12769
+ ],
12770
+ name: "FEE_DENOM",
12771
+ outputs: [
12772
+ {
12773
+ internalType: "uint256",
12774
+ name: "",
12775
+ type: "uint256"
12776
+ }
12777
+ ],
12778
+ stateMutability: "view",
12779
+ type: "function"
12780
+ },
12781
+ {
12782
+ inputs: [
12783
+ ],
12784
+ name: "acceptOwnership",
12785
+ outputs: [
12786
+ ],
12787
+ stateMutability: "nonpayable",
12788
+ type: "function"
12789
+ },
12790
+ {
12791
+ inputs: [
12792
+ {
12793
+ internalType: "uint256",
12794
+ name: "",
12795
+ type: "uint256"
12796
+ }
12797
+ ],
12798
+ name: "addressList",
12799
+ outputs: [
12800
+ {
12801
+ internalType: "address",
12802
+ name: "",
12803
+ type: "address"
12804
+ }
12805
+ ],
12806
+ stateMutability: "view",
12807
+ type: "function"
12808
+ },
12809
+ {
12810
+ inputs: [
12811
+ {
12812
+ internalType: "address",
12813
+ name: "account",
12814
+ type: "address"
12815
+ }
12816
+ ],
12817
+ name: "changeLiquidatorAddress",
12818
+ outputs: [
12819
+ ],
12820
+ stateMutability: "nonpayable",
12821
+ type: "function"
12822
+ },
12823
+ {
12824
+ inputs: [
12825
+ ],
12826
+ name: "liquidatorAddress",
12827
+ outputs: [
12828
+ {
12829
+ internalType: "address",
12830
+ name: "",
12831
+ type: "address"
12832
+ }
12833
+ ],
12834
+ stateMutability: "view",
12835
+ type: "function"
12836
+ },
12837
+ {
12838
+ inputs: [
12839
+ ],
12840
+ name: "owner",
12841
+ outputs: [
12842
+ {
12843
+ internalType: "address",
12844
+ name: "",
12845
+ type: "address"
12846
+ }
12847
+ ],
12848
+ stateMutability: "view",
12849
+ type: "function"
12850
+ },
12851
+ {
12852
+ inputs: [
12853
+ ],
12854
+ name: "pendingOwner",
12855
+ outputs: [
12856
+ {
12857
+ internalType: "address",
12858
+ name: "",
12859
+ type: "address"
12860
+ }
12861
+ ],
12862
+ stateMutability: "view",
12863
+ type: "function"
12864
+ },
12865
+ {
12866
+ inputs: [
12867
+ ],
12868
+ name: "renounceOwnership",
12869
+ outputs: [
12870
+ ],
12871
+ stateMutability: "nonpayable",
12872
+ type: "function"
12873
+ },
12874
+ {
12875
+ inputs: [
12876
+ {
12877
+ components: [
12878
+ {
12879
+ internalType: "address",
12880
+ name: "inputToken",
12881
+ type: "address"
12882
+ },
12883
+ {
12884
+ internalType: "uint256",
12885
+ name: "inputAmount",
12886
+ type: "uint256"
12887
+ },
12888
+ {
12889
+ internalType: "address",
12890
+ name: "inputReceiver",
12891
+ type: "address"
12892
+ },
12893
+ {
12894
+ internalType: "address",
12895
+ name: "outputToken",
12896
+ type: "address"
12897
+ },
12898
+ {
12899
+ internalType: "uint256",
12900
+ name: "outputQuote",
12901
+ type: "uint256"
12902
+ },
12903
+ {
12904
+ internalType: "uint256",
12905
+ name: "outputMin",
12906
+ type: "uint256"
12907
+ },
12908
+ {
12909
+ internalType: "address",
12910
+ name: "outputReceiver",
12911
+ type: "address"
12912
+ }
12913
+ ],
12914
+ internalType: "struct IOdosRouterV3.swapTokenInfo",
12915
+ name: "tokenInfo",
12916
+ type: "tuple"
12917
+ },
12918
+ {
12919
+ internalType: "bytes",
12920
+ name: "pathDefinition",
12921
+ type: "bytes"
12922
+ },
12923
+ {
12924
+ internalType: "address",
12925
+ name: "executor",
12926
+ type: "address"
12927
+ },
12928
+ {
12929
+ components: [
12930
+ {
12931
+ internalType: "uint64",
12932
+ name: "code",
12933
+ type: "uint64"
12934
+ },
12935
+ {
12936
+ internalType: "uint64",
12937
+ name: "fee",
12938
+ type: "uint64"
12939
+ },
12940
+ {
12941
+ internalType: "address",
12942
+ name: "feeRecipient",
12943
+ type: "address"
12944
+ }
12945
+ ],
12946
+ internalType: "struct IOdosRouterV3.swapReferralInfo",
12947
+ name: "referralInfo",
12948
+ type: "tuple"
12949
+ }
12950
+ ],
12951
+ name: "swap",
12952
+ outputs: [
12953
+ {
12954
+ internalType: "uint256",
12955
+ name: "amountOut",
12956
+ type: "uint256"
12957
+ }
12958
+ ],
12959
+ stateMutability: "payable",
12960
+ type: "function"
12961
+ },
12962
+ {
12963
+ inputs: [
12964
+ ],
12965
+ name: "swapCompact",
12966
+ outputs: [
12967
+ {
12968
+ internalType: "uint256",
12969
+ name: "",
12970
+ type: "uint256"
12971
+ }
12972
+ ],
12973
+ stateMutability: "payable",
12974
+ type: "function"
12975
+ },
12976
+ {
12977
+ inputs: [
12978
+ {
12979
+ components: [
12980
+ {
12981
+ internalType: "address",
12982
+ name: "tokenAddress",
12983
+ type: "address"
12984
+ },
12985
+ {
12986
+ internalType: "uint256",
12987
+ name: "amountIn",
12988
+ type: "uint256"
12989
+ },
12990
+ {
12991
+ internalType: "address",
12992
+ name: "receiver",
12993
+ type: "address"
12994
+ }
12995
+ ],
12996
+ internalType: "struct IOdosRouterV3.inputTokenInfo[]",
12997
+ name: "inputs",
12998
+ type: "tuple[]"
12999
+ },
13000
+ {
13001
+ components: [
13002
+ {
13003
+ internalType: "address",
13004
+ name: "tokenAddress",
13005
+ type: "address"
13006
+ },
13007
+ {
13008
+ internalType: "uint256",
13009
+ name: "amountQuote",
13010
+ type: "uint256"
13011
+ },
13012
+ {
13013
+ internalType: "uint256",
13014
+ name: "amountMin",
13015
+ type: "uint256"
13016
+ },
13017
+ {
13018
+ internalType: "address",
13019
+ name: "receiver",
13020
+ type: "address"
13021
+ }
13022
+ ],
13023
+ internalType: "struct IOdosRouterV3.outputTokenInfo[]",
13024
+ name: "outputs",
13025
+ type: "tuple[]"
13026
+ },
13027
+ {
13028
+ internalType: "bytes",
13029
+ name: "pathDefinition",
13030
+ type: "bytes"
13031
+ },
13032
+ {
13033
+ internalType: "address",
13034
+ name: "executor",
13035
+ type: "address"
13036
+ },
13037
+ {
13038
+ components: [
13039
+ {
13040
+ internalType: "uint64",
13041
+ name: "code",
13042
+ type: "uint64"
13043
+ },
13044
+ {
13045
+ internalType: "uint64",
13046
+ name: "fee",
13047
+ type: "uint64"
13048
+ },
13049
+ {
13050
+ internalType: "address",
13051
+ name: "feeRecipient",
13052
+ type: "address"
13053
+ }
13054
+ ],
13055
+ internalType: "struct IOdosRouterV3.swapReferralInfo",
13056
+ name: "referralInfo",
13057
+ type: "tuple"
13058
+ }
13059
+ ],
13060
+ name: "swapMulti",
13061
+ outputs: [
13062
+ {
13063
+ internalType: "uint256[]",
13064
+ name: "amountsOut",
13065
+ type: "uint256[]"
13066
+ }
13067
+ ],
13068
+ stateMutability: "payable",
13069
+ type: "function"
13070
+ },
13071
+ {
13072
+ inputs: [
13073
+ ],
13074
+ name: "swapMultiCompact",
13075
+ outputs: [
13076
+ {
13077
+ internalType: "uint256[]",
13078
+ name: "amountsOut",
13079
+ type: "uint256[]"
13080
+ }
13081
+ ],
13082
+ stateMutability: "payable",
13083
+ type: "function"
13084
+ },
13085
+ {
13086
+ inputs: [
13087
+ {
13088
+ components: [
13089
+ {
13090
+ internalType: "address",
13091
+ name: "contractAddress",
13092
+ type: "address"
13093
+ },
13094
+ {
13095
+ internalType: "uint256",
13096
+ name: "nonce",
13097
+ type: "uint256"
13098
+ },
13099
+ {
13100
+ internalType: "uint256",
13101
+ name: "deadline",
13102
+ type: "uint256"
13103
+ },
13104
+ {
13105
+ internalType: "bytes",
13106
+ name: "signature",
13107
+ type: "bytes"
13108
+ }
13109
+ ],
13110
+ internalType: "struct IOdosRouterV3.permit2Info",
13111
+ name: "permit2",
13112
+ type: "tuple"
13113
+ },
13114
+ {
13115
+ components: [
13116
+ {
13117
+ internalType: "address",
13118
+ name: "tokenAddress",
13119
+ type: "address"
13120
+ },
13121
+ {
13122
+ internalType: "uint256",
13123
+ name: "amountIn",
13124
+ type: "uint256"
13125
+ },
13126
+ {
13127
+ internalType: "address",
13128
+ name: "receiver",
13129
+ type: "address"
13130
+ }
13131
+ ],
13132
+ internalType: "struct IOdosRouterV3.inputTokenInfo[]",
13133
+ name: "inputs",
13134
+ type: "tuple[]"
13135
+ },
13136
+ {
13137
+ components: [
13138
+ {
13139
+ internalType: "address",
13140
+ name: "tokenAddress",
13141
+ type: "address"
13142
+ },
13143
+ {
13144
+ internalType: "uint256",
13145
+ name: "amountQuote",
13146
+ type: "uint256"
13147
+ },
13148
+ {
13149
+ internalType: "uint256",
13150
+ name: "amountMin",
13151
+ type: "uint256"
13152
+ },
13153
+ {
13154
+ internalType: "address",
13155
+ name: "receiver",
13156
+ type: "address"
13157
+ }
13158
+ ],
13159
+ internalType: "struct IOdosRouterV3.outputTokenInfo[]",
13160
+ name: "outputs",
13161
+ type: "tuple[]"
13162
+ },
13163
+ {
13164
+ internalType: "bytes",
13165
+ name: "pathDefinition",
13166
+ type: "bytes"
13167
+ },
13168
+ {
13169
+ internalType: "address",
13170
+ name: "executor",
13171
+ type: "address"
13172
+ },
13173
+ {
13174
+ components: [
13175
+ {
13176
+ internalType: "uint64",
13177
+ name: "code",
13178
+ type: "uint64"
13179
+ },
13180
+ {
13181
+ internalType: "uint64",
13182
+ name: "fee",
13183
+ type: "uint64"
13184
+ },
13185
+ {
13186
+ internalType: "address",
13187
+ name: "feeRecipient",
13188
+ type: "address"
13189
+ }
13190
+ ],
13191
+ internalType: "struct IOdosRouterV3.swapReferralInfo",
13192
+ name: "referralInfo",
13193
+ type: "tuple"
13194
+ }
13195
+ ],
13196
+ name: "swapMultiPermit2",
13197
+ outputs: [
13198
+ {
13199
+ internalType: "uint256[]",
13200
+ name: "amountsOut",
13201
+ type: "uint256[]"
13202
+ }
13203
+ ],
13204
+ stateMutability: "payable",
13205
+ type: "function"
13206
+ },
13207
+ {
13208
+ inputs: [
13209
+ {
13210
+ components: [
13211
+ {
13212
+ internalType: "address",
13213
+ name: "contractAddress",
13214
+ type: "address"
13215
+ },
13216
+ {
13217
+ internalType: "uint256",
13218
+ name: "nonce",
13219
+ type: "uint256"
13220
+ },
13221
+ {
13222
+ internalType: "uint256",
13223
+ name: "deadline",
13224
+ type: "uint256"
13225
+ },
13226
+ {
13227
+ internalType: "bytes",
13228
+ name: "signature",
13229
+ type: "bytes"
13230
+ }
13231
+ ],
13232
+ internalType: "struct IOdosRouterV3.permit2Info",
13233
+ name: "permit2",
13234
+ type: "tuple"
13235
+ },
13236
+ {
13237
+ components: [
13238
+ {
13239
+ internalType: "address",
13240
+ name: "tokenAddress",
13241
+ type: "address"
13242
+ },
13243
+ {
13244
+ internalType: "uint256",
13245
+ name: "amountIn",
13246
+ type: "uint256"
13247
+ },
13248
+ {
13249
+ internalType: "address",
13250
+ name: "receiver",
13251
+ type: "address"
13252
+ }
13253
+ ],
13254
+ internalType: "struct IOdosRouterV3.inputTokenInfo[]",
13255
+ name: "inputs",
13256
+ type: "tuple[]"
13257
+ },
13258
+ {
13259
+ components: [
13260
+ {
13261
+ internalType: "address",
13262
+ name: "tokenAddress",
13263
+ type: "address"
13264
+ },
13265
+ {
13266
+ internalType: "uint256",
13267
+ name: "amountQuote",
13268
+ type: "uint256"
13269
+ },
13270
+ {
13271
+ internalType: "uint256",
13272
+ name: "amountMin",
13273
+ type: "uint256"
13274
+ },
13275
+ {
13276
+ internalType: "address",
13277
+ name: "receiver",
13278
+ type: "address"
13279
+ }
13280
+ ],
13281
+ internalType: "struct IOdosRouterV3.outputTokenInfo[]",
13282
+ name: "outputs",
13283
+ type: "tuple[]"
13284
+ },
13285
+ {
13286
+ internalType: "bytes",
13287
+ name: "pathDefinition",
13288
+ type: "bytes"
13289
+ },
13290
+ {
13291
+ internalType: "address",
13292
+ name: "executor",
13293
+ type: "address"
13294
+ },
13295
+ {
13296
+ components: [
13297
+ {
13298
+ internalType: "uint64",
13299
+ name: "code",
13300
+ type: "uint64"
13301
+ },
13302
+ {
13303
+ internalType: "uint64",
13304
+ name: "fee",
13305
+ type: "uint64"
13306
+ },
13307
+ {
13308
+ internalType: "address",
13309
+ name: "feeRecipient",
13310
+ type: "address"
13311
+ }
13312
+ ],
13313
+ internalType: "struct IOdosRouterV3.swapReferralInfo",
13314
+ name: "referralInfo",
13315
+ type: "tuple"
13316
+ },
13317
+ {
13318
+ internalType: "address",
13319
+ name: "hookTarget",
13320
+ type: "address"
13321
+ },
13322
+ {
13323
+ internalType: "bytes",
13324
+ name: "hookData",
13325
+ type: "bytes"
13326
+ }
13327
+ ],
13328
+ name: "swapMultiPermit2WithHook",
13329
+ outputs: [
13330
+ {
13331
+ internalType: "uint256[]",
13332
+ name: "amountsOut",
13333
+ type: "uint256[]"
13334
+ }
13335
+ ],
13336
+ stateMutability: "payable",
13337
+ type: "function"
13338
+ },
13339
+ {
13340
+ inputs: [
13341
+ {
13342
+ components: [
13343
+ {
13344
+ internalType: "address",
13345
+ name: "tokenAddress",
13346
+ type: "address"
13347
+ },
13348
+ {
13349
+ internalType: "uint256",
13350
+ name: "amountIn",
13351
+ type: "uint256"
13352
+ },
13353
+ {
13354
+ internalType: "address",
13355
+ name: "receiver",
13356
+ type: "address"
13357
+ }
13358
+ ],
13359
+ internalType: "struct IOdosRouterV3.inputTokenInfo[]",
13360
+ name: "inputs",
13361
+ type: "tuple[]"
13362
+ },
13363
+ {
13364
+ components: [
13365
+ {
13366
+ internalType: "address",
13367
+ name: "tokenAddress",
13368
+ type: "address"
13369
+ },
13370
+ {
13371
+ internalType: "uint256",
13372
+ name: "amountQuote",
13373
+ type: "uint256"
13374
+ },
13375
+ {
13376
+ internalType: "uint256",
13377
+ name: "amountMin",
13378
+ type: "uint256"
13379
+ },
13380
+ {
13381
+ internalType: "address",
13382
+ name: "receiver",
13383
+ type: "address"
13384
+ }
13385
+ ],
13386
+ internalType: "struct IOdosRouterV3.outputTokenInfo[]",
13387
+ name: "outputs",
13388
+ type: "tuple[]"
13389
+ },
13390
+ {
13391
+ internalType: "bytes",
13392
+ name: "pathDefinition",
13393
+ type: "bytes"
13394
+ },
13395
+ {
13396
+ internalType: "address",
13397
+ name: "executor",
13398
+ type: "address"
13399
+ },
13400
+ {
13401
+ components: [
13402
+ {
13403
+ internalType: "uint64",
13404
+ name: "code",
13405
+ type: "uint64"
13406
+ },
13407
+ {
13408
+ internalType: "uint64",
13409
+ name: "fee",
13410
+ type: "uint64"
13411
+ },
13412
+ {
13413
+ internalType: "address",
13414
+ name: "feeRecipient",
13415
+ type: "address"
13416
+ }
13417
+ ],
13418
+ internalType: "struct IOdosRouterV3.swapReferralInfo",
13419
+ name: "referralInfo",
13420
+ type: "tuple"
13421
+ },
13422
+ {
13423
+ internalType: "address",
13424
+ name: "hookTarget",
13425
+ type: "address"
13426
+ },
13427
+ {
13428
+ internalType: "bytes",
13429
+ name: "hookData",
13430
+ type: "bytes"
13431
+ }
13432
+ ],
13433
+ name: "swapMultiWithHook",
13434
+ outputs: [
13435
+ {
13436
+ internalType: "uint256[]",
13437
+ name: "amountsOut",
13438
+ type: "uint256[]"
13439
+ }
13440
+ ],
13441
+ stateMutability: "payable",
13442
+ type: "function"
13443
+ },
13444
+ {
13445
+ inputs: [
13446
+ {
13447
+ components: [
13448
+ {
13449
+ internalType: "address",
13450
+ name: "contractAddress",
13451
+ type: "address"
13452
+ },
13453
+ {
13454
+ internalType: "uint256",
13455
+ name: "nonce",
13456
+ type: "uint256"
13457
+ },
13458
+ {
13459
+ internalType: "uint256",
13460
+ name: "deadline",
13461
+ type: "uint256"
13462
+ },
13463
+ {
13464
+ internalType: "bytes",
13465
+ name: "signature",
13466
+ type: "bytes"
13467
+ }
13468
+ ],
13469
+ internalType: "struct IOdosRouterV3.permit2Info",
13470
+ name: "permit2",
13471
+ type: "tuple"
13472
+ },
13473
+ {
13474
+ components: [
13475
+ {
13476
+ internalType: "address",
13477
+ name: "inputToken",
13478
+ type: "address"
13479
+ },
13480
+ {
13481
+ internalType: "uint256",
13482
+ name: "inputAmount",
13483
+ type: "uint256"
13484
+ },
13485
+ {
13486
+ internalType: "address",
13487
+ name: "inputReceiver",
13488
+ type: "address"
13489
+ },
13490
+ {
13491
+ internalType: "address",
13492
+ name: "outputToken",
13493
+ type: "address"
13494
+ },
13495
+ {
13496
+ internalType: "uint256",
13497
+ name: "outputQuote",
13498
+ type: "uint256"
13499
+ },
13500
+ {
13501
+ internalType: "uint256",
13502
+ name: "outputMin",
13503
+ type: "uint256"
13504
+ },
13505
+ {
13506
+ internalType: "address",
13507
+ name: "outputReceiver",
13508
+ type: "address"
13509
+ }
13510
+ ],
13511
+ internalType: "struct IOdosRouterV3.swapTokenInfo",
13512
+ name: "tokenInfo",
13513
+ type: "tuple"
13514
+ },
13515
+ {
13516
+ internalType: "bytes",
13517
+ name: "pathDefinition",
13518
+ type: "bytes"
13519
+ },
13520
+ {
13521
+ internalType: "address",
13522
+ name: "executor",
13523
+ type: "address"
13524
+ },
13525
+ {
13526
+ components: [
13527
+ {
13528
+ internalType: "uint64",
13529
+ name: "code",
13530
+ type: "uint64"
13531
+ },
13532
+ {
13533
+ internalType: "uint64",
13534
+ name: "fee",
13535
+ type: "uint64"
13536
+ },
13537
+ {
13538
+ internalType: "address",
13539
+ name: "feeRecipient",
13540
+ type: "address"
13541
+ }
13542
+ ],
13543
+ internalType: "struct IOdosRouterV3.swapReferralInfo",
13544
+ name: "referralInfo",
13545
+ type: "tuple"
13546
+ }
13547
+ ],
13548
+ name: "swapPermit2",
13549
+ outputs: [
13550
+ {
13551
+ internalType: "uint256",
13552
+ name: "amountOut",
13553
+ type: "uint256"
13554
+ }
13555
+ ],
13556
+ stateMutability: "nonpayable",
13557
+ type: "function"
13558
+ },
13559
+ {
13560
+ inputs: [
13561
+ {
13562
+ components: [
13563
+ {
13564
+ internalType: "address",
13565
+ name: "contractAddress",
13566
+ type: "address"
13567
+ },
13568
+ {
13569
+ internalType: "uint256",
13570
+ name: "nonce",
13571
+ type: "uint256"
13572
+ },
13573
+ {
13574
+ internalType: "uint256",
13575
+ name: "deadline",
13576
+ type: "uint256"
13577
+ },
13578
+ {
13579
+ internalType: "bytes",
13580
+ name: "signature",
13581
+ type: "bytes"
13582
+ }
13583
+ ],
13584
+ internalType: "struct IOdosRouterV3.permit2Info",
13585
+ name: "permit2",
13586
+ type: "tuple"
13587
+ },
13588
+ {
13589
+ components: [
13590
+ {
13591
+ internalType: "address",
13592
+ name: "inputToken",
13593
+ type: "address"
13594
+ },
13595
+ {
13596
+ internalType: "uint256",
13597
+ name: "inputAmount",
13598
+ type: "uint256"
13599
+ },
13600
+ {
13601
+ internalType: "address",
13602
+ name: "inputReceiver",
13603
+ type: "address"
13604
+ },
13605
+ {
13606
+ internalType: "address",
13607
+ name: "outputToken",
13608
+ type: "address"
13609
+ },
13610
+ {
13611
+ internalType: "uint256",
13612
+ name: "outputQuote",
13613
+ type: "uint256"
13614
+ },
13615
+ {
13616
+ internalType: "uint256",
13617
+ name: "outputMin",
13618
+ type: "uint256"
13619
+ },
13620
+ {
13621
+ internalType: "address",
13622
+ name: "outputReceiver",
13623
+ type: "address"
13624
+ }
13625
+ ],
13626
+ internalType: "struct IOdosRouterV3.swapTokenInfo",
13627
+ name: "tokenInfo",
13628
+ type: "tuple"
13629
+ },
13630
+ {
13631
+ internalType: "bytes",
13632
+ name: "pathDefinition",
13633
+ type: "bytes"
13634
+ },
13635
+ {
13636
+ internalType: "address",
13637
+ name: "executor",
13638
+ type: "address"
13639
+ },
13640
+ {
13641
+ components: [
13642
+ {
13643
+ internalType: "uint64",
13644
+ name: "code",
13645
+ type: "uint64"
13646
+ },
13647
+ {
13648
+ internalType: "uint64",
13649
+ name: "fee",
13650
+ type: "uint64"
13651
+ },
13652
+ {
13653
+ internalType: "address",
13654
+ name: "feeRecipient",
13655
+ type: "address"
13656
+ }
13657
+ ],
13658
+ internalType: "struct IOdosRouterV3.swapReferralInfo",
13659
+ name: "referralInfo",
13660
+ type: "tuple"
13661
+ },
13662
+ {
13663
+ internalType: "address",
13664
+ name: "hookTarget",
13665
+ type: "address"
13666
+ },
13667
+ {
13668
+ internalType: "bytes",
13669
+ name: "hookData",
13670
+ type: "bytes"
13671
+ }
13672
+ ],
13673
+ name: "swapPermit2WithHook",
13674
+ outputs: [
13675
+ {
13676
+ internalType: "uint256",
13677
+ name: "amountOut",
13678
+ type: "uint256"
13679
+ }
13680
+ ],
13681
+ stateMutability: "nonpayable",
13682
+ type: "function"
13683
+ },
13684
+ {
13685
+ inputs: [
13686
+ {
13687
+ components: [
13688
+ {
13689
+ internalType: "address",
13690
+ name: "tokenAddress",
13691
+ type: "address"
13692
+ },
13693
+ {
13694
+ internalType: "uint256",
13695
+ name: "amountIn",
13696
+ type: "uint256"
13697
+ },
13698
+ {
13699
+ internalType: "address",
13700
+ name: "receiver",
13701
+ type: "address"
13702
+ }
13703
+ ],
13704
+ internalType: "struct IOdosRouterV3.inputTokenInfo[]",
13705
+ name: "inputs",
13706
+ type: "tuple[]"
13707
+ },
13708
+ {
13709
+ components: [
13710
+ {
13711
+ internalType: "address",
13712
+ name: "tokenAddress",
13713
+ type: "address"
13714
+ },
13715
+ {
13716
+ internalType: "uint256",
13717
+ name: "amountQuote",
13718
+ type: "uint256"
13719
+ },
13720
+ {
13721
+ internalType: "uint256",
13722
+ name: "amountMin",
13723
+ type: "uint256"
13724
+ },
13725
+ {
13726
+ internalType: "address",
13727
+ name: "receiver",
13728
+ type: "address"
13729
+ }
13730
+ ],
13731
+ internalType: "struct IOdosRouterV3.outputTokenInfo[]",
13732
+ name: "outputs",
13733
+ type: "tuple[]"
13734
+ },
13735
+ {
13736
+ internalType: "bytes",
13737
+ name: "pathDefinition",
13738
+ type: "bytes"
13739
+ },
13740
+ {
13741
+ internalType: "address",
13742
+ name: "executor",
13743
+ type: "address"
13744
+ }
13745
+ ],
13746
+ name: "swapRouterFunds",
13747
+ outputs: [
13748
+ {
13749
+ internalType: "uint256[]",
13750
+ name: "amountsOut",
13751
+ type: "uint256[]"
13752
+ }
13753
+ ],
13754
+ stateMutability: "nonpayable",
13755
+ type: "function"
13756
+ },
13757
+ {
13758
+ inputs: [
13759
+ {
13760
+ components: [
13761
+ {
13762
+ internalType: "address",
13763
+ name: "inputToken",
13764
+ type: "address"
13765
+ },
13766
+ {
13767
+ internalType: "uint256",
13768
+ name: "inputAmount",
13769
+ type: "uint256"
13770
+ },
13771
+ {
13772
+ internalType: "address",
13773
+ name: "inputReceiver",
13774
+ type: "address"
13775
+ },
13776
+ {
13777
+ internalType: "address",
13778
+ name: "outputToken",
13779
+ type: "address"
13780
+ },
13781
+ {
13782
+ internalType: "uint256",
13783
+ name: "outputQuote",
13784
+ type: "uint256"
13785
+ },
13786
+ {
13787
+ internalType: "uint256",
13788
+ name: "outputMin",
13789
+ type: "uint256"
13790
+ },
13791
+ {
13792
+ internalType: "address",
13793
+ name: "outputReceiver",
13794
+ type: "address"
13795
+ }
13796
+ ],
13797
+ internalType: "struct IOdosRouterV3.swapTokenInfo",
13798
+ name: "tokenInfo",
13799
+ type: "tuple"
13800
+ },
13801
+ {
13802
+ internalType: "bytes",
13803
+ name: "pathDefinition",
13804
+ type: "bytes"
13805
+ },
13806
+ {
13807
+ internalType: "address",
13808
+ name: "executor",
13809
+ type: "address"
13810
+ },
13811
+ {
13812
+ components: [
13813
+ {
13814
+ internalType: "uint64",
13815
+ name: "code",
13816
+ type: "uint64"
13817
+ },
13818
+ {
13819
+ internalType: "uint64",
13820
+ name: "fee",
13821
+ type: "uint64"
13822
+ },
13823
+ {
13824
+ internalType: "address",
13825
+ name: "feeRecipient",
13826
+ type: "address"
13827
+ }
13828
+ ],
13829
+ internalType: "struct IOdosRouterV3.swapReferralInfo",
13830
+ name: "referralInfo",
13831
+ type: "tuple"
13832
+ },
13833
+ {
13834
+ internalType: "address",
13835
+ name: "hookTarget",
13836
+ type: "address"
13837
+ },
13838
+ {
13839
+ internalType: "bytes",
13840
+ name: "hookData",
13841
+ type: "bytes"
13842
+ }
13843
+ ],
13844
+ name: "swapWithHook",
13845
+ outputs: [
13846
+ {
13847
+ internalType: "uint256",
13848
+ name: "amountOut",
13849
+ type: "uint256"
13850
+ }
13851
+ ],
13852
+ stateMutability: "payable",
13853
+ type: "function"
13854
+ },
13855
+ {
13856
+ inputs: [
13857
+ {
13858
+ internalType: "address",
13859
+ name: "newOwner",
13860
+ type: "address"
13861
+ }
13862
+ ],
13863
+ name: "transferOwnership",
13864
+ outputs: [
13865
+ ],
13866
+ stateMutability: "nonpayable",
13867
+ type: "function"
13868
+ },
13869
+ {
13870
+ inputs: [
13871
+ {
13872
+ internalType: "address[]",
13873
+ name: "tokens",
13874
+ type: "address[]"
13875
+ },
13876
+ {
13877
+ internalType: "uint256[]",
13878
+ name: "amounts",
13879
+ type: "uint256[]"
13880
+ },
13881
+ {
13882
+ internalType: "address",
13883
+ name: "dest",
13884
+ type: "address"
13885
+ }
13886
+ ],
13887
+ name: "transferRouterFunds",
13888
+ outputs: [
13889
+ ],
13890
+ stateMutability: "nonpayable",
13891
+ type: "function"
13892
+ },
13893
+ {
13894
+ inputs: [
13895
+ {
13896
+ internalType: "address[]",
13897
+ name: "addresses",
13898
+ type: "address[]"
13899
+ }
13900
+ ],
13901
+ name: "writeAddressList",
13902
+ outputs: [
13903
+ ],
13904
+ stateMutability: "nonpayable",
13905
+ type: "function"
13906
+ },
13907
+ {
13908
+ stateMutability: "payable",
13909
+ type: "receive"
13910
+ }
13911
+ ];
13912
+ var OdosRouterV3Abi = {
13913
+ abi: abi$h
13914
+ };
13915
+
13916
+ var odosBaseUrl = "https://enterprise-api.odos.xyz/sor";
12549
13917
  function getOdosSwapTxData(_x, _x2, _x3, _x4, _x5) {
12550
13918
  return _getOdosSwapTxData.apply(this, arguments);
12551
13919
  }
12552
13920
 
12553
13921
  function _getOdosSwapTxData() {
12554
13922
  _getOdosSwapTxData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(pool, assetFrom, assetTo, amountIn, slippage) {
12555
- var referralCode, quoteParams, quoteResult, assembleParams, assembleResult;
13923
+ var ODOS_API_KEY, referralFeeBips, quoteParams, quoteResult, assembleParams, assembleResult, txData, iface, decodedData, tokenInfo, pathDefinition, executor, referralInfo, FEE_DENOM, correctedFee, factor, correctedOutputQuote, correctedTxData;
12556
13924
  return runtime_1.wrap(function _callee$(_context) {
12557
13925
  while (1) {
12558
13926
  switch (_context.prev = _context.next) {
12559
13927
  case 0:
12560
- referralCode = 0; // Defaults to 0 for unregistered activity.
12561
-
12562
- if (process.env.ODOS_REFERAL_CODE && Number(process.env.ODOS_REFERAL_CODE) > 0) {
12563
- referralCode = Number(process.env.ODOS_REFERAL_CODE);
13928
+ if (process.env.ODOS_API_KEY) {
13929
+ _context.next = 2;
13930
+ break;
12564
13931
  }
12565
13932
 
13933
+ throw new Error("ODOS_API_KEY is not set");
13934
+
13935
+ case 2:
13936
+ ODOS_API_KEY = process.env.ODOS_API_KEY;
13937
+ referralFeeBips = 2; // 2 basis points = 0.02%
13938
+
12566
13939
  quoteParams = {
12567
13940
  chainId: networkChainIdMap[pool.network],
12568
13941
  inputTokens: [{
@@ -12575,40 +13948,88 @@ function _getOdosSwapTxData() {
12575
13948
  }],
12576
13949
  slippageLimitPercent: slippage,
12577
13950
  userAddr: pool.address,
12578
- referralCode: referralCode
13951
+ compact: false,
13952
+ referralFeeRecipient: OdosSwapFeeRecipient[pool.network],
13953
+ referralFee: referralFeeBips // 0.02% fee
13954
+
12579
13955
  };
12580
- _context.prev = 3;
12581
- _context.next = 6;
12582
- return axios.post(odosBaseUrl + "/quote/v2", quoteParams);
13956
+ _context.prev = 5;
13957
+ _context.next = 8;
13958
+ return axios.post(odosBaseUrl + "/quote/v3", quoteParams, {
13959
+ headers: {
13960
+ "Content-Type": "application/json",
13961
+ "x-api-key": ODOS_API_KEY
13962
+ }
13963
+ });
12583
13964
 
12584
- case 6:
13965
+ case 8:
12585
13966
  quoteResult = _context.sent;
12586
13967
  assembleParams = {
12587
13968
  pathId: quoteResult.data.pathId,
12588
13969
  userAddr: pool.address
12589
13970
  };
12590
- _context.next = 10;
12591
- return axios.post(odosBaseUrl + "/assemble", assembleParams);
13971
+ _context.next = 12;
13972
+ return axios.post(odosBaseUrl + "/assemble", assembleParams, {
13973
+ headers: {
13974
+ "Content-Type": "application/json",
13975
+ "x-api-key": ODOS_API_KEY
13976
+ }
13977
+ });
12592
13978
 
12593
- case 10:
13979
+ case 12:
12594
13980
  assembleResult = _context.sent;
13981
+ txData = assembleResult.data.transaction.data; // Decode the transaction data
13982
+
13983
+ iface = new ethers.utils.Interface(OdosRouterV3Abi.abi);
13984
+ decodedData = iface.parseTransaction({
13985
+ data: txData
13986
+ });
13987
+ tokenInfo = decodedData.args[0];
13988
+ pathDefinition = decodedData.args[1];
13989
+ executor = decodedData.args[2];
13990
+ referralInfo = decodedData.args[3];
13991
+
13992
+ if (!referralInfo.fee.lte(ethers.BigNumber.from(referralFeeBips * 1e18 / 10000))) {
13993
+ _context.next = 22;
13994
+ break;
13995
+ }
13996
+
12595
13997
  return _context.abrupt("return", {
12596
13998
  swapTxData: assembleResult.data.transaction.data,
12597
13999
  minAmountOut: assembleResult.data.outputTokens[0].amount
12598
14000
  });
12599
14001
 
12600
- case 14:
12601
- _context.prev = 14;
12602
- _context.t0 = _context["catch"](3);
14002
+ case 22:
14003
+ FEE_DENOM = new BigNumber(1e18);
14004
+ correctedFee = new BigNumber(referralFeeBips * 1e18 / 10000);
14005
+ factor = 1.1;
14006
+ correctedOutputQuote = new BigNumber(tokenInfo.outputQuote.toString()).times(FEE_DENOM.minus(correctedFee).div(FEE_DENOM.minus(referralInfo.fee.toString()))).times(factor); // example referralInfo.fee could be 0.0005 * 1e18 = 500000000000000, which is 0.05%
14007
+ // Create corrected referral info
14008
+
14009
+ correctedTxData = iface.encodeFunctionData(decodedData.name, [_extends({}, tokenInfo, {
14010
+ outputQuote: correctedOutputQuote.toFixed(0)
14011
+ }), pathDefinition, executor, {
14012
+ code: referralInfo.code,
14013
+ fee: correctedFee.toFixed(0),
14014
+ feeRecipient: referralInfo.feeRecipient
14015
+ }]);
14016
+ return _context.abrupt("return", {
14017
+ swapTxData: correctedTxData,
14018
+ minAmountOut: assembleResult.data.outputTokens[0].amount
14019
+ });
14020
+
14021
+ case 30:
14022
+ _context.prev = 30;
14023
+ _context.t0 = _context["catch"](5);
12603
14024
  console.error("Error in Odos API request:", _context.t0);
12604
14025
  throw new ApiError("Swap api request of Odos failed");
12605
14026
 
12606
- case 18:
14027
+ case 34:
12607
14028
  case "end":
12608
14029
  return _context.stop();
12609
14030
  }
12610
14031
  }
12611
- }, _callee, null, [[3, 14]]);
14032
+ }, _callee, null, [[5, 30]]);
12612
14033
  }));
12613
14034
  return _getOdosSwapTxData.apply(this, arguments);
12614
14035
  }
@@ -12616,18 +14037,36 @@ function _getOdosSwapTxData() {
12616
14037
  var SWAPPER_ADDERSS = "0x4F754e0F0924afD74980886b0B479Fa1D7C58D0D";
12617
14038
  var getSwapDataViaOdos = /*#__PURE__*/function () {
12618
14039
  var _ref2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(_ref) {
12619
- var srcAsset, srcAmount, dstAsset, chainId, from, slippage, referralCode, quoteParams, quoteResult, assembleParams, assembleResult;
14040
+ var srcAsset, srcAmount, dstAsset, chainId, from, slippage, ODOS_API_KEY, network, referralFeeBips, quoteParams, quoteResult, assembleParams, assembleResult, txData, iface, decodedData, tokenInfo, pathDefinition, executor, referralInfo, FEE_DENOM, correctedFee, factor, correctedOutputQuote, correctedTxData;
12620
14041
  return runtime_1.wrap(function _callee$(_context) {
12621
14042
  while (1) {
12622
14043
  switch (_context.prev = _context.next) {
12623
14044
  case 0:
12624
14045
  srcAsset = _ref.srcAsset, srcAmount = _ref.srcAmount, dstAsset = _ref.dstAsset, chainId = _ref.chainId, from = _ref.from, slippage = _ref.slippage;
12625
- referralCode = 0; // Defaults to 0 for unregistered activity.
12626
14046
 
12627
- if (process.env.ODOS_REFERAL_CODE && Number(process.env.ODOS_REFERAL_CODE) > 0) {
12628
- referralCode = Number(process.env.ODOS_REFERAL_CODE);
14047
+ if (process.env.ODOS_API_KEY) {
14048
+ _context.next = 3;
14049
+ break;
14050
+ }
14051
+
14052
+ throw new Error("ODOS_API_KEY is not set");
14053
+
14054
+ case 3:
14055
+ ODOS_API_KEY = process.env.ODOS_API_KEY;
14056
+ network = Object.keys(networkChainIdMap).find(function (key) {
14057
+ return networkChainIdMap[key] === chainId;
14058
+ });
14059
+
14060
+ if (network) {
14061
+ _context.next = 7;
14062
+ break;
12629
14063
  }
12630
14064
 
14065
+ throw new Error("Unsupported chainId: " + chainId);
14066
+
14067
+ case 7:
14068
+ referralFeeBips = 2; // 2 basis points = 0.02%
14069
+
12631
14070
  quoteParams = {
12632
14071
  chainId: chainId,
12633
14072
  inputTokens: [{
@@ -12640,37 +14079,81 @@ var getSwapDataViaOdos = /*#__PURE__*/function () {
12640
14079
  }],
12641
14080
  slippageLimitPercent: new BigNumber(slippage).div(100).toString(),
12642
14081
  userAddr: from,
12643
- referralCode: referralCode
14082
+ referralFee: referralFeeBips,
14083
+ referralFeeRecipient: OdosSwapFeeRecipient[network],
14084
+ compact: false
12644
14085
  };
12645
- _context.prev = 4;
12646
- _context.next = 7;
12647
- return axios.post(odosBaseUrl + "/quote/v2", quoteParams);
14086
+ _context.prev = 9;
14087
+ _context.next = 12;
14088
+ return axios.post(odosBaseUrl + "/quote/v3", quoteParams, {
14089
+ headers: {
14090
+ "Content-Type": "application/json",
14091
+ "x-api-key": ODOS_API_KEY
14092
+ }
14093
+ });
12648
14094
 
12649
- case 7:
14095
+ case 12:
12650
14096
  quoteResult = _context.sent;
12651
14097
  assembleParams = {
12652
14098
  pathId: quoteResult.data.pathId,
12653
14099
  userAddr: from
12654
14100
  };
12655
- _context.next = 11;
12656
- return axios.post(odosBaseUrl + "/assemble", assembleParams);
14101
+ _context.next = 16;
14102
+ return axios.post(odosBaseUrl + "/assemble", assembleParams, {
14103
+ headers: {
14104
+ "Content-Type": "application/json",
14105
+ "x-api-key": ODOS_API_KEY
14106
+ }
14107
+ });
12657
14108
 
12658
- case 11:
14109
+ case 16:
12659
14110
  assembleResult = _context.sent;
12660
- return _context.abrupt("return", assembleResult.data.transaction.data);
14111
+ txData = assembleResult.data.transaction.data; // Decode the transaction data
12661
14112
 
12662
- case 15:
12663
- _context.prev = 15;
12664
- _context.t0 = _context["catch"](4);
14113
+ iface = new ethers.utils.Interface(OdosRouterV3Abi.abi);
14114
+ decodedData = iface.parseTransaction({
14115
+ data: txData
14116
+ });
14117
+ tokenInfo = decodedData.args[0];
14118
+ pathDefinition = decodedData.args[1];
14119
+ executor = decodedData.args[2];
14120
+ referralInfo = decodedData.args[3];
14121
+
14122
+ if (!referralInfo.fee.lte(ethers.BigNumber.from(referralFeeBips * 1e18 / 10000))) {
14123
+ _context.next = 26;
14124
+ break;
14125
+ }
14126
+
14127
+ return _context.abrupt("return", txData);
14128
+
14129
+ case 26:
14130
+ FEE_DENOM = new BigNumber(1e18);
14131
+ correctedFee = new BigNumber(referralFeeBips * 1e18 / 10000);
14132
+ factor = 1.1;
14133
+ correctedOutputQuote = new BigNumber(tokenInfo.outputQuote.toString()).times(FEE_DENOM.minus(correctedFee).div(FEE_DENOM.minus(referralInfo.fee.toString()))).times(factor); // example referralInfo.fee could be 0.0005 * 1e18 = 500000000000000, which is 0.05%
14134
+ // Create corrected referral info
14135
+
14136
+ correctedTxData = iface.encodeFunctionData(decodedData.name, [_extends({}, tokenInfo, {
14137
+ outputQuote: correctedOutputQuote.toFixed(0)
14138
+ }), pathDefinition, executor, {
14139
+ code: referralInfo.code,
14140
+ fee: correctedFee.toFixed(0),
14141
+ feeRecipient: referralInfo.feeRecipient
14142
+ }]);
14143
+ return _context.abrupt("return", correctedTxData);
14144
+
14145
+ case 34:
14146
+ _context.prev = 34;
14147
+ _context.t0 = _context["catch"](9);
12665
14148
  console.error("Error in Odos API request:", _context.t0);
12666
14149
  throw new Error("Swap api request of Odos failed");
12667
14150
 
12668
- case 19:
14151
+ case 38:
12669
14152
  case "end":
12670
14153
  return _context.stop();
12671
14154
  }
12672
14155
  }
12673
- }, _callee, null, [[4, 15]]);
14156
+ }, _callee, null, [[9, 34]]);
12674
14157
  }));
12675
14158
 
12676
14159
  return function getSwapDataViaOdos(_x) {
@@ -12726,7 +14209,7 @@ var getAaveAssetWithdrawData = /*#__PURE__*/function () {
12726
14209
  case 0:
12727
14210
  srcData = swapDataParams.srcData, dstData = swapDataParams.dstData;
12728
14211
  srcDataToEncode = [];
12729
- routerKey = ethers.utils.formatBytes32String("ODOS_V2");
14212
+ routerKey = ethers.utils.formatBytes32String("ODOS_V3");
12730
14213
  _loop = /*#__PURE__*/runtime_1.mark(function _loop() {
12731
14214
  var _step$value, asset, amount, swapData;
12732
14215
 
@@ -13074,7 +14557,7 @@ function _getEasySwapperTxData() {
13074
14557
  return _getEasySwapperTxData.apply(this, arguments);
13075
14558
  }
13076
14559
 
13077
- var abi$h = [
14560
+ var abi$i = [
13078
14561
  {
13079
14562
  inputs: [
13080
14563
  {
@@ -14001,10 +15484,10 @@ var abi$h = [
14001
15484
  }
14002
15485
  ];
14003
15486
  var IAaveV3Incentives = {
14004
- abi: abi$h
15487
+ abi: abi$i
14005
15488
  };
14006
15489
 
14007
- var abi$i = [
15490
+ var abi$j = [
14008
15491
  {
14009
15492
  inputs: [
14010
15493
  {
@@ -15753,7 +17236,7 @@ var abi$i = [
15753
17236
  }
15754
17237
  ];
15755
17238
  var ILendingPoolV3 = {
15756
- abi: abi$i
17239
+ abi: abi$j
15757
17240
  };
15758
17241
 
15759
17242
  function getAaveAssetsForUnderlying(_x, _x2, _x3) {
@@ -15824,7 +17307,7 @@ function _getAaveV3ClaimTxData() {
15824
17307
  return _getAaveV3ClaimTxData.apply(this, arguments);
15825
17308
  }
15826
17309
 
15827
- var abi$j = [
17310
+ var abi$k = [
15828
17311
  {
15829
17312
  inputs: [
15830
17313
  {
@@ -16806,7 +18289,7 @@ var abi$j = [
16806
18289
  }
16807
18290
  ];
16808
18291
  var IVelodromeRouter = {
16809
- abi: abi$j
18292
+ abi: abi$k
16810
18293
  };
16811
18294
 
16812
18295
  function getVelodromeAddLiquidityTxData(_x, _x2, _x3, _x4, _x5, _x6) {
@@ -16913,7 +18396,7 @@ function _getClOwner() {
16913
18396
  return _getClOwner.apply(this, arguments);
16914
18397
  }
16915
18398
 
16916
- var abi$k = [
18399
+ var abi$l = [
16917
18400
  {
16918
18401
  inputs: [
16919
18402
  {
@@ -17955,10 +19438,10 @@ var abi$k = [
17955
19438
  }
17956
19439
  ];
17957
19440
  var IVelodromeGaugeV1 = {
17958
- abi: abi$k
19441
+ abi: abi$l
17959
19442
  };
17960
19443
 
17961
- var abi$l = [
19444
+ var abi$m = [
17962
19445
  {
17963
19446
  inputs: [
17964
19447
  {
@@ -18158,10 +19641,10 @@ var abi$l = [
18158
19641
  }
18159
19642
  ];
18160
19643
  var IVelodromeGaugeV2 = {
18161
- abi: abi$l
19644
+ abi: abi$m
18162
19645
  };
18163
19646
 
18164
- var abi$m = [
19647
+ var abi$n = [
18165
19648
  {
18166
19649
  inputs: [
18167
19650
  {
@@ -18332,7 +19815,7 @@ var abi$m = [
18332
19815
  }
18333
19816
  ];
18334
19817
  var IVelodromeCLGauge = {
18335
- abi: abi$m
19818
+ abi: abi$n
18336
19819
  };
18337
19820
 
18338
19821
  function call(_x, _x2, _x3, _x4) {
@@ -18736,7 +20219,7 @@ function _getStrike() {
18736
20219
  return _getStrike.apply(this, arguments);
18737
20220
  }
18738
20221
 
18739
- var abi$n = [
20222
+ var abi$o = [
18740
20223
  {
18741
20224
  inputs: [
18742
20225
  {
@@ -20088,7 +21571,7 @@ var abi$n = [
20088
21571
  }
20089
21572
  ];
20090
21573
  var IOptionMarketWrapper = {
20091
- abi: abi$n
21574
+ abi: abi$o
20092
21575
  };
20093
21576
 
20094
21577
  function getLyraTradeOptionType(isCall, isLong, isCoveredCall) {
@@ -20105,7 +21588,7 @@ function isLong(optionType) {
20105
21588
  return optionType === 0 || optionType === 1;
20106
21589
  }
20107
21590
 
20108
- var abi$o = [
21591
+ var abi$p = [
20109
21592
  {
20110
21593
  inputs: [
20111
21594
  {
@@ -22439,7 +23922,7 @@ var abi$o = [
22439
23922
  }
22440
23923
  ];
22441
23924
  var IOptionToken = {
22442
- abi: abi$o
23925
+ abi: abi$p
22443
23926
  };
22444
23927
 
22445
23928
  function getOptionPositions(_x, _x2) {
@@ -22577,7 +24060,7 @@ function _getLyraOptionTxData() {
22577
24060
  return _getLyraOptionTxData.apply(this, arguments);
22578
24061
  }
22579
24062
 
22580
- var abi$p = [
24063
+ var abi$q = [
22581
24064
  {
22582
24065
  inputs: [
22583
24066
  {
@@ -23122,7 +24605,7 @@ var abi$p = [
23122
24605
  }
23123
24606
  ];
23124
24607
  var ISynthetixFuturesMarketV2 = {
23125
- abi: abi$p
24608
+ abi: abi$q
23126
24609
  };
23127
24610
 
23128
24611
  function getFuturesChangeMarginTxData(amount) {
@@ -23254,7 +24737,7 @@ function _getOneInchSwapTxData() {
23254
24737
  return _getOneInchSwapTxData.apply(this, arguments);
23255
24738
  }
23256
24739
 
23257
- var abi$q = [
24740
+ var abi$r = [
23258
24741
  {
23259
24742
  inputs: [
23260
24743
  {
@@ -23355,7 +24838,7 @@ var abi$q = [
23355
24838
  }
23356
24839
  ];
23357
24840
  var IXRam = {
23358
- abi: abi$q
24841
+ abi: abi$r
23359
24842
  };
23360
24843
 
23361
24844
  /* eslint-disable @typescript-eslint/no-explicit-any */
@@ -27398,7 +28881,7 @@ var getExitExpPTTxData = /*#__PURE__*/function () {
27398
28881
  };
27399
28882
  }();
27400
28883
 
27401
- var abi$r = [
28884
+ var abi$s = [
27402
28885
  {
27403
28886
  anonymous: false,
27404
28887
  inputs: [
@@ -27693,7 +29176,7 @@ var abi$r = [
27693
29176
  }
27694
29177
  ];
27695
29178
  var AssetHandlerAbi = {
27696
- abi: abi$r
29179
+ abi: abi$s
27697
29180
  };
27698
29181
 
27699
29182
  var getSwapWithdrawData = /*#__PURE__*/function () {
@@ -27705,7 +29188,7 @@ var getSwapWithdrawData = /*#__PURE__*/function () {
27705
29188
  switch (_context2.prev = _context2.next) {
27706
29189
  case 0:
27707
29190
  srcData = [];
27708
- routerKey = ethers.utils.formatBytes32String("ODOS_V2"); // const destData
29191
+ routerKey = ethers.utils.formatBytes32String("ODOS_V3"); // const destData
27709
29192
 
27710
29193
  _loop = /*#__PURE__*/runtime_1.mark(function _loop() {
27711
29194
  var _step$value, token, balance, swapData;
@@ -31661,7 +33144,7 @@ var Pool = /*#__PURE__*/function () {
31661
33144
  return Pool;
31662
33145
  }();
31663
33146
 
31664
- var abi$s = [
33147
+ var abi$t = [
31665
33148
  {
31666
33149
  inputs: [
31667
33150
  {
@@ -31885,10 +33368,10 @@ var abi$s = [
31885
33368
  }
31886
33369
  ];
31887
33370
  var UniswapV2Factory = {
31888
- abi: abi$s
33371
+ abi: abi$t
31889
33372
  };
31890
33373
 
31891
- var abi$t = [
33374
+ var abi$u = [
31892
33375
  {
31893
33376
  anonymous: false,
31894
33377
  inputs: [
@@ -32632,7 +34115,7 @@ var evm = {
32632
34115
  }
32633
34116
  };
32634
34117
  var UniswapV2Pair = {
32635
- abi: abi$t,
34118
+ abi: abi$u,
32636
34119
  evm: evm,
32637
34120
  "interface": [
32638
34121
  {
@@ -33363,7 +34846,7 @@ var UniswapV2Pair = {
33363
34846
  ]
33364
34847
  };
33365
34848
 
33366
- var abi$u = [
34849
+ var abi$v = [
33367
34850
  {
33368
34851
  inputs: [
33369
34852
  {
@@ -34558,7 +36041,7 @@ var abi$u = [
34558
36041
  }
34559
36042
  ];
34560
36043
  var IBalancerV2Vault = {
34561
- abi: abi$u
36044
+ abi: abi$v
34562
36045
  };
34563
36046
 
34564
36047
  var Utils = /*#__PURE__*/function () {