@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,472 +0,0 @@
1
- {
2
- "metadata": {
3
- "network": 137,
4
- "blockNumber": 53552814,
5
- "forkId": "15b884e8-a325-4600-97b8-7e507617e9ce",
6
- "lastTx": "9ed28f4a-13c6-4111-a1ca-049205a48055",
7
- "contracts": {
8
- "AugustusV6": "0x5d1FFf8cDC8909D5f9859b69afB3C8E4C7090934",
9
- "Executor01": "0x06aA7bFA37aF0351A959682Db389682Ce1e243a1",
10
- "Executor02": "0xc60beC3FD8578749aa665F2eC9710Befc1E9D979",
11
- "Executor03": "0xB1bEDD81B62d7B838ee047763f9E9BAf70d067C4"
12
- }
13
- },
14
- "priceRoute": {
15
- "blockNumber": 53552814,
16
- "network": 137,
17
- "srcToken": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
18
- "srcDecimals": 18,
19
- "srcAmount": "1000000000000000000000000",
20
- "destToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
21
- "destDecimals": 18,
22
- "destAmount": "1103356578496270334850792",
23
- "bestRoute": [
24
- {
25
- "percent": 84,
26
- "swaps": [
27
- {
28
- "srcToken": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
29
- "srcDecimals": 18,
30
- "destToken": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
31
- "destDecimals": 6,
32
- "swapExchanges": [
33
- {
34
- "exchange": "CurveV2",
35
- "srcAmount": "200004000000000000000000",
36
- "destAmount": "199963500612",
37
- "percent": 23.81,
38
- "poolAddresses": ["0x3FCD5De6A9fC8A99995c406c77DDa3eD7E406f81"],
39
- "data": {
40
- "i": 0,
41
- "j": 1,
42
- "exchange": "0x3FCD5De6A9fC8A99995c406c77DDa3eD7E406f81",
43
- "originalPoolAddress": "0x751b1e21756bdbc307cbcc5085c042a0e9aaef36",
44
- "swapType": 1,
45
- "gasUSD": "0.064919"
46
- }
47
- },
48
- {
49
- "exchange": "CurveV2",
50
- "srcAmount": "140028000000000000000000",
51
- "destAmount": "139975267966",
52
- "percent": 16.67,
53
- "poolAddresses": ["0x1d8b86e3D88cDb2d34688e87E72F388Cb541B7C8"],
54
- "data": {
55
- "i": 0,
56
- "j": 1,
57
- "exchange": "0x1d8b86e3D88cDb2d34688e87E72F388Cb541B7C8",
58
- "originalPoolAddress": "0x92215849c439e1f8612b6646060b4e3e5ef822cc",
59
- "swapType": 1,
60
- "gasUSD": "0.064919"
61
- }
62
- },
63
- {
64
- "exchange": "CurveV2",
65
- "srcAmount": "100044000000000000000000",
66
- "destAmount": "99983112870",
67
- "percent": 11.91,
68
- "poolAddresses": ["0x3d8EADb739D1Ef95dd53D718e4810721837c69c1"],
69
- "data": {
70
- "i": 1,
71
- "j": 2,
72
- "exchange": "0x3d8EADb739D1Ef95dd53D718e4810721837c69c1",
73
- "originalPoolAddress": "0xc7c939A474CB10EB837894D1ed1a77C61B268Fa7",
74
- "swapType": 2,
75
- "gasUSD": "0.064919"
76
- }
77
- },
78
- {
79
- "exchange": "CurveV1",
80
- "srcAmount": "99960000000000000000000",
81
- "destAmount": "99983112870",
82
- "percent": 11.9,
83
- "poolAddresses": ["0x445fe580ef8d70ff569ab36e80c647af338db351"],
84
- "data": {
85
- "exchange": "0x445fe580ef8d70ff569ab36e80c647af338db351",
86
- "i": 0,
87
- "j": 1,
88
- "underlyingSwap": true,
89
- "deadline": 0,
90
- "gasUSD": "0.063064"
91
- }
92
- },
93
- {
94
- "exchange": "UniswapV3",
95
- "srcAmount": "180012000000000000000000",
96
- "destAmount": "179998004091",
97
- "percent": 21.43,
98
- "poolAddresses": ["0x5645dcb64c059aa11212707fbf4e7f984440a8cf"],
99
- "data": {
100
- "path": [
101
- {
102
- "tokenIn": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
103
- "tokenOut": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
104
- "fee": "100",
105
- "currentFee": "100"
106
- }
107
- ],
108
- "gasUSD": "0.033572"
109
- }
110
- },
111
- {
112
- "exchange": "QuickSwapV3",
113
- "srcAmount": "39984000000000000000000",
114
- "destAmount": "40000115560",
115
- "percent": 4.76,
116
- "poolAddresses": ["0xe7e0eb9f6bcccfe847fdf62a3628319a092f11a2"],
117
- "data": {
118
- "feeOnTransfer": false,
119
- "path": [
120
- {
121
- "tokenIn": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
122
- "tokenOut": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174"
123
- }
124
- ],
125
- "gasUSD": "0.020218"
126
- }
127
- },
128
- {
129
- "exchange": "IronV2",
130
- "srcAmount": "19992000000000000000000",
131
- "destAmount": "19998736759",
132
- "percent": 2.38,
133
- "poolAddresses": ["0x837503e8A8753ae17fB8C8151B8e6f586defCb57"],
134
- "data": {
135
- "i": "2",
136
- "j": "0",
137
- "exchange": "0x837503e8A8753ae17fB8C8151B8e6f586defCb57",
138
- "deadline": "1708006309",
139
- "gasUSD": "0.037096"
140
- }
141
- },
142
- {
143
- "exchange": "Synapse",
144
- "srcAmount": "59976000000000000000000",
145
- "destAmount": "60001217795",
146
- "percent": 7.14,
147
- "poolAddresses": ["0x85fCD7Dd0a1e1A9FCD5FD886ED522dE8221C3EE5"],
148
- "data": {
149
- "i": "1",
150
- "j": "2",
151
- "exchange": "0x85fCD7Dd0a1e1A9FCD5FD886ED522dE8221C3EE5",
152
- "deadline": "1708006309",
153
- "gasUSD": "0.037096"
154
- }
155
- }
156
- ]
157
- },
158
- {
159
- "srcToken": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
160
- "srcDecimals": 6,
161
- "destToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
162
- "destDecimals": 18,
163
- "swapExchanges": [
164
- {
165
- "exchange": "QuickSwap",
166
- "srcAmount": "19989693031",
167
- "destAmount": "21769520332929290731668",
168
- "percent": 2.38,
169
- "poolAddresses": ["0x6e7a5FAFcec6BB1e78bAE2A1F0B612012BF14827"],
170
- "data": {
171
- "router": "0xf3938337F7294fEf84e9B2c6D548A93F956Cc281",
172
- "path": [
173
- "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
174
- "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"
175
- ],
176
- "factory": "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32",
177
- "initCode": "0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f",
178
- "feeFactor": 10000,
179
- "pools": [
180
- {
181
- "address": "0x6e7a5FAFcec6BB1e78bAE2A1F0B612012BF14827",
182
- "fee": 30,
183
- "direction": false
184
- }
185
- ],
186
- "gasUSD": "0.016693"
187
- }
188
- },
189
- {
190
- "exchange": "UniswapV3",
191
- "srcAmount": "19989693031",
192
- "destAmount": "21867362268311980202315",
193
- "percent": 2.38,
194
- "poolAddresses": ["0x88f3c15523544835ff6c738ddb30995339ad57d6"],
195
- "data": {
196
- "path": [
197
- {
198
- "tokenIn": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
199
- "tokenOut": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
200
- "fee": "3000",
201
- "currentFee": "3000"
202
- }
203
- ],
204
- "gasUSD": "0.042475"
205
- }
206
- },
207
- {
208
- "exchange": "UniswapV3",
209
- "srcAmount": "239960306677",
210
- "destAmount": "263357424900701573606443",
211
- "percent": 28.57,
212
- "poolAddresses": ["0xa374094527e1673a86de625aa59517c5de346d32"],
213
- "data": {
214
- "path": [
215
- {
216
- "tokenIn": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
217
- "tokenOut": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
218
- "fee": "500",
219
- "currentFee": "500"
220
- }
221
- ],
222
- "gasUSD": "0.149313"
223
- }
224
- },
225
- {
226
- "exchange": "Retro",
227
- "srcAmount": "19989693031",
228
- "destAmount": "21754649682276739378014",
229
- "percent": 2.38,
230
- "poolAddresses": ["0xec15624fbb314eb05baad4ca49b7904c0cb6b645"],
231
- "data": {
232
- "path": [
233
- {
234
- "tokenIn": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
235
- "tokenOut": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
236
- "fee": "500",
237
- "currentFee": "500"
238
- }
239
- ],
240
- "gasUSD": "0.038024"
241
- }
242
- },
243
- {
244
- "exchange": "QuickSwapV3",
245
- "srcAmount": "100032455461",
246
- "destAmount": "109587421616586534184707",
247
- "percent": 11.91,
248
- "poolAddresses": ["0xae81fac689a1b4b1e06e7ef4a2ab4cd8ac0a087d"],
249
- "data": {
250
- "feeOnTransfer": false,
251
- "path": [
252
- {
253
- "tokenIn": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
254
- "tokenOut": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"
255
- }
256
- ],
257
- "gasUSD": "0.046927"
258
- }
259
- },
260
- {
261
- "exchange": "WooFiV2",
262
- "srcAmount": "439941227292",
263
- "destAmount": "488293077470121921493733",
264
- "percent": 52.38,
265
- "poolAddresses": ["0x7081a38158bd050ae4a86e38e0225bc281887d7e"],
266
- "data": {
267
- "gasUSD": "0.026895"
268
- }
269
- }
270
- ]
271
- }
272
- ]
273
- },
274
- {
275
- "percent": 6,
276
- "swaps": [
277
- {
278
- "srcToken": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
279
- "srcDecimals": 18,
280
- "destToken": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
281
- "destDecimals": 6,
282
- "swapExchanges": [
283
- {
284
- "exchange": "UniswapV3",
285
- "srcAmount": "19998000000000000000000",
286
- "destAmount": "19988244274",
287
- "percent": 33.33,
288
- "poolAddresses": ["0x254aa3a898071d6a2da0db11da73b02b4646078f"],
289
- "data": {
290
- "path": [
291
- {
292
- "tokenIn": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
293
- "tokenOut": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
294
- "fee": "100",
295
- "currentFee": "100"
296
- }
297
- ],
298
- "gasUSD": "0.033572"
299
- }
300
- },
301
- {
302
- "exchange": "QuickSwapV3",
303
- "srcAmount": "40002000000000000000000",
304
- "destAmount": "39909094204",
305
- "percent": 66.67,
306
- "poolAddresses": ["0xeffa9e5e63ba18160ee26bda56b42f3368719615"],
307
- "data": {
308
- "feeOnTransfer": false,
309
- "path": [
310
- {
311
- "tokenIn": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
312
- "tokenOut": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f"
313
- }
314
- ],
315
- "gasUSD": "0.020218"
316
- }
317
- }
318
- ]
319
- },
320
- {
321
- "srcToken": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
322
- "srcDecimals": 6,
323
- "destToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
324
- "destDecimals": 18,
325
- "swapExchanges": [
326
- {
327
- "exchange": "UniswapV3",
328
- "srcAmount": "3755563123",
329
- "destAmount": "4158832331191938325239",
330
- "percent": 6.27,
331
- "poolAddresses": ["0x781067ef296e5c4a4203f81c593274824b7c185d"],
332
- "data": {
333
- "path": [
334
- {
335
- "tokenIn": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
336
- "tokenOut": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
337
- "fee": "3000",
338
- "currentFee": "3000"
339
- }
340
- ],
341
- "gasUSD": "0.024669"
342
- }
343
- },
344
- {
345
- "exchange": "UniswapV3",
346
- "srcAmount": "48630649110",
347
- "destAmount": "53895171464842383258084",
348
- "percent": 81.19,
349
- "poolAddresses": ["0x9b08288c3be4f62bbf8d1c20ac9c5e6f9467d8b7"],
350
- "data": {
351
- "path": [
352
- {
353
- "tokenIn": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
354
- "tokenOut": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
355
- "fee": "500",
356
- "currentFee": "500"
357
- }
358
- ],
359
- "gasUSD": "0.051379"
360
- }
361
- },
362
- {
363
- "exchange": "QuickSwapV3",
364
- "srcAmount": "7511126245",
365
- "destAmount": "8324275732249118952340",
366
- "percent": 12.54,
367
- "poolAddresses": ["0x5b41eedcfc8e0ae47493d4945aa1ae4fe05430ff"],
368
- "data": {
369
- "feeOnTransfer": false,
370
- "path": [
371
- {
372
- "tokenIn": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
373
- "tokenOut": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"
374
- }
375
- ],
376
- "gasUSD": "0.024669"
377
- }
378
- }
379
- ]
380
- }
381
- ]
382
- },
383
- {
384
- "percent": 10,
385
- "swaps": [
386
- {
387
- "srcToken": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
388
- "srcDecimals": 18,
389
- "destToken": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
390
- "destDecimals": 6,
391
- "swapExchanges": [
392
- {
393
- "exchange": "UniswapV3",
394
- "srcAmount": "100000000000000000000000",
395
- "destAmount": "100009530969",
396
- "percent": 100,
397
- "poolAddresses": ["0xf369277650ad6654f25412ea8bfbd5942733babc"],
398
- "data": {
399
- "path": [
400
- {
401
- "tokenIn": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
402
- "tokenOut": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
403
- "fee": "100",
404
- "currentFee": "100"
405
- }
406
- ],
407
- "gasUSD": "0.033572"
408
- }
409
- }
410
- ]
411
- },
412
- {
413
- "srcToken": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
414
- "srcDecimals": 6,
415
- "destToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
416
- "destDecimals": 18,
417
- "swapExchanges": [
418
- {
419
- "exchange": "UniswapV3",
420
- "srcAmount": "6000571858",
421
- "destAmount": "6621946843827349051054",
422
- "percent": 6,
423
- "poolAddresses": ["0x2db87c4831b2fec2e35591221455834193b50d1b"],
424
- "data": {
425
- "path": [
426
- {
427
- "tokenIn": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
428
- "tokenOut": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
429
- "fee": "3000",
430
- "currentFee": "3000"
431
- }
432
- ],
433
- "gasUSD": "0.029121"
434
- }
435
- },
436
- {
437
- "exchange": "UniswapV3",
438
- "srcAmount": "94008959111",
439
- "destAmount": "103726895853231505667195",
440
- "percent": 94,
441
- "poolAddresses": ["0xb6e57ed85c4c9dbfef2a68711e9d6f36c56e0fcb"],
442
- "data": {
443
- "path": [
444
- {
445
- "tokenIn": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
446
- "tokenOut": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
447
- "fee": "500",
448
- "currentFee": "500"
449
- }
450
- ],
451
- "gasUSD": "0.082540"
452
- }
453
- }
454
- ]
455
- }
456
- ]
457
- }
458
- ],
459
- "gasCostUSD": "1.045537",
460
- "gasCost": "5636861",
461
- "side": "SELL",
462
- "version": "6",
463
- "contractAddress": "0x80492bC2A01172A6796af80576D185018BF34d5B",
464
- "contractMethod": "swapExactAmountIn",
465
- "partnerFee": 0,
466
- "srcUSD": "1002000.0000000000",
467
- "destUSD": "988661.5588050045",
468
- "partner": "anon",
469
- "maxImpactReached": false,
470
- "hmac": "dbdc6a6a30ee9015a028c5337d1e23cc77b3188b"
471
- }
472
- }