@paraswap/dex-lib 4.1.16 → 4.1.17-arena

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/.eslintrc.js +8 -0
  2. package/build/abi/Aave_GSM.json +751 -0
  3. package/build/abi/Balancer.json +257 -0
  4. package/build/abi/BalancerV2.json +1179 -0
  5. package/build/abi/RamsesV2Pool.abi.json +1554 -0
  6. package/build/abi/RamsesV2Quoter.abi.json +274 -0
  7. package/build/abi/USDM.json +807 -0
  8. package/build/abi/UniswapV2Router.json +397 -0
  9. package/build/abi/{wombat/pool.json → angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json} +594 -637
  10. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  11. package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
  12. package/build/abi/curve-v1/CurveTokenV1.json +305 -0
  13. package/build/abi/curve-v1/CurveTokenV2.json +318 -0
  14. package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
  15. package/build/abi/curve-v1/CurveV2Swap.json +700 -0
  16. package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
  17. package/build/abi/curve-v1/FactoryRegistry.json +508 -0
  18. package/build/abi/curve-v1/StableSwapAave.json +1152 -0
  19. package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
  20. package/build/abi/curve-v1/StableSwapCompound.json +814 -0
  21. package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
  22. package/build/abi/curve-v1/StableSwapPax.json +865 -0
  23. package/build/abi/curve-v1/StableSwapSnow.json +900 -0
  24. package/build/abi/curve-v1/StableSwapUSDN.json +1004 -0
  25. package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
  26. package/build/abi/curve-v1/StableSwapY.json +814 -0
  27. package/build/abi/inception/inception-ineth.json +609 -0
  28. package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
  29. package/build/abi/kyberdmm.abi.json +1148 -0
  30. package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
  31. package/build/abi/nerve/nerve-metapool.json +790 -0
  32. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  33. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  34. package/build/dex/aave-v1/aave-v1.js +0 -1
  35. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  36. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  37. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  38. package/build/dex/bebop/websocket-fetcher.js +87 -0
  39. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  40. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  41. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  42. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  43. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  44. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  45. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  46. package/build/dex/idle-dao/scripts.d.ts +9 -0
  47. package/build/dex/idle-dao/scripts.js +552 -0
  48. package/build/dex/idle-dao/scripts.js.map +1 -0
  49. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  50. package/build/dex/inception/inception-event-pool.js +9 -7
  51. package/build/dex/inception/inception-event-pool.js.map +1 -1
  52. package/build/dex/inception/inception-native.d.ts +43 -0
  53. package/build/dex/inception/inception-native.js +131 -0
  54. package/build/dex/inception/inception-native.js.map +1 -0
  55. package/build/dex/inception/inception-pool.d.ts +18 -0
  56. package/build/dex/inception/inception-pool.js +32 -0
  57. package/build/dex/inception/inception-pool.js.map +1 -0
  58. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  59. package/build/dex/inception/inception-price-feed.js +51 -0
  60. package/build/dex/inception/inception-price-feed.js.map +1 -0
  61. package/build/dex/inception/inception.d.ts +6 -6
  62. package/build/dex/inception/inception.js +40 -16
  63. package/build/dex/inception/inception.js.map +1 -1
  64. package/build/dex/inception/utils.d.ts +0 -1
  65. package/build/dex/inception/utils.js +1 -22
  66. package/build/dex/inception/utils.js.map +1 -1
  67. package/build/dex/platypus/platypus.js +3 -17
  68. package/build/dex/platypus/platypus.js.map +1 -1
  69. package/build/dex/swaap-v1/swaap-v1.js +0 -4
  70. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  71. package/build/dex/uniswap-v2/config.js +8 -0
  72. package/build/dex/uniswap-v2/config.js.map +1 -1
  73. package/build/dex/uniswap-v3/config.js +2 -1
  74. package/build/dex/uniswap-v3/config.js.map +1 -1
  75. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  76. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  77. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  78. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  79. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  80. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  81. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  82. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  83. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  84. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  85. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  86. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  87. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  88. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  89. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  90. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  91. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  92. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  93. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  94. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  95. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  96. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  97. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  98. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  99. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  100. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  101. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  102. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  103. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  104. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  105. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  106. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  107. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  108. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  109. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  110. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  111. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  112. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  113. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  114. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  115. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  116. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  117. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  118. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  119. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  120. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  121. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  122. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  123. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  124. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  125. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  126. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  127. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  128. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  129. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  130. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  131. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  132. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  133. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  134. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  135. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  136. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  137. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  138. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  139. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  140. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  141. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  142. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  143. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  144. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  145. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  146. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  147. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  148. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  149. package/package.json +1 -1
  150. package/src/dex/generic-rfq/example-api.test.ts +12 -1
  151. package/src/dex/generic-rfq/generic-rfq-e2e.test.ts +5 -47
  152. package/src/dex/generic-rfq/generic-rfq-local-e2e.test.ts +8 -22
  153. package/src/dex/uniswap-v2/config.ts +9 -0
  154. package/src/dex/uniswap-v2/uniswap-v2-e2e-avalanche.test.ts +105 -1
  155. package/src/dex/uniswap-v3/config.ts +2 -1
  156. package/tests/constants-e2e.ts +7 -53
  157. package/tests/{tenderly-simulation-new.test.ts → tenderly-simulation.test.ts} +2 -2
  158. package/tests/tenderly-simulation.ts +650 -241
  159. package/tests/token-storage-slots.json +166 -0
  160. package/tests/utils-e2e.ts +198 -712
  161. package/tests/v6/utils-e2e-v6.ts +60 -134
  162. package/.vscode/launch.json +0 -53
  163. package/.vscode/settings.json +0 -2
  164. package/.vscode/tasks.json +0 -15
  165. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  166. package/build/abi/uniswap-v4/quoter.abi.json +0 -461
  167. package/build/abi/uniswap-v4/router.abi.json +0 -230
  168. package/build/abi/usual-m-smart-m/usualM.abi.json +0 -483
  169. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  170. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  171. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  172. package/build/dex/bProtocol.d.ts +0 -18
  173. package/build/dex/bProtocol.js +0 -39
  174. package/build/dex/bProtocol.js.map +0 -1
  175. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
  176. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
  177. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
  178. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
  179. package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
  180. package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
  181. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
  182. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
  183. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
  184. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +0 -34
  185. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +0 -406
  186. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +0 -1
  187. package/build/dex/bancor.d.ts +0 -26
  188. package/build/dex/bancor.js +0 -58
  189. package/build/dex/bancor.js.map +0 -1
  190. package/build/dex/compound.d.ts +0 -18
  191. package/build/dex/compound.js +0 -46
  192. package/build/dex/compound.js.map +0 -1
  193. package/build/dex/curve-v2.d.ts +0 -58
  194. package/build/dex/curve-v2.js +0 -180
  195. package/build/dex/curve-v2.js.map +0 -1
  196. package/build/dex/dodo-v1.d.ts +0 -33
  197. package/build/dex/dodo-v1.js +0 -63
  198. package/build/dex/dodo-v1.js.map +0 -1
  199. package/build/dex/erc4626/scripts/validate-state.d.ts +0 -0
  200. package/build/dex/erc4626/scripts/validate-state.js +0 -146
  201. package/build/dex/erc4626/scripts/validate-state.js.map +0 -1
  202. package/build/dex/lido.d.ts +0 -19
  203. package/build/dex/lido.js +0 -42
  204. package/build/dex/lido.js.map +0 -1
  205. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  206. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  207. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  208. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  209. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  210. package/build/dex/onebit.d.ts +0 -25
  211. package/build/dex/onebit.js +0 -42
  212. package/build/dex/onebit.js.map +0 -1
  213. package/build/dex/smoothy.d.ts +0 -26
  214. package/build/dex/smoothy.js +0 -48
  215. package/build/dex/smoothy.js.map +0 -1
  216. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  217. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  218. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  219. package/build/dex/stable-pool.d.ts +0 -28
  220. package/build/dex/stable-pool.js +0 -55
  221. package/build/dex/stable-pool.js.map +0 -1
  222. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  223. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  224. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  225. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  226. package/build/dex/trader-joe-v2.1.js +0 -79
  227. package/build/dex/trader-joe-v2.1.js.map +0 -1
  228. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  229. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  230. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  231. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  232. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  233. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  234. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
  235. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
  236. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
  237. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
  238. package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
  239. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
  240. package/build/dex/uniswap-v4/config.d.ts +0 -3
  241. package/build/dex/uniswap-v4/config.js +0 -15
  242. package/build/dex/uniswap-v4/config.js.map +0 -1
  243. package/build/dex/uniswap-v4/encoder.d.ts +0 -16
  244. package/build/dex/uniswap-v4/encoder.js +0 -94
  245. package/build/dex/uniswap-v4/encoder.js.map +0 -1
  246. package/build/dex/uniswap-v4/types.d.ts +0 -30
  247. package/build/dex/uniswap-v4/types.js +0 -3
  248. package/build/dex/uniswap-v4/types.js.map +0 -1
  249. package/build/dex/uniswap-v4/uniswap-v4.d.ts +0 -38
  250. package/build/dex/uniswap-v4/uniswap-v4.js +0 -187
  251. package/build/dex/uniswap-v4/uniswap-v4.js.map +0 -1
  252. package/build/dex/usual/usual-m-smart-m.d.ts +0 -17
  253. package/build/dex/usual/usual-m-smart-m.js +0 -50
  254. package/build/dex/usual/usual-m-smart-m.js.map +0 -1
  255. package/build/dex/usual-m-smart-m/config.d.ts +0 -3
  256. package/build/dex/usual-m-smart-m/config.js +0 -13
  257. package/build/dex/usual-m-smart-m/config.js.map +0 -1
  258. package/build/dex/usual-m-smart-m/types.d.ts +0 -7
  259. package/build/dex/usual-m-smart-m/types.js +0 -3
  260. package/build/dex/usual-m-smart-m/types.js.map +0 -1
  261. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +0 -35
  262. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +0 -161
  263. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +0 -1
  264. package/build/dex/usual-m-usd0/config.d.ts +0 -3
  265. package/build/dex/usual-m-usd0/config.js +0 -14
  266. package/build/dex/usual-m-usd0/config.js.map +0 -1
  267. package/build/dex/usual-m-usd0/types.d.ts +0 -8
  268. package/build/dex/usual-m-usd0/types.js +0 -3
  269. package/build/dex/usual-m-usd0/types.js.map +0 -1
  270. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +0 -35
  271. package/build/dex/usual-m-usd0/usual-m-usd0.js +0 -159
  272. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +0 -1
  273. package/tests/augustus-approvals.test.ts +0 -628
  274. package/tests/smart-tokens.ts +0 -112
  275. package/tests/tenderly-simulation-new.ts +0 -698
  276. package/tests/v6/executors.test.ts +0 -110
  277. package/tests/v6/price-routes/arbitrum/sell-0.1-ETH-USDC.json +0 -104
  278. package/tests/v6/price-routes/arbitrum/sell-1_000-ETH-DAI.json +0 -294
  279. package/tests/v6/price-routes/arbitrum/sell-1_000-WETH-wstETH.json +0 -121
  280. package/tests/v6/price-routes/arbitrum/sell-1_000_000-ARB-DAI.json +0 -270
  281. package/tests/v6/price-routes/arbitrum/sell-1_000_000-ARB-ETH.json +0 -326
  282. package/tests/v6/price-routes/arbitrum/sell-1_000_000-DAI-ARB.json +0 -434
  283. package/tests/v6/price-routes/arbitrum/sell-250_000-LINK-USDC.json +0 -182
  284. package/tests/v6/price-routes/arbitrum/sell-3_000-BAL-UNI.json +0 -154
  285. package/tests/v6/price-routes/avalanche/sell-100_000-WAVAX-USDC.json +0 -315
  286. package/tests/v6/price-routes/avalanche/sell-40-BTC-AVAX.json +0 -207
  287. package/tests/v6/price-routes/mainnet/buy-3200-ETH-DAI.json +0 -228
  288. package/tests/v6/price-routes/mainnet/sell-1-USDC-USDT.json +0 -78
  289. package/tests/v6/price-routes/mainnet/sell-1-WBTC-BAL.json +0 -158
  290. package/tests/v6/price-routes/mainnet/sell-100-tBTC-WBTC.json +0 -100
  291. package/tests/v6/price-routes/mainnet/sell-1000-eth-dai.json +0 -340
  292. package/tests/v6/price-routes/mainnet/sell-1000-wbtc-eth-uniswapv3-balancerv2.json +0 -162
  293. package/tests/v6/price-routes/mainnet/sell-100_000-USDC-USDT-2-univ2-pools.json +0 -86
  294. package/tests/v6/price-routes/mainnet/sell-10_000-ETH-USDC-balancer.json +0 -383
  295. package/tests/v6/price-routes/mainnet/sell-10_000-ETH-stETH.json +0 -168
  296. package/tests/v6/price-routes/mainnet/sell-10_000-USDC-USDT-BalancerV2.json +0 -68
  297. package/tests/v6/price-routes/mainnet/sell-10_000-eth-usdc-uniswapv3-balancerv2.json +0 -348
  298. package/tests/v6/price-routes/mainnet/sell-1_000-stETH-ETH.json +0 -100
  299. package/tests/v6/price-routes/mainnet/sell-50-eth-usdc.json +0 -153
  300. package/tests/v6/price-routes/polygon/sell-100-WBTC-MATIC-1.json +0 -571
  301. package/tests/v6/price-routes/polygon/sell-100-WBTC-MATIC.json +0 -559
  302. package/tests/v6/price-routes/polygon/sell-1_000_000-DAI-MATIC-2.json +0 -447
  303. package/tests/v6/price-routes/polygon/sell-1_000_000-DAI-MATIC-3.json +0 -472
  304. package/tests/v6/price-routes/polygon/sell-1_000_000-DAI-MATIC.json +0 -628
@@ -1,628 +0,0 @@
1
- import dotenv from 'dotenv';
2
- dotenv.config();
3
-
4
- import { Network, SwapSide } from '../src/constants';
5
- import { DummyDexHelper } from '../src/dex-helper';
6
- import { AugustusApprovals } from '../src/dex/augustus-approvals';
7
- import { testE2E } from './utils-e2e';
8
- import { Tokens, Holders, NativeTokenSymbols } from './constants-e2e';
9
- import { ContractMethodV6, OptimalRate } from '@paraswap/core';
10
- import { generateConfig } from '../src/config';
11
- import { StaticJsonRpcProvider } from '@ethersproject/providers';
12
- import { runE2ETest } from './v6/utils-e2e-v6';
13
-
14
- // set timeout to 2 min
15
- jest.setTimeout(120000);
16
-
17
- describe('Augustus Approvals', function () {
18
- describe('test', () => {
19
- const contractAddresses = {
20
- AugustusV6: '0xFc736f39579B25BdcCcAac9BcA34D3528B88f1bE',
21
- Executor01: '0xD4B117E831e8BF3D609A8d0D9E426a5cf1fd081D',
22
- Executor02: '0xa1d080288A5C8426c35fb9C869D3d90765362736',
23
- Executor03: '0x101187C6B3306d517b9062af624F0B3C86975a9f',
24
- };
25
-
26
- const spender = '0xd4b117e831e8bf3d609a8d0d9e426a5cf1fd081d';
27
- const network = Network.POLYGON;
28
- const dexHelper = new DummyDexHelper(network);
29
- const augustusApprovals = new AugustusApprovals(dexHelper);
30
-
31
- const provider = new StaticJsonRpcProvider(
32
- generateConfig(network).privateHttpProvider,
33
- network,
34
- );
35
-
36
- const tokens = Tokens[network];
37
- const holders = Holders[network];
38
- const nativeTokenSymbol = NativeTokenSymbols[network];
39
-
40
- const tokenTargetMapping: [string, string][] = [
41
- // [
42
- // '0x628a3b2e302c7e896acc432d2d0dd22b6cb9bc88',
43
- // '0xf9234cb08edb93c0d4a4d4c70cc3ffd070e78e07',
44
- // ],
45
- // [
46
- // '0xdac4ae188ace3c8985765edc6c9b4739d4845ddc',
47
- // '0xf9234cb08edb93c0d4a4d4c70cc3ffd070e78e07',
48
- // ],
49
- // [
50
- // '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
51
- // '0x1b81d678ffb9c0263b24a97847620c99d213eb14',
52
- // ],
53
- [
54
- '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
55
- '0xfc736f39579b25bdcccaac9bca34d3528b88f1be',
56
- ],
57
- ];
58
-
59
- it('default', async function () {
60
- const res = await augustusApprovals.hasApprovals(
61
- spender,
62
- tokenTargetMapping,
63
- );
64
- console.log(res);
65
- // expect(res).toEqual([true, false, true]);
66
- // const res1 = await augustusApprovals.hasAllowance(
67
- // spender,
68
- // tokenTargetMapping,
69
- // );
70
- // console.log(res1);
71
- // const res2 = await augustusApprovals.hasAllowance(
72
- // spender,
73
- // tokenTargetMapping,
74
- // );
75
- // console.log(res2);
76
- });
77
-
78
- it('MATIC -> NEAR', async () => {
79
- const tokenASymbol = 'NEAR';
80
- const amount = '4435029160405886599';
81
-
82
- await testE2E(
83
- tokens[nativeTokenSymbol],
84
- tokens[tokenASymbol],
85
- holders[nativeTokenSymbol],
86
- amount,
87
- SwapSide.SELL,
88
- 'QuickSwap',
89
- ContractMethodV6.swapExactAmountIn,
90
- network,
91
- provider,
92
- );
93
- });
94
-
95
- it('DUCKIES -> MATIC', async () => {
96
- const tokenASymbol = 'DUCKIES';
97
- const amount = '6000000000';
98
-
99
- await testE2E(
100
- tokens[tokenASymbol],
101
- tokens[nativeTokenSymbol],
102
- holders[tokenASymbol],
103
- amount,
104
- SwapSide.SELL,
105
- ['UniswapV3', 'SushiSwap'],
106
- ContractMethodV6.swapExactAmountIn,
107
- network,
108
- provider,
109
- );
110
- });
111
-
112
- it('new: DUCKIES => MATIC', async () => {
113
- const route = {
114
- blockNumber: 54019865,
115
- priceRoute: {
116
- blockNumber: 54019855,
117
- network: 137,
118
- srcToken: '0x18e73a5333984549484348a94f4d219f4fab7b81',
119
- srcDecimals: 8,
120
- srcAmount: '6000000000',
121
- destToken: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
122
- destDecimals: 18,
123
- destAmount: '412401870835858902',
124
- bestRoute: [
125
- {
126
- percent: 100,
127
- swaps: [
128
- {
129
- srcToken: '0x18e73a5333984549484348a94f4d219f4fab7b81',
130
- srcDecimals: 8,
131
- destToken: '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
132
- destDecimals: 6,
133
- swapExchanges: [
134
- {
135
- exchange: 'UniswapV3',
136
- srcAmount: '6000000000',
137
- destAmount: '435255',
138
- percent: 100,
139
- poolAddresses: [
140
- '0x046bbdd927fc635dd6de7cf4efdad3e767274074',
141
- ],
142
- data: {
143
- path: [
144
- {
145
- tokenIn:
146
- '0x18e73a5333984549484348a94f4d219f4fab7b81',
147
- tokenOut:
148
- '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
149
- fee: '3000',
150
- currentFee: '3000',
151
- },
152
- ],
153
- gasUSD: '0.009323',
154
- },
155
- },
156
- ],
157
- },
158
- {
159
- srcToken: '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
160
- srcDecimals: 6,
161
- destToken: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
162
- destDecimals: 18,
163
- swapExchanges: [
164
- {
165
- exchange: 'SushiSwap',
166
- srcAmount: '435255',
167
- destAmount: '412401870835858902',
168
- percent: 100,
169
- poolAddresses: [
170
- '0x55FF76BFFC3Cdd9D5FdbBC2ece4528ECcE45047e',
171
- ],
172
- data: {
173
- router: '0xf3938337F7294fEf84e9B2c6D548A93F956Cc281',
174
- path: [
175
- '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
176
- '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
177
- ],
178
- factory: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
179
- initCode:
180
- '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
181
- feeFactor: 10000,
182
- pools: [
183
- {
184
- address:
185
- '0x55FF76BFFC3Cdd9D5FdbBC2ece4528ECcE45047e',
186
- fee: 30,
187
- direction: false,
188
- },
189
- ],
190
- gasUSD: '0.007698',
191
- },
192
- },
193
- ],
194
- },
195
- ],
196
- },
197
- ],
198
- gasCostUSD: '0.022256',
199
- gasCost: '260190',
200
- side: 'SELL',
201
- version: '6',
202
- contractAddress: '0xFc736f39579B25BdcCcAac9BcA34D3528B88f1bE',
203
- tokenTransferProxy: '0xFc736f39579B25BdcCcAac9BcA34D3528B88f1bE',
204
- contractMethod: 'swapExactAmountIn',
205
- partnerFee: 0,
206
- srcUSD: '0.4314036000',
207
- destUSD: '0.4354963756',
208
- partner: 'paraswap.io',
209
- maxImpactReached: false,
210
- hmac: 'ec272b0d210992f6268938b2371cd78d9e47e77d',
211
- },
212
- userAddress: '0x3b4512e84017EC2dbc24e97006b47318807E1d3F',
213
- };
214
-
215
- await runE2ETest(
216
- route.priceRoute as OptimalRate,
217
- route.userAddress,
218
- contractAddresses,
219
- route.blockNumber,
220
- );
221
- });
222
-
223
- it('new: AAVE => BiFi', async () => {
224
- const route = {
225
- blockNumber: 54018955,
226
- priceRoute: {
227
- blockNumber: 54018940,
228
- network: 137,
229
- srcToken: '0xd6df932a45c0f255f85145f286ea0b292b21c90b',
230
- srcDecimals: 18,
231
- srcAmount: '86373798694287743',
232
- destToken: '0xfbdd194376de19a88118e84e279b977f165d01b8',
233
- destDecimals: 18,
234
- destAmount: '306869279210388729',
235
- bestRoute: [
236
- {
237
- percent: 62,
238
- swaps: [
239
- {
240
- srcToken: '0xd6df932a45c0f255f85145f286ea0b292b21c90b',
241
- srcDecimals: 18,
242
- destToken: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
243
- destDecimals: 6,
244
- swapExchanges: [
245
- {
246
- exchange: 'UniswapV3',
247
- srcAmount: '53551755190458401',
248
- destAmount: '5573916',
249
- percent: 100,
250
- poolAddresses: [
251
- '0xa236278bec0e0677a48527340cfb567b4e6e9adc',
252
- ],
253
- data: {
254
- path: [
255
- {
256
- tokenIn:
257
- '0xd6df932a45c0f255f85145f286ea0b292b21c90b',
258
- tokenOut:
259
- '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
260
- fee: '3000',
261
- currentFee: '3000',
262
- },
263
- ],
264
- gasUSD: '0.010387',
265
- },
266
- },
267
- ],
268
- },
269
- {
270
- srcToken: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
271
- srcDecimals: 6,
272
- destToken: '0xfbdd194376de19a88118e84e279b977f165d01b8',
273
- destDecimals: 18,
274
- swapExchanges: [
275
- {
276
- exchange: 'SushiSwap',
277
- srcAmount: '5573916',
278
- destAmount: '190098730969317426',
279
- percent: 100,
280
- poolAddresses: [
281
- '0x180237bd326d5245D0898336F54b3c8012c5c62f',
282
- ],
283
- data: {
284
- router: '0xf3938337F7294fEf84e9B2c6D548A93F956Cc281',
285
- path: [
286
- '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
287
- '0xfbdd194376de19a88118e84e279b977f165d01b8',
288
- ],
289
- factory: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
290
- initCode:
291
- '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
292
- feeFactor: 10000,
293
- pools: [
294
- {
295
- address:
296
- '0x180237bd326d5245D0898336F54b3c8012c5c62f',
297
- fee: 30,
298
- direction: true,
299
- },
300
- ],
301
- gasUSD: '0.008577',
302
- },
303
- },
304
- ],
305
- },
306
- ],
307
- },
308
- {
309
- percent: 38,
310
- swaps: [
311
- {
312
- srcToken: '0xd6df932a45c0f255f85145f286ea0b292b21c90b',
313
- srcDecimals: 18,
314
- destToken: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
315
- destDecimals: 18,
316
- swapExchanges: [
317
- {
318
- exchange: 'UniswapV3',
319
- srcAmount: '32822043503829342',
320
- destAmount: '3271114311470744968',
321
- percent: 100,
322
- poolAddresses: [
323
- '0xb3866eb993e1aef93f219c3da0a71c3f11becbf2',
324
- ],
325
- data: {
326
- path: [
327
- {
328
- tokenIn:
329
- '0xd6df932a45c0f255f85145f286ea0b292b21c90b',
330
- tokenOut:
331
- '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
332
- fee: '500',
333
- currentFee: '500',
334
- },
335
- ],
336
- gasUSD: '0.010387',
337
- },
338
- },
339
- ],
340
- },
341
- {
342
- srcToken: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
343
- srcDecimals: 18,
344
- destToken: '0xfbdd194376de19a88118e84e279b977f165d01b8',
345
- destDecimals: 18,
346
- swapExchanges: [
347
- {
348
- exchange: 'WaultFinance',
349
- srcAmount: '3271114311470744968',
350
- destAmount: '116770548241071303',
351
- percent: 100,
352
- poolAddresses: [
353
- '0xE60afed80406190C3AB2C17501d417097Dd741DB',
354
- ],
355
- data: {
356
- router: '0xf3938337F7294fEf84e9B2c6D548A93F956Cc281',
357
- path: [
358
- '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
359
- '0xfbdd194376de19a88118e84e279b977f165d01b8',
360
- ],
361
- factory: '0xa98ea6356A316b44Bf710D5f9b6b4eA0081409Ef',
362
- initCode:
363
- '0x1cdc2246d318ab84d8bc7ae2a3d81c235f3db4e113f4c6fdc1e2211a9291be47',
364
- feeFactor: 10000,
365
- pools: [
366
- {
367
- address:
368
- '0xE60afed80406190C3AB2C17501d417097Dd741DB',
369
- fee: 20,
370
- direction: true,
371
- },
372
- ],
373
- gasUSD: '0.009530',
374
- },
375
- },
376
- ],
377
- },
378
- ],
379
- },
380
- ],
381
- gasCostUSD: '0.051297',
382
- gasCost: '538293',
383
- side: 'SELL',
384
- version: '6',
385
- contractAddress: '0xFc736f39579B25BdcCcAac9BcA34D3528B88f1bE',
386
- tokenTransferProxy: '0xFc736f39579B25BdcCcAac9BcA34D3528B88f1bE',
387
- contractMethod: 'swapExactAmountIn',
388
- partnerFee: 0,
389
- srcUSD: '9.0027410379',
390
- destUSD: '8.8473887559',
391
- partner: 'paraswap.io',
392
- maxImpactReached: false,
393
- hmac: '120cefa7049ca4c8ee821ca5d030bfb53aa63830',
394
- },
395
- userAddress: '0x5AC840Fb4738C36467aC673E87aaFa26C9397dcd',
396
- };
397
-
398
- await runE2ETest(
399
- route.priceRoute as OptimalRate,
400
- route.userAddress,
401
- contractAddresses,
402
- route.blockNumber,
403
- );
404
- });
405
-
406
- it('new: AAVE => PSP', async () => {
407
- const route = {
408
- blockNumber: 53996931,
409
- priceRoute: {
410
- blockNumber: 53996915,
411
- network: 137,
412
- srcToken: '0xd6df932a45c0f255f85145f286ea0b292b21c90b',
413
- srcDecimals: 18,
414
- srcAmount: '41377866617173677',
415
- destToken: '0x42d61d766b85431666b39b89c43011f24451bff6',
416
- destDecimals: 18,
417
- destAmount: '80757322983809613682',
418
- bestRoute: [
419
- {
420
- percent: 100,
421
- swaps: [
422
- {
423
- srcToken: '0xd6df932a45c0f255f85145f286ea0b292b21c90b',
424
- srcDecimals: 18,
425
- destToken: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
426
- destDecimals: 18,
427
- swapExchanges: [
428
- {
429
- exchange: 'UniswapV3',
430
- srcAmount: '41377866617173677',
431
- destAmount: '4002215076179070077',
432
- percent: 100,
433
- poolAddresses: [
434
- '0xb3866eb993e1aef93f219c3da0a71c3f11becbf2',
435
- ],
436
- data: {
437
- path: [
438
- {
439
- tokenIn:
440
- '0xd6df932a45c0f255f85145f286ea0b292b21c90b',
441
- tokenOut:
442
- '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
443
- fee: '500',
444
- currentFee: '500',
445
- },
446
- ],
447
- gasUSD: '0.004287',
448
- },
449
- },
450
- ],
451
- },
452
- {
453
- srcToken: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
454
- srcDecimals: 18,
455
- destToken: '0x42d61d766b85431666b39b89c43011f24451bff6',
456
- destDecimals: 18,
457
- swapExchanges: [
458
- {
459
- exchange: 'QuickSwap',
460
- srcAmount: '4002215076179070077',
461
- destAmount: '80757322983809613682',
462
- percent: 100,
463
- poolAddresses: [
464
- '0x7AfC060acCA7ec6985d982dD85cC62B111CAc7a7',
465
- ],
466
- data: {
467
- router: '0xf3938337F7294fEf84e9B2c6D548A93F956Cc281',
468
- path: [
469
- '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
470
- '0x42d61d766b85431666b39b89c43011f24451bff6',
471
- ],
472
- factory: '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32',
473
- initCode:
474
- '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
475
- feeFactor: 10000,
476
- pools: [
477
- {
478
- address:
479
- '0x7AfC060acCA7ec6985d982dD85cC62B111CAc7a7',
480
- fee: 30,
481
- direction: true,
482
- },
483
- ],
484
- gasUSD: '0.003540',
485
- },
486
- },
487
- ],
488
- },
489
- ],
490
- },
491
- ],
492
- gasCostUSD: '0.010177',
493
- gasCost: '258740',
494
- side: 'SELL',
495
- version: '6',
496
- contractAddress: '0xFc736f39579B25BdcCcAac9BcA34D3528B88f1bE',
497
- tokenTransferProxy: '0xFc736f39579B25BdcCcAac9BcA34D3528B88f1bE',
498
- contractMethod: 'swapExactAmountIn',
499
- partnerFee: 0,
500
- srcUSD: '4.2524033522',
501
- destUSD: '4.2127057535',
502
- partner: 'paraswap.io',
503
- maxImpactReached: false,
504
- hmac: 'a26968ec4fcd57a2a291bd62a19f79f4d730cfbe',
505
- },
506
- userAddress: '0xf32F15f401F2822E7c841EcDCB2D6218b6b51522',
507
- };
508
-
509
- await runE2ETest(
510
- route.priceRoute as OptimalRate,
511
- route.userAddress,
512
- contractAddresses,
513
- route.blockNumber,
514
- );
515
- });
516
-
517
- it.only('new: YELLOW => MATIC', async () => {
518
- const route = {
519
- blockNumber: 54019870,
520
- priceRoute: {
521
- blockNumber: 54019855,
522
- network: 137,
523
- srcToken: '0x18e73a5333984549484348a94f4d219f4fab7b81',
524
- srcDecimals: 8,
525
- srcAmount: '6000000000',
526
- destToken: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
527
- destDecimals: 18,
528
- destAmount: '412401870835858902',
529
- bestRoute: [
530
- {
531
- percent: 100,
532
- swaps: [
533
- {
534
- srcToken: '0x18e73a5333984549484348a94f4d219f4fab7b81',
535
- srcDecimals: 8,
536
- destToken: '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
537
- destDecimals: 6,
538
- swapExchanges: [
539
- {
540
- exchange: 'UniswapV3',
541
- srcAmount: '6000000000',
542
- destAmount: '435255',
543
- percent: 100,
544
- poolAddresses: [
545
- '0x046bbdd927fc635dd6de7cf4efdad3e767274074',
546
- ],
547
- data: {
548
- path: [
549
- {
550
- tokenIn:
551
- '0x18e73a5333984549484348a94f4d219f4fab7b81',
552
- tokenOut:
553
- '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
554
- fee: '3000',
555
- currentFee: '3000',
556
- },
557
- ],
558
- gasUSD: '0.009323',
559
- },
560
- },
561
- ],
562
- },
563
- {
564
- srcToken: '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
565
- srcDecimals: 6,
566
- destToken: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
567
- destDecimals: 18,
568
- swapExchanges: [
569
- {
570
- exchange: 'SushiSwap',
571
- srcAmount: '435255',
572
- destAmount: '412401870835858902',
573
- percent: 100,
574
- poolAddresses: [
575
- '0x55FF76BFFC3Cdd9D5FdbBC2ece4528ECcE45047e',
576
- ],
577
- data: {
578
- router: '0xf3938337F7294fEf84e9B2c6D548A93F956Cc281',
579
- path: [
580
- '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
581
- '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
582
- ],
583
- factory: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
584
- initCode:
585
- '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
586
- feeFactor: 10000,
587
- pools: [
588
- {
589
- address:
590
- '0x55FF76BFFC3Cdd9D5FdbBC2ece4528ECcE45047e',
591
- fee: 30,
592
- direction: false,
593
- },
594
- ],
595
- gasUSD: '0.007698',
596
- },
597
- },
598
- ],
599
- },
600
- ],
601
- },
602
- ],
603
- gasCostUSD: '0.022256',
604
- gasCost: '260190',
605
- side: 'SELL',
606
- version: '6',
607
- contractAddress: '0xFc736f39579B25BdcCcAac9BcA34D3528B88f1bE',
608
- tokenTransferProxy: '0xFc736f39579B25BdcCcAac9BcA34D3528B88f1bE',
609
- contractMethod: 'swapExactAmountIn',
610
- partnerFee: 0,
611
- srcUSD: '0.4314036000',
612
- destUSD: '0.4354963756',
613
- partner: 'paraswap.io',
614
- maxImpactReached: false,
615
- hmac: 'ec272b0d210992f6268938b2371cd78d9e47e77d',
616
- },
617
- userAddress: '0x3b4512e84017EC2dbc24e97006b47318807E1d3F',
618
- };
619
-
620
- await runE2ETest(
621
- route.priceRoute as OptimalRate,
622
- route.userAddress,
623
- contractAddresses,
624
- route.blockNumber,
625
- );
626
- });
627
- });
628
- });