@paraswap/dex-lib 3.11.1 → 3.11.2

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 (280) hide show
  1. package/build/abi/Aave_GSM.json +751 -0
  2. package/build/abi/Balancer.json +257 -0
  3. package/build/abi/BalancerV2.json +1179 -0
  4. package/build/abi/RamsesV2Pool.abi.json +1554 -0
  5. package/build/abi/RamsesV2Quoter.abi.json +274 -0
  6. package/build/abi/USDM.json +807 -0
  7. package/build/abi/UniswapV2Router.json +397 -0
  8. package/build/abi/{wombat/pool.json → angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json} +594 -637
  9. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  10. package/build/abi/cables/CablesMainnetRFQ.json +1083 -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/config.js +1 -0
  35. package/build/config.js.map +1 -1
  36. package/build/dex/aave-v1/aave-v1.js +0 -1
  37. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  38. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  39. package/build/dex/bebop/bebop.js +1 -1
  40. package/build/dex/bebop/bebop.js.map +1 -1
  41. package/build/dex/bebop/config.js +5 -0
  42. package/build/dex/bebop/config.js.map +1 -1
  43. package/build/dex/bebop/rate-fetcher.d.ts +3 -1
  44. package/build/dex/bebop/rate-fetcher.js +42 -2
  45. package/build/dex/bebop/rate-fetcher.js.map +1 -1
  46. package/build/dex/bebop/validators.d.ts +2 -0
  47. package/build/dex/bebop/validators.js +9 -1
  48. package/build/dex/bebop/validators.js.map +1 -1
  49. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  50. package/build/dex/bebop/websocket-fetcher.js +87 -0
  51. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  52. package/build/dex/cables/cables.d.ts +57 -0
  53. package/build/dex/cables/cables.js +471 -0
  54. package/build/dex/cables/cables.js.map +1 -0
  55. package/build/dex/cables/config.d.ts +4 -0
  56. package/build/dex/cables/config.js +15 -0
  57. package/build/dex/cables/config.js.map +1 -0
  58. package/build/dex/cables/constants.d.ts +19 -0
  59. package/build/dex/cables/constants.js +26 -0
  60. package/build/dex/cables/constants.js.map +1 -0
  61. package/build/dex/cables/rate-fetcher.d.ts +34 -0
  62. package/build/dex/cables/rate-fetcher.js +106 -0
  63. package/build/dex/cables/rate-fetcher.js.map +1 -0
  64. package/build/dex/cables/types.d.ts +106 -0
  65. package/build/dex/cables/types.js +12 -0
  66. package/build/dex/cables/types.js.map +1 -0
  67. package/build/dex/cables/validators.d.ts +5 -0
  68. package/build/dex/cables/validators.js +49 -0
  69. package/build/dex/cables/validators.js.map +1 -0
  70. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  71. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  72. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  73. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  74. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  75. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  76. package/build/dex/idle-dao/scripts.d.ts +9 -0
  77. package/build/dex/idle-dao/scripts.js +552 -0
  78. package/build/dex/idle-dao/scripts.js.map +1 -0
  79. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  80. package/build/dex/inception/inception-event-pool.js +9 -7
  81. package/build/dex/inception/inception-event-pool.js.map +1 -1
  82. package/build/dex/inception/inception-native.d.ts +43 -0
  83. package/build/dex/inception/inception-native.js +131 -0
  84. package/build/dex/inception/inception-native.js.map +1 -0
  85. package/build/dex/inception/inception-pool.d.ts +18 -0
  86. package/build/dex/inception/inception-pool.js +32 -0
  87. package/build/dex/inception/inception-pool.js.map +1 -0
  88. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  89. package/build/dex/inception/inception-price-feed.js +51 -0
  90. package/build/dex/inception/inception-price-feed.js.map +1 -0
  91. package/build/dex/inception/inception.d.ts +6 -6
  92. package/build/dex/inception/inception.js +40 -16
  93. package/build/dex/inception/inception.js.map +1 -1
  94. package/build/dex/inception/utils.d.ts +0 -1
  95. package/build/dex/inception/utils.js +1 -22
  96. package/build/dex/inception/utils.js.map +1 -1
  97. package/build/dex/platypus/platypus.js +3 -17
  98. package/build/dex/platypus/platypus.js.map +1 -1
  99. package/build/dex/swaap-v1/swaap-v1.js +0 -4
  100. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  101. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  102. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  103. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  104. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  105. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  106. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  107. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  108. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  109. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  110. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  111. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  112. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  113. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  114. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  115. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  116. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  117. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  118. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  119. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  120. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  121. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  122. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  123. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  124. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  125. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  126. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  127. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  128. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  129. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  130. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  131. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  132. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  133. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  134. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  135. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  136. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  137. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  138. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  139. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  140. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  141. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  142. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  143. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  144. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  145. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  146. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  147. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  148. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  149. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  150. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  151. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  152. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  153. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  154. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  155. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  156. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  157. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  158. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  159. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  160. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  161. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  162. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  163. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  164. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  165. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  166. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  167. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  168. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  169. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  170. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  171. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  172. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  173. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  174. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  175. package/build/lib/fetcher/wsFetcher.d.ts +7 -3
  176. package/build/lib/fetcher/wsFetcher.js +64 -51
  177. package/build/lib/fetcher/wsFetcher.js.map +1 -1
  178. package/package.json +4 -2
  179. package/src/config.ts +1 -0
  180. package/src/dex/bebop/bebop-e2e.test.ts +21 -0
  181. package/src/dex/bebop/bebop.json +72 -0
  182. package/src/dex/bebop/bebop.proto +15 -0
  183. package/src/dex/bebop/bebop.ts +1 -1
  184. package/src/dex/bebop/config.ts +5 -0
  185. package/src/dex/bebop/rate-fetcher.ts +51 -6
  186. package/src/dex/bebop/validators.ts +10 -0
  187. package/src/lib/fetcher/wsFetcher.ts +79 -66
  188. package/.vscode/launch.json +0 -53
  189. package/.vscode/settings.json +0 -2
  190. package/.vscode/tasks.json +0 -15
  191. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  192. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  193. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  194. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  195. package/build/dex/bProtocol.d.ts +0 -18
  196. package/build/dex/bProtocol.js +0 -39
  197. package/build/dex/bProtocol.js.map +0 -1
  198. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
  199. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
  200. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
  201. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
  202. package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
  203. package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
  204. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
  205. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
  206. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
  207. package/build/dex/balancer-v3/balancer-v3-pool.d.ts +0 -76
  208. package/build/dex/balancer-v3/balancer-v3-pool.js +0 -383
  209. package/build/dex/balancer-v3/balancer-v3-pool.js.map +0 -1
  210. package/build/dex/balancer-v3/balancer-v3.d.ts +0 -57
  211. package/build/dex/balancer-v3/balancer-v3.js +0 -373
  212. package/build/dex/balancer-v3/balancer-v3.js.map +0 -1
  213. package/build/dex/balancer-v3/config.d.ts +0 -8
  214. package/build/dex/balancer-v3/config.js +0 -24
  215. package/build/dex/balancer-v3/config.js.map +0 -1
  216. package/build/dex/balancer-v3/getOnChainState.d.ts +0 -10
  217. package/build/dex/balancer-v3/getOnChainState.js +0 -158
  218. package/build/dex/balancer-v3/getOnChainState.js.map +0 -1
  219. package/build/dex/balancer-v3/getPoolsApi.d.ts +0 -2
  220. package/build/dex/balancer-v3/getPoolsApi.js +0 -81
  221. package/build/dex/balancer-v3/getPoolsApi.js.map +0 -1
  222. package/build/dex/balancer-v3/getTopPoolsApi.d.ts +0 -13
  223. package/build/dex/balancer-v3/getTopPoolsApi.js +0 -62
  224. package/build/dex/balancer-v3/getTopPoolsApi.js.map +0 -1
  225. package/build/dex/balancer-v3/types.d.ts +0 -63
  226. package/build/dex/balancer-v3/types.js +0 -3
  227. package/build/dex/balancer-v3/types.js.map +0 -1
  228. package/build/dex/bancor.d.ts +0 -26
  229. package/build/dex/bancor.js +0 -58
  230. package/build/dex/bancor.js.map +0 -1
  231. package/build/dex/compound.d.ts +0 -18
  232. package/build/dex/compound.js +0 -46
  233. package/build/dex/compound.js.map +0 -1
  234. package/build/dex/curve-v2.d.ts +0 -58
  235. package/build/dex/curve-v2.js +0 -180
  236. package/build/dex/curve-v2.js.map +0 -1
  237. package/build/dex/dodo-v1.d.ts +0 -33
  238. package/build/dex/dodo-v1.js +0 -63
  239. package/build/dex/dodo-v1.js.map +0 -1
  240. package/build/dex/fluid-dex/fluid-dex-pool.d.ts +0 -47
  241. package/build/dex/fluid-dex/fluid-dex-pool.js +0 -119
  242. package/build/dex/fluid-dex/fluid-dex-pool.js.map +0 -1
  243. package/build/dex/lido.d.ts +0 -19
  244. package/build/dex/lido.js +0 -42
  245. package/build/dex/lido.js.map +0 -1
  246. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  247. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  248. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  249. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  250. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  251. package/build/dex/onebit.d.ts +0 -25
  252. package/build/dex/onebit.js +0 -42
  253. package/build/dex/onebit.js.map +0 -1
  254. package/build/dex/smoothy.d.ts +0 -26
  255. package/build/dex/smoothy.js +0 -48
  256. package/build/dex/smoothy.js.map +0 -1
  257. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  258. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  259. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  260. package/build/dex/stable-pool.d.ts +0 -28
  261. package/build/dex/stable-pool.js +0 -55
  262. package/build/dex/stable-pool.js.map +0 -1
  263. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  264. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  265. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  266. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  267. package/build/dex/trader-joe-v2.1.js +0 -79
  268. package/build/dex/trader-joe-v2.1.js.map +0 -1
  269. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  270. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  271. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  272. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  273. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  274. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  275. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
  276. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
  277. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
  278. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
  279. package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
  280. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraswap/dex-lib",
3
- "version": "3.11.1",
3
+ "version": "3.11.2",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "repository": "https://github.com/paraswap/paraswap-dex-lib",
@@ -58,6 +58,7 @@
58
58
  "@hashflow/sdk": "^2.2.7",
59
59
  "@hashflow/taker-js": "^0.3.7",
60
60
  "@paraswap/core": "2.4.0",
61
+ "@types/ws": "^8.5.12",
61
62
  "async": "^3.2.4",
62
63
  "axios": "0.27.2",
63
64
  "bignumber.js": "9.1.0",
@@ -69,6 +70,7 @@
69
70
  "lodash": "4.17.21",
70
71
  "log4js": "6.6.1",
71
72
  "node-cache": "^5.1.2",
73
+ "protobufjs": "^7.4.0",
72
74
  "ts-essentials": "9.1.2",
73
75
  "uuid": "^9.0.0",
74
76
  "web3": "1.6.0",
@@ -77,7 +79,7 @@
77
79
  "web3-eth-abi": "1.4.0",
78
80
  "web3-eth-contract": "1.6.0",
79
81
  "web3-utils": "1.6.0",
80
- "websocket": "1.0.35"
82
+ "ws": "^8.18.0"
81
83
  },
82
84
  "sideEffects": false
83
85
  }
package/src/config.ts CHANGED
@@ -147,6 +147,7 @@ const baseConfigs: { [network: number]: BaseConfig } = {
147
147
  multicallV2Address: '0xC50F4c1E81c873B2204D7eFf7069Ffec6Fbe136D',
148
148
  privateHttpProvider: process.env.HTTP_PROVIDER_56,
149
149
  augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
150
+ bebopAuthToken: process.env.API_KEY_BEBOP_AUTH_TOKEN || '',
150
151
  executorsAddresses: {
151
152
  Executor01: '0x000010036C0190E009a000d0fc3541100A07380A',
152
153
  Executor02: '0x00C600b30fb0400701010F4b080409018B9006E0',
@@ -192,4 +192,25 @@ describe('Bebop E2E', () => {
192
192
  nativeTokenAmount,
193
193
  );
194
194
  });
195
+
196
+ describe('BSC', () => {
197
+ const network = Network.BSC;
198
+
199
+ const tokenASymbol: string = 'USDT';
200
+ const tokenBSymbol: string = 'ETH';
201
+
202
+ const tokenAAmount: string = '100000000000000000000';
203
+ const tokenBAmount: string = '100000000000000000';
204
+ const nativeTokenAmount = '1000000000000000000';
205
+
206
+ testForNetwork(
207
+ network,
208
+ dexKey,
209
+ tokenASymbol,
210
+ tokenBSymbol,
211
+ tokenAAmount,
212
+ tokenBAmount,
213
+ nativeTokenAmount,
214
+ );
215
+ });
195
216
  });
@@ -0,0 +1,72 @@
1
+ {
2
+ "options": {
3
+ "syntax": "proto3"
4
+ },
5
+ "nested": {
6
+ "bebop": {
7
+ "nested": {
8
+ "PriceUpdate": {
9
+ "oneofs": {
10
+ "_base": {
11
+ "oneof": ["base"]
12
+ },
13
+ "_quote": {
14
+ "oneof": ["quote"]
15
+ },
16
+ "_lastUpdateTs": {
17
+ "oneof": ["lastUpdateTs"]
18
+ }
19
+ },
20
+ "fields": {
21
+ "base": {
22
+ "type": "bytes",
23
+ "id": 1,
24
+ "options": {
25
+ "proto3_optional": true
26
+ }
27
+ },
28
+ "quote": {
29
+ "type": "bytes",
30
+ "id": 2,
31
+ "options": {
32
+ "proto3_optional": true
33
+ }
34
+ },
35
+ "lastUpdateTs": {
36
+ "type": "uint64",
37
+ "id": 3,
38
+ "options": {
39
+ "proto3_optional": true
40
+ }
41
+ },
42
+ "bids": {
43
+ "rule": "repeated",
44
+ "type": "float",
45
+ "id": 4,
46
+ "options": {
47
+ "packed": true
48
+ }
49
+ },
50
+ "asks": {
51
+ "rule": "repeated",
52
+ "type": "float",
53
+ "id": 5,
54
+ "options": {
55
+ "packed": true
56
+ }
57
+ }
58
+ }
59
+ },
60
+ "BebopPricingUpdate": {
61
+ "fields": {
62
+ "pairs": {
63
+ "rule": "repeated",
64
+ "type": "PriceUpdate",
65
+ "id": 1
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+
3
+ package bebop;
4
+
5
+ message PriceUpdate {
6
+ optional bytes base = 1;
7
+ optional bytes quote = 2;
8
+ optional uint64 last_update_ts = 3;
9
+ repeated float bids = 4 [packed=true];
10
+ repeated float asks = 5 [packed=true];
11
+ }
12
+
13
+ message BebopPricingUpdate {
14
+ repeated PriceUpdate pairs = 1;
15
+ }
@@ -120,7 +120,7 @@ export class Bebop extends SimpleExchange implements IDex<BebopData> {
120
120
  pricesReqParams: {
121
121
  url:
122
122
  BEBOP_WS_API_URL +
123
- `/pmm/${BebopConfig['Bebop'][network].chainName}/v3/pricing`,
123
+ `/pmm/${BebopConfig['Bebop'][network].chainName}/v3/pricing?format=protobuf`,
124
124
  headers: {
125
125
  name: BEBOP_AUTH_NAME,
126
126
  authorization: this.bebopAuthToken,
@@ -33,5 +33,10 @@ export const BebopConfig: DexConfigMap<DexParams> = {
33
33
  chainName: 'optimism',
34
34
  middleTokens: ['0x7F5c764cBc14f9669B88837ca1490cCa17c31607'],
35
35
  },
36
+ [Network.BSC]: {
37
+ settlementAddress: '0xbbbbbBB520d69a9775E85b458C58c648259FAD5F',
38
+ chainName: 'bsc',
39
+ middleTokens: ['0x55d398326f99059fF775485246999027B3197955'],
40
+ },
36
41
  },
37
42
  };
@@ -1,15 +1,30 @@
1
1
  import { ETHER_ADDRESS, Network } from '../../constants';
2
2
  import { IDexHelper } from '../../dex-helper';
3
3
  import { Fetcher } from '../../lib/fetcher/fetcher';
4
- import { validateAndCast } from '../../lib/validators';
4
+ import { validateAndCast, ValidationError } from '../../lib/validators';
5
5
  import { Logger, Token } from '../../types';
6
6
  import {
7
+ BebopLevel,
8
+ BebopPair,
7
9
  BebopPricingResponse,
8
10
  BebopRateFetcherConfig,
9
11
  BebopTokensResponse,
10
12
  } from './types';
11
- import { pricesResponseValidator, tokensResponseValidator } from './validators';
13
+ import {
14
+ BebopPricingUpdate,
15
+ pricesResponseValidator,
16
+ tokensResponseValidator,
17
+ } from './validators';
12
18
  import { WebSocketFetcher } from '../../lib/fetcher/wsFetcher';
19
+ import { utils } from 'ethers';
20
+
21
+ export function levels_from_flat_array(values: number[]): BebopLevel[] {
22
+ const levels: BebopLevel[] = [];
23
+ for (let i = 0; i < values.length; i += 2) {
24
+ levels.push([values[i], values[i + 1]]);
25
+ }
26
+ return levels;
27
+ }
13
28
 
14
29
  export class RateFetcher {
15
30
  private pricesFetcher: WebSocketFetcher<BebopPricingResponse>;
@@ -35,10 +50,16 @@ export class RateFetcher {
35
50
  info: {
36
51
  requestOptions: config.rateConfig.pricesReqParams,
37
52
  caster: (data: unknown) => {
38
- return validateAndCast<BebopPricingResponse>(
39
- data,
40
- pricesResponseValidator,
41
- );
53
+ const dataBuffer = data as any;
54
+ const invalid = BebopPricingUpdate.verify(dataBuffer);
55
+ if (invalid) {
56
+ throw new ValidationError(invalid);
57
+ }
58
+ const update = BebopPricingUpdate.decode(dataBuffer);
59
+ const updateObject = BebopPricingUpdate.toObject(update, {
60
+ longs: Number,
61
+ });
62
+ return this.parsePricingUpdate(updateObject);
42
63
  },
43
64
  },
44
65
  handler: this.handlePricesResponse.bind(this),
@@ -68,6 +89,30 @@ export class RateFetcher {
68
89
  );
69
90
  }
70
91
 
92
+ parsePricingUpdate(updateObject: any): BebopPricingResponse {
93
+ const pricingResponse: BebopPricingResponse = {};
94
+ if (!updateObject.pairs || !updateObject.pairs.length) {
95
+ this.logger.warn('Update message did not include pairs', updateObject);
96
+ return pricingResponse;
97
+ }
98
+ for (const pairBook of updateObject.pairs) {
99
+ const pair =
100
+ utils.getAddress('0x' + pairBook.base.toString('hex')) +
101
+ '/' +
102
+ utils.getAddress('0x' + pairBook.quote.toString('hex'));
103
+ const lastUpdateTs = pairBook.lastUpdateTs;
104
+ const bids = pairBook.bids ? levels_from_flat_array(pairBook.bids) : [];
105
+ const asks = pairBook.asks ? levels_from_flat_array(pairBook.asks) : [];
106
+ const bebopPair: BebopPair = {
107
+ bids,
108
+ asks,
109
+ last_update_ts: lastUpdateTs,
110
+ };
111
+ pricingResponse[pair] = bebopPair;
112
+ }
113
+ return pricingResponse;
114
+ }
115
+
71
116
  start() {
72
117
  this.pricesFetcher.startPolling();
73
118
  this.tokensFetcher.startPolling();
@@ -1,4 +1,6 @@
1
1
  import joi from 'joi';
2
+ import protobuf from 'protobufjs';
3
+ import JSONDescriptor from './bebop.json';
2
4
 
3
5
  const levelValidator = joi.array().items(joi.number()).length(2);
4
6
 
@@ -27,3 +29,11 @@ export const tokensResponseValidator = joi.object({
27
29
  export const blacklistResponseValidator = joi.object({
28
30
  blacklist: joi.array().items(joi.string().min(1)).required(),
29
31
  });
32
+
33
+ // Original .proto def
34
+ // const root = protobuf.loadSync(__dirname + '/bebop.proto');
35
+ // Use .json to not change build step to include .proto files
36
+ // console.log(JSON.stringify(root.toJSON(), null, 4));
37
+
38
+ const root = protobuf.Root.fromJSON(JSONDescriptor);
39
+ export const BebopPricingUpdate = root.lookupType('bebop.BebopPricingUpdate');
@@ -1,10 +1,6 @@
1
1
  import { Logger } from 'log4js';
2
2
  import { RequestConfig, Response } from '../../dex-helper/irequest-wrapper';
3
- import {
4
- connection as WebSocketConnection,
5
- client as WebSocketClient,
6
- } from 'websocket';
7
-
3
+ import WebSocket from 'ws';
8
4
  export class SkippingRequest {
9
5
  constructor(public message = '') {}
10
6
  }
@@ -26,74 +22,77 @@ export type RequestInfoWithHandler<T> = {
26
22
 
27
23
  export class WebSocketFetcher<T> {
28
24
  private requests: RequestInfoWithHandler<T>;
25
+ // Time to wait before declaring connection as broken and restarting it
26
+ private timeoutInterval: number;
27
+ // Time to wait after disconnection before reconnecting
28
+ private reconnectDelay: number;
29
+ private pingTimeout: NodeJS.Timeout | undefined = undefined;
29
30
  public lastFetchSucceeded: boolean = false;
30
31
  private stop: boolean = true;
31
- private ws: WebSocketClient = new WebSocketClient();
32
- private connection: WebSocketConnection | null = null;
33
-
34
- constructor(requestsInfo: RequestInfoWithHandler<T>, private logger: Logger) {
32
+ private connection: WebSocket | null = null;
33
+
34
+ constructor(
35
+ requestsInfo: RequestInfoWithHandler<T>,
36
+ private logger: Logger,
37
+ timeoutInterval: number = 10000,
38
+ reconnectDelay: number = 5000,
39
+ ) {
35
40
  this.requests = requestsInfo;
36
- this.ws.on('connect', this.connected.bind(this));
37
- this.ws.on('connectFailed', this.connectFailed.bind(this));
41
+ this.timeoutInterval = timeoutInterval;
42
+ this.reconnectDelay = reconnectDelay;
38
43
  }
39
44
 
40
- private connected(connection: WebSocketConnection) {
41
- this.connection = connection;
45
+ private connected() {
42
46
  this.logger.info(`Connected to ${this.requests.info.requestOptions.url}`);
43
- this.connection.on('error', this.onError.bind(this));
44
- this.connection.on('close', this.onClose.bind(this));
45
- this.connection.on('message', this.onMessage.bind(this));
47
+ this.heartbeat();
46
48
  }
47
49
 
48
- private connectFailed(error: any) {
49
- this.logger.error(`Connect Error: ${error.toString()}. Reconnecting...`);
50
- // reconnect on errors / failures
51
- setTimeout(() => {
52
- this.startPolling();
53
- }, 3000);
50
+ private heartbeat() {
51
+ clearTimeout(this.pingTimeout);
52
+ this.pingTimeout = setTimeout(() => {
53
+ this.logger.warn('No heartbeat. Terminating Connection...');
54
+ this?.connection?.terminate();
55
+ }, this.timeoutInterval);
54
56
  }
55
57
 
56
58
  private onClose() {
57
- this.logger.info(`Connection closed. Reconnecting...`);
58
- // reconnect on errors / failures
59
- setTimeout(() => {
60
- this.startPolling();
61
- }, 3000);
59
+ this.logger.info(`Connection closed.`);
60
+ // Do not reconnect if polling is stopped
61
+ if (this.stop) {
62
+ clearTimeout(this.pingTimeout);
63
+ return;
64
+ }
65
+
66
+ this.logger.info(`Unexpected closure, Reconnecting...`);
67
+ this.reconnectWithDelay();
62
68
  }
63
69
 
64
70
  private onError(error: any) {
65
71
  this.logger.error(
66
- `Connection Error: ${error.toString()}. Stopping & Reconnecting...`,
72
+ `Websocket Error: ${error.toString()}. Stopping & Reconnecting...`,
67
73
  );
68
- this.stopPolling();
69
-
70
- // reconnect on errors / failures
71
- setTimeout(() => {
72
- this.startPolling();
73
- }, 3000);
74
+ this?.connection?.terminate();
74
75
  }
75
76
 
76
- private onMessage(message: any) {
77
- if (message.type === 'utf8') {
78
- const response = JSON.parse(message.utf8Data) as Response<T>;
79
- const reqInfo = this.requests;
80
- const info = reqInfo.info;
81
- const options = reqInfo.info.requestOptions;
82
- this.logger.debug(`(${options.url}) received new data`);
83
-
84
- try {
85
- const parsedData = info.caster(response);
86
- reqInfo.handler(parsedData);
87
- } catch (e) {
88
- this.logger.info(e);
89
- this.logger.info(
90
- `(${options.url}) received incorrect data ${JSON.stringify(
91
- response,
92
- ).replace(/(?:\r\n|\r|\n)/g, ' ')}`,
93
- e,
94
- );
95
- return;
96
- }
77
+ private onMessage(data: WebSocket.RawData) {
78
+ this.heartbeat();
79
+ const reqInfo = this.requests;
80
+ const info = reqInfo.info;
81
+ const options = reqInfo.info.requestOptions;
82
+ this.logger.debug(`(${options.url}) received new data`);
83
+
84
+ try {
85
+ const parsedData = info.caster(data);
86
+ reqInfo.handler(parsedData);
87
+ } catch (e) {
88
+ this.logger.info(e);
89
+ this.logger.info(
90
+ `(${options.url}) received incorrect data ${JSON.stringify(
91
+ data,
92
+ ).replace(/(?:\r\n|\r|\n)/g, ' ')}`,
93
+ e,
94
+ );
95
+ return;
97
96
  }
98
97
  }
99
98
 
@@ -110,30 +109,44 @@ export class WebSocketFetcher<T> {
110
109
  this.logger.info(
111
110
  `Connecting to ${this.requests.info.requestOptions.url}...`,
112
111
  );
113
- this.ws.connect(
114
- this.requests.info.requestOptions.url!,
115
- undefined,
116
- undefined,
117
- {
112
+ const ws = new WebSocket(this.requests.info.requestOptions.url!, {
113
+ headers: {
118
114
  Authorization: authorization,
119
115
  name: name,
120
116
  },
121
- );
117
+ });
118
+
119
+ ws.on('open', this.connected.bind(this));
120
+ ws.on('message', this.onMessage.bind(this));
121
+ ws.on('error', this.onError.bind(this));
122
+ ws.on('close', this.onClose.bind(this));
123
+ this.connection = ws;
122
124
  }
123
125
 
124
- startPolling(): void {
125
- this.stop = false;
126
+ reconnectWithDelay() {
127
+ this.logger.info(`Waiting ${this.reconnectDelay}ms before reconnecting...`);
128
+ clearTimeout(this.pingTimeout);
129
+ setTimeout(() => {
130
+ this.reconnect();
131
+ }, this.reconnectDelay);
132
+ }
133
+
134
+ reconnect() {
135
+ clearTimeout(this.pingTimeout);
126
136
  this.connect();
127
137
  this.logger.info(
128
138
  `Connection started for ${this.requests.info.requestOptions.url}`,
129
139
  );
130
140
  }
131
141
 
142
+ startPolling(): void {
143
+ this.stop = false;
144
+ this.reconnect();
145
+ }
146
+
132
147
  stopPolling() {
133
- if (this.connection) {
134
- this.connection.close();
135
- }
136
148
  this.stop = true;
149
+ this.connection?.terminate();
137
150
  this.logger.info(
138
151
  `Connection stopped for ${this.requests.info.requestOptions.url}`,
139
152
  );
@@ -1,53 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "type": "node",
6
- "request": "launch",
7
- "name": "Current",
8
- "program": "${file}",
9
- "preLaunchTask": "npm: build",
10
- "sourceMaps": true,
11
- "smartStep": true,
12
- "internalConsoleOptions": "openOnSessionStart",
13
- "outFiles": ["${workspaceFolder}/build/**/*.js"]
14
- },
15
- {
16
- "type": "node",
17
- "request": "launch",
18
- "name": "Debug dex integration",
19
- "program": "${workspaceFolder}/node_modules/ts-node/dist/bin.js",
20
- "args": [
21
- "--project",
22
- "tsconfig.json",
23
- // "${workspaceFolder}/src/dex/algebra/scripts/validate-state.ts",
24
- "${workspaceFolder}/src/dex/camelot/camelot-pool-discovery.test.ts",
25
- // "${workspaceFolder}/src/dex/solidly-v3/scripts/check-event-pool-event.ts",
26
- // "${workspaceFolder}/scripts/dex-integration.ts",
27
- "test",
28
- "wombat"
29
- ],
30
- "console": "integratedTerminal",
31
- "internalConsoleOptions": "neverOpen",
32
- "runtimeArgs": ["--nolazy"],
33
- "sourceMaps": true,
34
- "smartStep": true,
35
- "skipFiles": ["<node_internals>/**"],
36
- "cwd": "${workspaceFolder}"
37
- },
38
- {
39
- "type": "node",
40
- "name": "Jest file",
41
- "request": "launch",
42
- "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
43
- // "program": "${workspaceFolder}/src/dex/camelot/scripts/validate-state.ts",
44
- // "args": ["src/dex/balancer-v1/balancer-v1-e2e.test.ts"],
45
- // "args": ["${relativeFile}"],
46
- "args": ["${file}"],
47
- "cwd": "${workspaceRoot}",
48
- "console": "integratedTerminal",
49
- "internalConsoleOptions": "neverOpen",
50
- "sourceMaps": true
51
- }
52
- ]
53
- }
@@ -1,2 +0,0 @@
1
- {
2
- }
@@ -1,15 +0,0 @@
1
- {
2
- "version": "2.0.0",
3
- "tasks": [
4
- {
5
- "label": "tsc: build - tsconfig.json",
6
- "type": "typescript",
7
- "tsconfig": "tsconfig.json",
8
- "problemMatcher": ["$tsc"],
9
- "group": {
10
- "kind": "build",
11
- "isDefault": true
12
- }
13
- }
14
- ]
15
- }
@@ -1,52 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "components": [
6
- { "internalType": "bytes", "name": "path", "type": "bytes" },
7
- { "internalType": "address", "name": "recipient", "type": "address" },
8
- { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
9
- {
10
- "internalType": "uint256",
11
- "name": "amountOutMinimum",
12
- "type": "uint256"
13
- }
14
- ],
15
- "internalType": "struct ISwapRouter.ExactInputParams",
16
- "name": "params",
17
- "type": "tuple"
18
- }
19
- ],
20
- "name": "exactInput",
21
- "outputs": [
22
- { "internalType": "uint256", "name": "amountOut", "type": "uint256" }
23
- ],
24
- "stateMutability": "payable",
25
- "type": "function"
26
- },
27
- {
28
- "inputs": [
29
- {
30
- "components": [
31
- { "internalType": "bytes", "name": "path", "type": "bytes" },
32
- { "internalType": "address", "name": "recipient", "type": "address" },
33
- { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
34
- {
35
- "internalType": "uint256",
36
- "name": "amountInMaximum",
37
- "type": "uint256"
38
- }
39
- ],
40
- "internalType": "struct ISwapRouter.ExactOutputParams",
41
- "name": "params",
42
- "type": "tuple"
43
- }
44
- ],
45
- "name": "exactOutput",
46
- "outputs": [
47
- { "internalType": "uint256", "name": "amountIn", "type": "uint256" }
48
- ],
49
- "stateMutability": "payable",
50
- "type": "function"
51
- }
52
- ]
@@ -1,44 +0,0 @@
1
- [
2
- {
3
- "aSymbol": "avWETH",
4
- "aAddress": "0x53f7c5869a859f0aec3d334ee8b4cf01e3492f21",
5
- "address": "0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab",
6
- "decimals": 18
7
- },
8
- {
9
- "aSymbol": "avDAI",
10
- "aAddress": "0x47afa96cdc9fab46904a55a6ad4bf6660b53c38a",
11
- "address": "0xd586e7f844cea2f87f50152665bcbc2c279d8d70",
12
- "decimals": 18
13
- },
14
- {
15
- "aSymbol": "avUSDT",
16
- "aAddress": "0x532e6537fea298397212f09a61e03311686f548e",
17
- "address": "0xc7198437980c041c805a1edcba50c1ce5db95118",
18
- "decimals": 6
19
- },
20
- {
21
- "aSymbol": "avUSDC",
22
- "aAddress": "0x46a51127c3ce23fb7ab1de06226147f446e4a857",
23
- "address": "0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664",
24
- "decimals": 6
25
- },
26
- {
27
- "aSymbol": "avAAVE",
28
- "aAddress": "0xd45b7c061016102f9fa220502908f2c0f1add1d7",
29
- "address": "0x63a72806098bd3d9520cc43356dd78afe5d386d9",
30
- "decimals": 18
31
- },
32
- {
33
- "aSymbol": "avWBTC",
34
- "aAddress": "0x686bef2417b6dc32c50a3cbfbcc3bb60e1e9a15d",
35
- "address": "0x50b7545627a5162f82a992c33b87adc75187b218",
36
- "decimals": 8
37
- },
38
- {
39
- "aSymbol": "avWAVAX",
40
- "aAddress": "0xdfe521292ece2a4f44242efbcd66bc594ca9714b",
41
- "address": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
42
- "decimals": 18
43
- }
44
- ]