@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,154 +0,0 @@
1
- {
2
- "metadata": {
3
- "network": 42161,
4
- "blockNumber": 183002565,
5
- "forkId": "29dc262c-d7a1-4d0f-b0a7-da7dda80b216",
6
- "lastTx": "c09dce2b-7b96-4e7c-92f5-c466aea9cbca",
7
- "contracts": {
8
- "AugustusV6": "0x0624e7914640b66821e6f773C3A0176fD5d46dcA",
9
- "Executor01": "0xCE90E179641251689D122483515f976201eD7Eb0",
10
- "Executor02": "0xd5dAaa3777D24f40e8d001Fc65E8e49Bfb5fEeFA",
11
- "Executor03": "0xE82d885B722e0B5059A7437D17E38Dbf67fAA844"
12
- }
13
- },
14
- "priceRoute": {
15
- "blockNumber": 183002565,
16
- "network": 42161,
17
- "srcToken": "0x040d1edc9569d4bab2d15287dc5a4f10f56a56b8",
18
- "srcDecimals": 18,
19
- "srcAmount": "3000000000000000000000",
20
- "destToken": "0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0",
21
- "destDecimals": 18,
22
- "destAmount": "1472633696918154131301",
23
- "bestRoute": [
24
- {
25
- "percent": 100,
26
- "swaps": [
27
- {
28
- "srcToken": "0x040d1edc9569d4bab2d15287dc5a4f10f56a56b8",
29
- "srcDecimals": 18,
30
- "destToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
31
- "destDecimals": 18,
32
- "swapExchanges": [
33
- {
34
- "exchange": "SushiSwap",
35
- "srcAmount": "120000000000000000000",
36
- "destAmount": "149028638528328932",
37
- "percent": 4,
38
- "poolAddresses": ["0xe11fD71B13072CF388419e2623C5487103e08627"],
39
- "data": {
40
- "router": "0xB41dD984730dAf82f5C41489E21ac79D5e3B61bC",
41
- "path": [
42
- "0x040d1edc9569d4bab2d15287dc5a4f10f56a56b8",
43
- "0x82af49447d8a07e3bd95bd0d56f35241523fbab1"
44
- ],
45
- "factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4",
46
- "initCode": "0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303",
47
- "feeFactor": 10000,
48
- "pools": [
49
- {
50
- "address": "0xe11fD71B13072CF388419e2623C5487103e08627",
51
- "fee": 30,
52
- "direction": true
53
- }
54
- ],
55
- "gasUSD": "0.281642"
56
- }
57
- },
58
- {
59
- "exchange": "UniswapV3",
60
- "srcAmount": "60000000000000000000",
61
- "destAmount": "67133132759683351",
62
- "percent": 2,
63
- "poolAddresses": ["0x8c15bd3bce679b7c72374b17679b8dd2da91a9a9"],
64
- "data": {
65
- "path": [
66
- {
67
- "tokenIn": "0x040d1edc9569d4bab2d15287dc5a4f10f56a56b8",
68
- "tokenOut": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
69
- "fee": "10000",
70
- "currentFee": "10000"
71
- }
72
- ],
73
- "gasUSD": "0.342158"
74
- }
75
- },
76
- {
77
- "exchange": "BalancerV2",
78
- "srcAmount": "2820000000000000000000",
79
- "destAmount": "3478196851037207169",
80
- "percent": 94,
81
- "poolAddresses": [
82
- "0xcc65a812ce382ab909a11e434dbf75b34f1cc59d",
83
- "0xc1889c72d99917fd7b957fed80d4ea1ebd9e2618"
84
- ],
85
- "data": {
86
- "swaps": [
87
- {
88
- "poolId": "0xcc65a812ce382ab909a11e434dbf75b34f1cc59d000200000000000000000001",
89
- "amount": "2760000000000000000000"
90
- },
91
- {
92
- "poolId": "0xc1889c72d99917fd7b957fed80d4ea1ebd9e26180001000000000000000000ae",
93
- "amount": "60000000000000000000"
94
- }
95
- ],
96
- "gasUSD": "1.429062"
97
- }
98
- }
99
- ]
100
- },
101
- {
102
- "srcToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
103
- "srcDecimals": 18,
104
- "destToken": "0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0",
105
- "destDecimals": 18,
106
- "swapExchanges": [
107
- {
108
- "exchange": "UniswapV3",
109
- "srcAmount": "369435862232521945",
110
- "destAmount": "147380323679873618975",
111
- "percent": 10,
112
- "poolAddresses": ["0xc24f7d8e51a64dc1238880bd00bb961d54cbeb29"],
113
- "data": {
114
- "path": [
115
- {
116
- "tokenIn": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
117
- "tokenOut": "0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0",
118
- "fee": "3000",
119
- "currentFee": "3000"
120
- }
121
- ],
122
- "gasUSD": "0.311369"
123
- }
124
- },
125
- {
126
- "exchange": "GMX",
127
- "srcAmount": "3324922760092697507",
128
- "destAmount": "1325253373238280512326",
129
- "percent": 90,
130
- "poolAddresses": ["0x489ee077994B6658eAfA855C308275EAd8097C4A"],
131
- "data": {
132
- "gasUSD": "0.305130"
133
- }
134
- }
135
- ]
136
- }
137
- ]
138
- }
139
- ],
140
- "gasCostUSD": "3.396297",
141
- "gasCost": "1098300",
142
- "others": [],
143
- "side": "SELL",
144
- "tokenTransferProxy": "0x216b4b4ba9f3e719726886d34a177484278bfcae",
145
- "contractAddress": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57",
146
- "contractMethod": "multiSwap",
147
- "partnerFee": 0,
148
- "srcUSD": "12480.0000000000",
149
- "destUSD": "10750.2259875025",
150
- "partner": "paraswap.io",
151
- "maxImpactReached": false,
152
- "hmac": "f478000bc7f49fa9091bd6574a22b62e4c0b62ea"
153
- }
154
- }
@@ -1,315 +0,0 @@
1
- {
2
- "metadata": {
3
- "network": 43114,
4
- "blockNumber": 41916244,
5
- "forkId": "8d14343e-94ae-484e-9106-ad0b906150f8",
6
- "lastTx": "b937592c-a532-4f92-bd4e-3dcb60567bec",
7
- "contracts": {
8
- "AugustusV6": "0x6B0D68D159751cc5679661f10114d05ec19D0119",
9
- "Executor01": "0xB9E611dc6F061486e7755b4f533512D010C1802f",
10
- "Executor02": "0x6acB5438bB8B06415b86CF6fc4b07A3DBC441825",
11
- "Executor03": "0x41750066d1243d706C4E3AeC0e867959e27bF045"
12
- }
13
- },
14
- "priceRoute": {
15
- "blockNumber": 41916244,
16
- "network": 43114,
17
- "srcToken": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
18
- "srcDecimals": 18,
19
- "srcAmount": "100000000000000000000000",
20
- "destToken": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
21
- "destDecimals": 6,
22
- "destAmount": "3709919295325",
23
- "bestRoute": [
24
- {
25
- "percent": 90,
26
- "swaps": [
27
- {
28
- "srcToken": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
29
- "srcDecimals": 18,
30
- "destToken": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
31
- "destDecimals": 6,
32
- "swapExchanges": [
33
- {
34
- "exchange": "TraderJoeV2.1",
35
- "srcAmount": "19998000000000000000000",
36
- "destAmount": "752449483725",
37
- "percent": 22.22,
38
- "poolAddresses": ["0xD446eb1660F766d533BeCeEf890Df7A69d26f7d1"],
39
- "data": {
40
- "tokenIn": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
41
- "tokenOut": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
42
- "binStep": "20",
43
- "gasUSD": "0.285418"
44
- }
45
- },
46
- {
47
- "exchange": "PangolinSwap",
48
- "srcAmount": "8001000000000000000000",
49
- "destAmount": "277696594045",
50
- "percent": 8.89,
51
- "poolAddresses": ["0x0e0100Ab771E9288e0Aa97e11557E6654C3a9665"],
52
- "data": {
53
- "router": "0x53e693c6C7FFC4446c53B205Cf513105Bf140D7b",
54
- "path": [
55
- "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
56
- "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e"
57
- ],
58
- "factory": "0xefa94DE7a4656D787667C749f7E1223D71E9FD88",
59
- "initCode": "0x40231f6b438bce0797c9ada29b718a87ea0a5cea3fe9a771abdd76bd41a3e545",
60
- "feeFactor": 10000,
61
- "pools": [
62
- {
63
- "address": "0x0e0100Ab771E9288e0Aa97e11557E6654C3a9665",
64
- "fee": 30,
65
- "direction": true
66
- }
67
- ],
68
- "gasUSD": "0.127011"
69
- }
70
- },
71
- {
72
- "exchange": "TraderJoe",
73
- "srcAmount": "1998000000000000000000",
74
- "destAmount": "67321376839",
75
- "percent": 2.22,
76
- "poolAddresses": ["0xf4003F4efBE8691B60249E6afbD307aBE7758adb"],
77
- "data": {
78
- "router": "0x53e693c6C7FFC4446c53B205Cf513105Bf140D7b",
79
- "path": [
80
- "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
81
- "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e"
82
- ],
83
- "factory": "0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10",
84
- "initCode": "0x0bbca9af0511ad1a1da383135cf3a8d2ac620e549ef9f6ae3a4c33c2fed0af91",
85
- "feeFactor": 10000,
86
- "pools": [
87
- {
88
- "address": "0xf4003F4efBE8691B60249E6afbD307aBE7758adb",
89
- "fee": 30,
90
- "direction": true
91
- }
92
- ],
93
- "gasUSD": "0.171251"
94
- }
95
- },
96
- {
97
- "exchange": "UniswapV3",
98
- "srcAmount": "6003000000000000000000",
99
- "destAmount": "212483439626",
100
- "percent": 6.67,
101
- "poolAddresses": ["0xfae3f424a0a47706811521e3ee268f00cfb5c45e"],
102
- "data": {
103
- "path": [
104
- {
105
- "tokenIn": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
106
- "tokenOut": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
107
- "fee": "500",
108
- "currentFee": "500"
109
- }
110
- ],
111
- "gasUSD": "2.895566"
112
- }
113
- },
114
- {
115
- "exchange": "GMX",
116
- "srcAmount": "54000000000000000000000",
117
- "destAmount": "2062204531200",
118
- "percent": 60,
119
- "poolAddresses": ["0x9ab2De34A33fB459b538c43f251eB825645e8595"],
120
- "data": {
121
- "gasUSD": "0.428127"
122
- }
123
- }
124
- ]
125
- }
126
- ]
127
- },
128
- {
129
- "percent": 4,
130
- "swaps": [
131
- {
132
- "srcToken": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
133
- "srcDecimals": 18,
134
- "destToken": "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7",
135
- "destDecimals": 6,
136
- "swapExchanges": [
137
- {
138
- "exchange": "PangolinSwap",
139
- "srcAmount": "4000000000000000000000",
140
- "destAmount": "137630564206",
141
- "percent": 100,
142
- "poolAddresses": ["0xe3bA3d5e3F98eefF5e9EDdD5Bd20E476202770da"],
143
- "data": {
144
- "router": "0x53e693c6C7FFC4446c53B205Cf513105Bf140D7b",
145
- "path": [
146
- "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
147
- "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"
148
- ],
149
- "factory": "0xefa94DE7a4656D787667C749f7E1223D71E9FD88",
150
- "initCode": "0x40231f6b438bce0797c9ada29b718a87ea0a5cea3fe9a771abdd76bd41a3e545",
151
- "feeFactor": 10000,
152
- "pools": [
153
- {
154
- "address": "0xe3bA3d5e3F98eefF5e9EDdD5Bd20E476202770da",
155
- "fee": 30,
156
- "direction": false
157
- }
158
- ],
159
- "gasUSD": "0.127011"
160
- }
161
- }
162
- ]
163
- },
164
- {
165
- "srcToken": "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7",
166
- "srcDecimals": 6,
167
- "destToken": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
168
- "destDecimals": 6,
169
- "swapExchanges": [
170
- {
171
- "exchange": "TraderJoeV2.1",
172
- "srcAmount": "107186683404",
173
- "destAmount": "107175814104",
174
- "percent": 77.88,
175
- "poolAddresses": ["0x9B2Cc8E6a2Bbb56d6bE4682891a91B0e48633c72"],
176
- "data": {
177
- "tokenIn": "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7",
178
- "tokenOut": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
179
- "binStep": "1",
180
- "gasUSD": "0.285418"
181
- }
182
- },
183
- {
184
- "exchange": "UniswapV3",
185
- "srcAmount": "9001038899",
186
- "destAmount": "8996230708",
187
- "percent": 6.54,
188
- "poolAddresses": ["0x804226ca4edb38e7ef56d16d16e92dc3223347a0"],
189
- "data": {
190
- "path": [
191
- {
192
- "tokenIn": "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7",
193
- "tokenOut": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
194
- "fee": "100",
195
- "currentFee": "100"
196
- }
197
- ],
198
- "gasUSD": "0.224053"
199
- }
200
- },
201
- {
202
- "exchange": "Wombat",
203
- "srcAmount": "21442841903",
204
- "destAmount": "21435643802",
205
- "percent": 15.58,
206
- "poolAddresses": ["0xc9bfc3efefe4cf96877009f75a61f5c1937e5d1a"],
207
- "data": {
208
- "exchange": "0xc9bfc3efefe4cf96877009f75a61f5c1937e5d1a",
209
- "gasUSD": "0.371043"
210
- }
211
- }
212
- ]
213
- }
214
- ]
215
- },
216
- {
217
- "percent": 6,
218
- "swaps": [
219
- {
220
- "srcToken": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
221
- "srcDecimals": 18,
222
- "destToken": "0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664",
223
- "destDecimals": 6,
224
- "swapExchanges": [
225
- {
226
- "exchange": "PangolinSwap",
227
- "srcAmount": "4000200000000000000000",
228
- "destAmount": "135489198710",
229
- "percent": 66.67,
230
- "poolAddresses": ["0xbd918Ed441767fe7924e99F6a0E0B568ac1970D9"],
231
- "data": {
232
- "router": "0x53e693c6C7FFC4446c53B205Cf513105Bf140D7b",
233
- "path": [
234
- "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
235
- "0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664"
236
- ],
237
- "factory": "0xefa94DE7a4656D787667C749f7E1223D71E9FD88",
238
- "initCode": "0x40231f6b438bce0797c9ada29b718a87ea0a5cea3fe9a771abdd76bd41a3e545",
239
- "feeFactor": 10000,
240
- "pools": [
241
- {
242
- "address": "0xbd918Ed441767fe7924e99F6a0E0B568ac1970D9",
243
- "fee": 30,
244
- "direction": false
245
- }
246
- ],
247
- "gasUSD": "0.127011"
248
- }
249
- },
250
- {
251
- "exchange": "TraderJoe",
252
- "srcAmount": "1999800000000000000000",
253
- "destAmount": "64766112461",
254
- "percent": 33.33,
255
- "poolAddresses": ["0xA389f9430876455C36478DeEa9769B7Ca4E3DDB1"],
256
- "data": {
257
- "router": "0x53e693c6C7FFC4446c53B205Cf513105Bf140D7b",
258
- "path": [
259
- "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
260
- "0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664"
261
- ],
262
- "factory": "0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10",
263
- "initCode": "0x0bbca9af0511ad1a1da383135cf3a8d2ac620e549ef9f6ae3a4c33c2fed0af91",
264
- "feeFactor": 10000,
265
- "pools": [
266
- {
267
- "address": "0xA389f9430876455C36478DeEa9769B7Ca4E3DDB1",
268
- "fee": 30,
269
- "direction": false
270
- }
271
- ],
272
- "gasUSD": "0.171251"
273
- }
274
- }
275
- ]
276
- },
277
- {
278
- "srcToken": "0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664",
279
- "srcDecimals": 6,
280
- "destToken": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
281
- "destDecimals": 6,
282
- "swapExchanges": [
283
- {
284
- "exchange": "TraderJoeV2.1",
285
- "srcAmount": "200255311171",
286
- "destAmount": "200156181276",
287
- "percent": 100,
288
- "poolAddresses": ["0x7c13D4C3E9DFa683E7a5792a9FF20CB5FD22B0c0"],
289
- "data": {
290
- "tokenIn": "0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664",
291
- "tokenOut": "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e",
292
- "binStep": "1",
293
- "gasUSD": "0.285418"
294
- }
295
- }
296
- ]
297
- }
298
- ]
299
- }
300
- ],
301
- "gasCostUSD": "5.764438",
302
- "gasCost": "4039295",
303
- "others": [],
304
- "side": "SELL",
305
- "version": "6",
306
- "contractAddress": "0x769d4C647e456A513f1e45f01995b479De60121b",
307
- "contractMethod": "swapExactAmountIn",
308
- "partnerFee": 0,
309
- "srcUSD": "3869000.0000000000",
310
- "destUSD": "3707177.6649657548",
311
- "partner": "anon",
312
- "maxImpactReached": false,
313
- "hmac": "01e4b2ed5d684d1f039fe00fcfc200a4a1ed792a"
314
- }
315
- }
@@ -1,207 +0,0 @@
1
- {
2
- "metadata": {
3
- "network": 43114,
4
- "blockNumber": 41915879,
5
- "forkId": "08c1bd55-a366-4a70-bb3d-2182c0f20d5d",
6
- "lastTx": "f3a7d455-26db-4b21-936a-86554754c46d",
7
- "contracts": {
8
- "AugustusV6": "0x305BBf4359FFfb9829602dfd10f47F060eA761F5",
9
- "Executor01": "0x98383116cC27B596FaF55A7d6e3f549C6b47984B",
10
- "Executor02": "0xDfD8afaDae280e8aC122bAB44c96D92AcA885fD0",
11
- "Executor03": "0xc7693a67C9615638e23E9dB642b32889d7844eC1"
12
- }
13
- },
14
- "priceRoute": {
15
- "blockNumber": 41915879,
16
- "network": 43114,
17
- "srcToken": "0x152b9d0fdc40c096757f570a51e494bd4b943e50",
18
- "srcDecimals": 8,
19
- "srcAmount": "4102910000",
20
- "destToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
21
- "destDecimals": 18,
22
- "destAmount": "53297478345613184148098",
23
- "bestRoute": [
24
- {
25
- "percent": 98,
26
- "swaps": [
27
- {
28
- "srcToken": "0x152b9d0fdc40c096757f570a51e494bd4b943e50",
29
- "srcDecimals": 8,
30
- "destToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
31
- "destDecimals": 18,
32
- "swapExchanges": [
33
- {
34
- "exchange": "TraderJoeV2.1",
35
- "srcAmount": "1230782736",
36
- "destAmount": "16177765692445878628503",
37
- "percent": 30.61,
38
- "poolAddresses": ["0xD9fa522F5BC6cfa40211944F2C8DA785773Ad99D"],
39
- "data": {
40
- "tokenIn": "0x152b9d0fdc40c096757f570a51e494bd4b943e50",
41
- "tokenOut": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
42
- "binStep": "10",
43
- "gasUSD": "0.286602"
44
- }
45
- },
46
- {
47
- "exchange": "TraderJoe",
48
- "srcAmount": "164050753",
49
- "destAmount": "1255978727474916322635",
50
- "percent": 4.08,
51
- "poolAddresses": ["0x2fD81391E30805Cc7F2Ec827013ce86dc591B806"],
52
- "data": {
53
- "router": "0x53e693c6C7FFC4446c53B205Cf513105Bf140D7b",
54
- "path": [
55
- "0x152b9d0fdc40c096757f570a51e494bd4b943e50",
56
- "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"
57
- ],
58
- "factory": "0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10",
59
- "initCode": "0x0bbca9af0511ad1a1da383135cf3a8d2ac620e549ef9f6ae3a4c33c2fed0af91",
60
- "feeFactor": 10000,
61
- "pools": [
62
- {
63
- "address": "0x2fD81391E30805Cc7F2Ec827013ce86dc591B806",
64
- "fee": 30,
65
- "direction": true
66
- }
67
- ],
68
- "gasUSD": "0.171961"
69
- }
70
- },
71
- {
72
- "exchange": "GMX",
73
- "srcAmount": "2626018311",
74
- "destAmount": "34867983132721688000000",
75
- "percent": 65.31,
76
- "poolAddresses": ["0x9ab2De34A33fB459b538c43f251eB825645e8595"],
77
- "data": {
78
- "gasUSD": "0.429903"
79
- }
80
- }
81
- ]
82
- }
83
- ]
84
- },
85
- {
86
- "percent": 2,
87
- "swaps": [
88
- {
89
- "srcToken": "0x152b9d0fdc40c096757f570a51e494bd4b943e50",
90
- "srcDecimals": 8,
91
- "destToken": "0x50b7545627a5162f82a992c33b87adc75187b218",
92
- "destDecimals": 8,
93
- "swapExchanges": [
94
- {
95
- "exchange": "UniswapV3",
96
- "srcAmount": "82058200",
97
- "destAmount": "81940317",
98
- "percent": 100,
99
- "poolAddresses": ["0x749712c45985842b0dd16f175e6cc24d570e0819"],
100
- "data": {
101
- "path": [
102
- {
103
- "tokenIn": "0x152b9d0fdc40c096757f570a51e494bd4b943e50",
104
- "tokenOut": "0x50b7545627a5162f82a992c33b87adc75187b218",
105
- "fee": "500",
106
- "currentFee": "500"
107
- }
108
- ],
109
- "gasUSD": "0.190590"
110
- }
111
- }
112
- ]
113
- },
114
- {
115
- "srcToken": "0x50b7545627a5162f82a992c33b87adc75187b218",
116
- "srcDecimals": 8,
117
- "destToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
118
- "destDecimals": 18,
119
- "swapExchanges": [
120
- {
121
- "exchange": "PangolinSwap",
122
- "srcAmount": "10176987",
123
- "destAmount": "123970223155109635533",
124
- "percent": 12.42,
125
- "poolAddresses": ["0x5764b8D8039C6E32f1e5d8DE8Da05DdF974EF5D3"],
126
- "data": {
127
- "router": "0x53e693c6C7FFC4446c53B205Cf513105Bf140D7b",
128
- "path": [
129
- "0x50b7545627a5162f82a992c33b87adc75187b218",
130
- "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"
131
- ],
132
- "factory": "0xefa94DE7a4656D787667C749f7E1223D71E9FD88",
133
- "initCode": "0x40231f6b438bce0797c9ada29b718a87ea0a5cea3fe9a771abdd76bd41a3e545",
134
- "feeFactor": 10000,
135
- "pools": [
136
- {
137
- "address": "0x5764b8D8039C6E32f1e5d8DE8Da05DdF974EF5D3",
138
- "fee": 30,
139
- "direction": true
140
- }
141
- ],
142
- "gasUSD": "0.127538"
143
- }
144
- },
145
- {
146
- "exchange": "TraderJoe",
147
- "srcAmount": "42912144",
148
- "destAmount": "521005383563212472931",
149
- "percent": 52.37,
150
- "poolAddresses": ["0xd5a37dC5C9A396A03dd1136Fc76A1a02B1c88Ffa"],
151
- "data": {
152
- "router": "0x53e693c6C7FFC4446c53B205Cf513105Bf140D7b",
153
- "path": [
154
- "0x50b7545627a5162f82a992c33b87adc75187b218",
155
- "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"
156
- ],
157
- "factory": "0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10",
158
- "initCode": "0x0bbca9af0511ad1a1da383135cf3a8d2ac620e549ef9f6ae3a4c33c2fed0af91",
159
- "feeFactor": 10000,
160
- "pools": [
161
- {
162
- "address": "0xd5a37dC5C9A396A03dd1136Fc76A1a02B1c88Ffa",
163
- "fee": 30,
164
- "direction": true
165
- }
166
- ],
167
- "gasUSD": "0.171961"
168
- }
169
- },
170
- {
171
- "exchange": "UniswapV3",
172
- "srcAmount": "28851186",
173
- "destAmount": "350775186252379088496",
174
- "percent": 35.21,
175
- "poolAddresses": ["0x7fd0055020a6d9c43c31c8ea755c5038ebd39722"],
176
- "data": {
177
- "path": [
178
- {
179
- "tokenIn": "0x50b7545627a5162f82a992c33b87adc75187b218",
180
- "tokenOut": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
181
- "fee": "3000",
182
- "currentFee": "3000"
183
- }
184
- ],
185
- "gasUSD": "0.259375"
186
- }
187
- }
188
- ]
189
- }
190
- ]
191
- }
192
- ],
193
- "gasCostUSD": "1.793817",
194
- "gasCost": "1251783",
195
- "others": [],
196
- "side": "SELL",
197
- "version": "6",
198
- "contractAddress": "0x769d4C647e456A513f1e45f01995b479De60121b",
199
- "contractMethod": "swapExactAmountIn",
200
- "partnerFee": 0,
201
- "srcUSD": "2104833.8591000000",
202
- "destUSD": "2064211.3363255986",
203
- "partner": "paraswap.io",
204
- "maxImpactReached": false,
205
- "hmac": "1aec650a3e67362a33a81a9f5ba04c8374dcae24"
206
- }
207
- }