@paraswap/dex-lib 4.0.17-statav2 → 4.0.17-usual-pp.0

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 (309) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  5. package/build/abi/usual-m-smart-m/usualM.abi.json +483 -0
  6. package/build/abi/{USDM.json → usual-pp/abi.json} +269 -326
  7. package/build/abi/{angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json → wombat/pool.json} +637 -594
  8. package/build/dex/aave-gsm/config.js +2 -2
  9. package/build/dex/aave-gsm/config.js.map +1 -1
  10. package/build/dex/aave-v1/aave-v1.js +1 -0
  11. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  12. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  13. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  14. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  15. package/build/dex/aave-v2/tokens.js +4 -6
  16. package/build/dex/aave-v2/tokens.js.map +1 -1
  17. package/build/dex/aave-v3/config.js +6 -6
  18. package/build/dex/aave-v3/config.js.map +1 -1
  19. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js +18 -11
  20. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js.map +1 -1
  21. package/build/dex/aave-v3-stata-v2/types.d.ts +18 -4
  22. package/build/dex/aave-v3-stata-v2/types.js.map +1 -1
  23. package/build/dex/bProtocol.d.ts +18 -0
  24. package/build/dex/bProtocol.js +39 -0
  25. package/build/dex/bProtocol.js.map +1 -0
  26. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  27. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  28. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  29. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  30. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  31. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  32. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  33. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  34. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  35. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +34 -0
  36. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +406 -0
  37. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +1 -0
  38. package/build/dex/bancor.d.ts +26 -0
  39. package/build/dex/bancor.js +58 -0
  40. package/build/dex/bancor.js.map +1 -0
  41. package/build/dex/compound.d.ts +18 -0
  42. package/build/dex/compound.js +46 -0
  43. package/build/dex/compound.js.map +1 -0
  44. package/build/dex/curve-v2.d.ts +58 -0
  45. package/build/dex/curve-v2.js +180 -0
  46. package/build/dex/curve-v2.js.map +1 -0
  47. package/build/dex/dodo-v1.d.ts +33 -0
  48. package/build/dex/dodo-v1.js +63 -0
  49. package/build/dex/dodo-v1.js.map +1 -0
  50. package/build/dex/fluid-dex/fluid-dex.d.ts +0 -1
  51. package/build/dex/fluid-dex/fluid-dex.js +4 -7
  52. package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
  53. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  54. package/build/dex/inception/inception-event-pool.js +7 -9
  55. package/build/dex/inception/inception-event-pool.js.map +1 -1
  56. package/build/dex/inception/inception.d.ts +6 -6
  57. package/build/dex/inception/inception.js +16 -40
  58. package/build/dex/inception/inception.js.map +1 -1
  59. package/build/dex/inception/utils.d.ts +1 -0
  60. package/build/dex/inception/utils.js +22 -1
  61. package/build/dex/inception/utils.js.map +1 -1
  62. package/build/dex/index.js +2 -2
  63. package/build/dex/index.js.map +1 -1
  64. package/build/dex/lido.d.ts +19 -0
  65. package/build/dex/lido.js +42 -0
  66. package/build/dex/lido.js.map +1 -0
  67. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  68. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  69. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  70. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  71. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  72. package/build/dex/onebit.d.ts +25 -0
  73. package/build/dex/onebit.js +42 -0
  74. package/build/dex/onebit.js.map +1 -0
  75. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +3 -9
  76. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -1
  77. package/build/dex/platypus/platypus.js +17 -3
  78. package/build/dex/platypus/platypus.js.map +1 -1
  79. package/build/dex/smoothy.d.ts +26 -0
  80. package/build/dex/smoothy.js +48 -0
  81. package/build/dex/smoothy.js.map +1 -0
  82. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  83. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  84. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  85. package/build/dex/stable-pool.d.ts +28 -0
  86. package/build/dex/stable-pool.js +55 -0
  87. package/build/dex/stable-pool.js.map +1 -0
  88. package/build/dex/stkgho/config.js +2 -2
  89. package/build/dex/stkgho/config.js.map +1 -1
  90. package/build/dex/swaap-v1/swaap-v1.js +4 -0
  91. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  92. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
  93. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
  94. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
  95. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  96. package/build/dex/trader-joe-v2.1.js +79 -0
  97. package/build/dex/trader-joe-v2.1.js.map +1 -0
  98. package/build/dex/uniswap-v3/config.js +25 -0
  99. package/build/dex/uniswap-v3/config.js.map +1 -1
  100. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  101. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  102. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  103. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  104. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  105. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  106. package/build/dex/uniswap-v3/uniswap-v3-pool.js +3 -9
  107. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  108. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  109. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  110. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  111. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  112. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  113. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  114. package/build/dex/usual/usual-m-smart-m.d.ts +17 -0
  115. package/build/dex/usual/usual-m-smart-m.js +50 -0
  116. package/build/dex/usual/usual-m-smart-m.js.map +1 -0
  117. package/build/dex/usual/usual.js +1 -1
  118. package/build/dex/usual/usual.js.map +1 -1
  119. package/build/dex/usual-m-smart-m/config.d.ts +3 -0
  120. package/build/dex/usual-m-smart-m/config.js +13 -0
  121. package/build/dex/usual-m-smart-m/config.js.map +1 -0
  122. package/build/dex/usual-m-smart-m/types.d.ts +7 -0
  123. package/build/dex/usual-m-smart-m/types.js +3 -0
  124. package/build/dex/usual-m-smart-m/types.js.map +1 -0
  125. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +35 -0
  126. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +161 -0
  127. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +1 -0
  128. package/build/dex/usual-m-usd0/config.d.ts +3 -0
  129. package/build/dex/usual-m-usd0/config.js +14 -0
  130. package/build/dex/usual-m-usd0/config.js.map +1 -0
  131. package/build/dex/usual-m-usd0/types.d.ts +8 -0
  132. package/build/dex/usual-m-usd0/types.js +3 -0
  133. package/build/dex/usual-m-usd0/types.js.map +1 -0
  134. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +35 -0
  135. package/build/dex/usual-m-usd0/usual-m-usd0.js +159 -0
  136. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +1 -0
  137. package/build/dex/usual-pp/config.d.ts +3 -0
  138. package/build/dex/usual-pp/config.js +19 -0
  139. package/build/dex/usual-pp/config.js.map +1 -0
  140. package/build/dex/usual-pp/pool.d.ts +17 -0
  141. package/build/dex/usual-pp/pool.js +57 -0
  142. package/build/dex/usual-pp/pool.js.map +1 -0
  143. package/build/dex/usual-pp/types.d.ts +15 -0
  144. package/build/dex/usual-pp/types.js +3 -0
  145. package/build/dex/usual-pp/types.js.map +1 -0
  146. package/build/dex/usual-pp/usual-pp.d.ts +36 -0
  147. package/build/dex/usual-pp/usual-pp.js +167 -0
  148. package/build/dex/usual-pp/usual-pp.js.map +1 -0
  149. package/build/dex/usual-pp/utils.d.ts +4 -0
  150. package/build/dex/usual-pp/utils.js +18 -0
  151. package/build/dex/usual-pp/utils.js.map +1 -0
  152. package/package.json +2 -2
  153. package/src/abi/{aavev3statav2/Token.json → usual-pp/abi.json} +223 -470
  154. package/src/dex/aave-gsm/config.ts +3 -3
  155. package/src/dex/aave-v2/tokens.ts +4 -3
  156. package/src/dex/aave-v3/config.ts +7 -6
  157. package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +0 -28
  158. package/src/dex/fluid-dex/fluid-dex.ts +9 -14
  159. package/src/dex/index.ts +2 -2
  160. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +9 -9
  161. package/src/dex/stkgho/config.ts +3 -3
  162. package/src/dex/uniswap-v3/config.ts +26 -0
  163. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +9 -9
  164. package/src/dex/usual/usual.ts +1 -1
  165. package/src/dex/usual-pp/config.ts +18 -0
  166. package/src/dex/usual-pp/pool.ts +77 -0
  167. package/src/dex/usual-pp/types.ts +12 -0
  168. package/src/dex/usual-pp/usual-events.test.ts +70 -0
  169. package/src/dex/usual-pp/usual-integration.test.ts +143 -0
  170. package/src/dex/usual-pp/usual-pp.e2e.test.ts +76 -0
  171. package/src/dex/usual-pp/usual-pp.ts +208 -0
  172. package/src/dex/usual-pp/utils.ts +27 -0
  173. package/tests/constants-e2e.ts +1 -16
  174. package/build/abi/Aave_GSM.json +0 -751
  175. package/build/abi/Balancer.json +0 -257
  176. package/build/abi/BalancerV2.json +0 -1179
  177. package/build/abi/RamsesV2Pool.abi.json +0 -1554
  178. package/build/abi/RamsesV2Quoter.abi.json +0 -274
  179. package/build/abi/UniswapV2Router.json +0 -397
  180. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +0 -509
  181. package/build/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
  182. package/build/abi/curve-v1/CurveTokenV1.json +0 -305
  183. package/build/abi/curve-v1/CurveTokenV2.json +0 -318
  184. package/build/abi/curve-v1/CurveV1StableNg.json +0 -1452
  185. package/build/abi/curve-v1/CurveV2Swap.json +0 -700
  186. package/build/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
  187. package/build/abi/curve-v1/FactoryRegistry.json +0 -508
  188. package/build/abi/curve-v1/StableSwapAave.json +0 -1152
  189. package/build/abi/curve-v1/StableSwapBUSD.json +0 -814
  190. package/build/abi/curve-v1/StableSwapCompound.json +0 -814
  191. package/build/abi/curve-v1/StableSwapIDLE.json +0 -1253
  192. package/build/abi/curve-v1/StableSwapPax.json +0 -865
  193. package/build/abi/curve-v1/StableSwapSnow.json +0 -900
  194. package/build/abi/curve-v1/StableSwapUSDN.json +0 -1004
  195. package/build/abi/curve-v1/StableSwapUSDT.json +0 -814
  196. package/build/abi/curve-v1/StableSwapY.json +0 -814
  197. package/build/abi/inception/inception-ineth.json +0 -609
  198. package/build/abi/kyberdmm/kyber-storage.abi.json +0 -824
  199. package/build/abi/kyberdmm.abi.json +0 -1148
  200. package/build/abi/maverick-v2/MaverickV2Quoter.json +0 -278
  201. package/build/abi/nerve/nerve-metapool.json +0 -790
  202. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  203. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
  204. package/build/dex/balancer-v1/balancer-pools.json +0 -33333
  205. package/build/dex/bebop/websocket-fetcher.d.ts +0 -35
  206. package/build/dex/bebop/websocket-fetcher.js +0 -87
  207. package/build/dex/bebop/websocket-fetcher.js.map +0 -1
  208. package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
  209. package/build/dex/idle-dao/idle-dao-pool.js +0 -176
  210. package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
  211. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
  212. package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
  213. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
  214. package/build/dex/idle-dao/scripts.d.ts +0 -9
  215. package/build/dex/idle-dao/scripts.js +0 -552
  216. package/build/dex/idle-dao/scripts.js.map +0 -1
  217. package/build/dex/inception/inception-native.d.ts +0 -43
  218. package/build/dex/inception/inception-native.js +0 -131
  219. package/build/dex/inception/inception-native.js.map +0 -1
  220. package/build/dex/inception/inception-pool.d.ts +0 -18
  221. package/build/dex/inception/inception-pool.js +0 -32
  222. package/build/dex/inception/inception-pool.js.map +0 -1
  223. package/build/dex/inception/inception-price-feed.d.ts +0 -19
  224. package/build/dex/inception/inception-price-feed.js +0 -51
  225. package/build/dex/inception/inception-price-feed.js.map +0 -1
  226. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
  227. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
  228. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
  229. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
  230. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
  231. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
  232. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
  233. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
  234. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
  235. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
  236. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
  237. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
  238. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
  239. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
  240. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
  241. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
  242. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
  243. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
  244. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
  245. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
  246. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
  247. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
  248. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
  249. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
  250. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
  251. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
  252. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
  253. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
  254. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
  255. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
  256. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
  257. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
  258. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
  259. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
  260. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
  261. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
  262. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
  263. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
  264. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
  265. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
  266. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
  267. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
  268. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
  269. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
  270. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
  271. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
  272. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
  273. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
  274. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
  275. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
  276. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
  277. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
  278. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
  279. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
  280. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
  281. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
  282. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
  283. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
  284. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
  285. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
  286. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
  287. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
  288. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
  289. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
  290. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
  291. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
  292. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
  293. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
  294. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
  295. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
  296. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
  297. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
  298. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
  299. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
  300. package/src/abi/aavev3statav2/Factory.json +0 -131
  301. package/src/abi/aavev3statav2/Pool.json +0 -1459
  302. package/src/dex/aave-v2/tokenlist.json +0 -904
  303. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-e2e.test.ts +0 -397
  304. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-integration.test.ts +0 -600
  305. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2.ts +0 -477
  306. package/src/dex/aave-v3-stata-v2/config.ts +0 -24
  307. package/src/dex/aave-v3-stata-v2/tokens.ts +0 -48
  308. package/src/dex/aave-v3-stata-v2/types.ts +0 -41
  309. package/src/dex/aave-v3-stata-v2/utils.ts +0 -88
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.UsualPP = void 0;
40
+ const constants_1 = require("../../constants");
41
+ const CALLDATA_GAS_COST = __importStar(require("../../calldata-gas-cost"));
42
+ const simple_exchange_1 = require("../simple-exchange");
43
+ const bigint_constants_1 = require("../../bigint-constants");
44
+ const pool_1 = require("./pool");
45
+ const abi_1 = require("@ethersproject/abi");
46
+ const abi_json_1 = __importDefault(require("../../abi/usual-pp/abi.json"));
47
+ const config_1 = require("./config");
48
+ const utils_1 = require("../../utils");
49
+ class UsualPP extends simple_exchange_1.SimpleExchange {
50
+ network;
51
+ dexKey;
52
+ dexHelper;
53
+ adapters;
54
+ hasConstantPriceLargeAmounts = false;
55
+ needWrapNative = false;
56
+ isFeeOnTransferSupported = false;
57
+ usualPool;
58
+ usualPoolIface;
59
+ config;
60
+ logger;
61
+ static dexKeysWithNetwork = (0, utils_1.getDexKeysWithNetwork)(config_1.Config);
62
+ constructor(network, dexKey, dexHelper, adapters = {}) {
63
+ super(dexHelper, dexKey);
64
+ this.network = network;
65
+ this.dexKey = dexKey;
66
+ this.dexHelper = dexHelper;
67
+ this.adapters = adapters;
68
+ this.config = config_1.Config[dexKey][network];
69
+ this.logger = dexHelper.getLogger(dexKey);
70
+ this.usualPoolIface = new abi_1.Interface(abi_json_1.default);
71
+ this.usualPool = new pool_1.UsualPool(this.dexKey, dexHelper, this.config.USD0PP.address, this.usualPoolIface, this.logger);
72
+ }
73
+ async initializePricing(blockNumber) {
74
+ await this.usualPool.initialize(blockNumber);
75
+ }
76
+ isUsd0PP(token) {
77
+ return token.toLowerCase() === this.config.USD0PP.address.toLowerCase();
78
+ }
79
+ isUsd0(token) {
80
+ return token.toLowerCase() === this.config.USD0.address.toLowerCase();
81
+ }
82
+ isValidTokens(srcToken, destToken) {
83
+ return this.isUsd0PP(srcToken) && this.isUsd0(destToken);
84
+ }
85
+ getAdapters() {
86
+ return null;
87
+ }
88
+ async getPoolIdentifiers(srcToken, destToken, side, blockNumber) {
89
+ if (!srcToken || !destToken) {
90
+ this.logger.error('Source or destination token is undefined');
91
+ return [];
92
+ }
93
+ const srcTokenAddress = srcToken.address?.toLowerCase();
94
+ const destTokenAddress = destToken.address?.toLowerCase();
95
+ if (!srcTokenAddress || !destTokenAddress) {
96
+ this.logger.error('Source or destination token address is undefined');
97
+ return [];
98
+ }
99
+ if (this.isValidTokens(srcTokenAddress, destTokenAddress)) {
100
+ return [`${this.dexKey}_${this.config.USD0.address}`];
101
+ }
102
+ return [];
103
+ }
104
+ async getPricesVolume(srcToken, destToken, amounts, side, blockNumber, limitPools) {
105
+ if (side === constants_1.SwapSide.BUY) {
106
+ return null;
107
+ }
108
+ const isValidSwap = this.isValidTokens(srcToken.address, destToken.address);
109
+ if (!isValidSwap) {
110
+ return null;
111
+ }
112
+ const price = await this.usualPool.getPrice(blockNumber);
113
+ const unitOut = price;
114
+ const amountsOut = amounts.map(amount => (amount * price) / bigint_constants_1.BI_POWS[this.config.USD0PP.decimals]);
115
+ return [
116
+ {
117
+ unit: unitOut,
118
+ prices: amountsOut,
119
+ data: {},
120
+ poolAddresses: [this.config.USD0.address],
121
+ exchange: this.dexKey,
122
+ gasCost: 70000,
123
+ poolIdentifier: this.dexKey,
124
+ },
125
+ ];
126
+ }
127
+ getCalldataGasCost(poolPrices) {
128
+ return CALLDATA_GAS_COST.DEX_NO_PAYLOAD;
129
+ }
130
+ getAdapterParam(srcToken, destToken, srcAmount, destAmount, data, side) {
131
+ const payload = '0x';
132
+ return {
133
+ targetExchange: this.config.USD0.address,
134
+ payload,
135
+ networkFee: '0',
136
+ };
137
+ }
138
+ async getTopPoolsForToken(tokenAddress, limit) {
139
+ const isUsd0PP = this.isUsd0PP(tokenAddress);
140
+ const isUsd0 = this.isUsd0(tokenAddress);
141
+ if (!(isUsd0PP || isUsd0))
142
+ return [];
143
+ return [
144
+ {
145
+ exchange: this.dexKey,
146
+ address: this.config.USD0PP.address,
147
+ connectorTokens: [isUsd0PP ? this.config.USD0 : this.config.USD0PP],
148
+ liquidityUSD: 1000000000, // Just returning a big number so this DEX will be preferred
149
+ },
150
+ ];
151
+ }
152
+ async getDexParam(srcToken, destToken, srcAmount, destAmount, recipient, data, side) {
153
+ if (this.isUsd0PP(srcToken) && this.isUsd0(destToken)) {
154
+ const exchangeData = this.usualPoolIface.encodeFunctionData('unlockUsd0ppFloorPrice', [srcAmount]);
155
+ return {
156
+ needWrapNative: false,
157
+ dexFuncHasRecipient: false,
158
+ exchangeData,
159
+ targetExchange: this.config.USD0PP.address,
160
+ returnAmountPos: undefined,
161
+ };
162
+ }
163
+ throw new Error('LOGIC ERROR');
164
+ }
165
+ }
166
+ exports.UsualPP = UsualPP;
167
+ //# sourceMappingURL=usual-pp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usual-pp.js","sourceRoot":"","sources":["../../../src/dex/usual-pp/usual-pp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,+CAAoD;AACpD,2EAA6D;AAG7D,wDAAoD;AACpD,6DAAiD;AAEjD,iCAAmC;AACnC,4CAA+C;AAC/C,2EAAuD;AACvD,qCAAkC;AAClC,uCAAoD;AAGpD,MAAa,OAAQ,SAAQ,gCAAc;IAe9B;IACA;IACA;I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I,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAEzC,IAAI,CAAC,CAAC,QAAQ,IAAI,MAAM,CAAC;YAAE,OAAO,EAAE,CAAC;QAErC,OAAO;YACL;gBACE,QAAQ,EAAE,IAAI,CAAC,MAAM;gBACrB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO;gBACnC,eAAe,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;gBACnE,YAAY,EAAE,UAAU,EAAE,4DAA4D;aACvF;SACF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,WAAW,CACf,QAAiB,EACjB,SAAkB,EAClB,SAAyB,EACzB,UAA0B,EAC1B,SAAkB,EAClB,IAAmB,EACnB,IAAc;QAEd,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;YACtD,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,kBAAkB,CACzD,wBAAwB,EACxB,CAAC,SAAS,CAAC,CACZ,CAAC;YAEF,OAAO;gBACL,cAAc,EAAE,KAAK;gBACrB,mBAAmB,EAAE,KAAK;gBAC1B,YAAY;gBACZ,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO;gBAC1C,eAAe,EAAE,SAAS;aAC3B,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;IACjC,CAAC;;AArLH,0BAsLC"}
@@ -0,0 +1,4 @@
1
+ import { Contract } from 'web3-eth-contract';
2
+ import { Interface } from '@ethersproject/abi';
3
+ import { PoolState } from './types';
4
+ export declare function getOnChainState(multiContract: Contract, poolAddress: string, poolInterface: Interface, blockNumber: number | 'latest'): Promise<PoolState>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOnChainState = getOnChainState;
4
+ async function getOnChainState(multiContract, poolAddress, poolInterface, blockNumber) {
5
+ const data = await multiContract.methods
6
+ .aggregate([
7
+ {
8
+ target: poolAddress,
9
+ callData: poolInterface.encodeFunctionData('getFloorPrice', []),
10
+ },
11
+ ])
12
+ .call({}, blockNumber);
13
+ const price = BigInt(poolInterface.decodeFunctionResult('getFloorPrice', data.returnData[0])[0]);
14
+ return {
15
+ price,
16
+ };
17
+ }
18
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/dex/usual-pp/utils.ts"],"names":[],"mappings":";;AAIA,0CAsBC;AAtBM,KAAK,UAAU,eAAe,CACnC,aAAuB,EACvB,WAAmB,EACnB,aAAwB,EACxB,WAA8B;IAE9B,MAAM,IAAI,GAA0B,MAAM,aAAa,CAAC,OAAO;SAC5D,SAAS,CAAC;QACT;YACE,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC,eAAe,EAAE,EAAE,CAAC;SAChE;KACF,CAAC;SACD,IAAI,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IAEzB,MAAM,KAAK,GAAG,MAAM,CAClB,aAAa,CAAC,oBAAoB,CAAC,eAAe,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAC3E,CAAC;IAEF,OAAO;QACL,KAAK;KACN,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraswap/dex-lib",
3
- "version": "4.0.17-statav2",
3
+ "version": "4.0.17-usual-pp.0",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "repository": "https://github.com/paraswap/paraswap-dex-lib",
@@ -54,7 +54,7 @@
54
54
  "@0x/utils": "^4.5.2",
55
55
  "@balancer-labs/balancer-maths": "^0.0.19",
56
56
  "@balancer-labs/sor": "4.1.1-beta.4",
57
- "@bgd-labs/aave-address-book": "4.7.0",
57
+ "@bgd-labs/aave-address-book": "2.21.1",
58
58
  "@ethersproject/abi": "^5.7.0",
59
59
  "@hashflow/sdk": "^2.2.7",
60
60
  "@hashflow/taker-js": "^0.3.7",