@paraswap/dex-lib 3.4.2-balancer-v2-single-swap.0 → 3.4.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 (110) hide show
  1. package/README.md +377 -377
  2. package/build/config.js +9 -5
  3. package/build/config.js.map +1 -1
  4. package/build/dex/algebra/algebra.js +25 -25
  5. package/build/dex/balancer-v1/balancer-v1.js +34 -34
  6. package/build/dex/balancer-v2/balancer-v2.d.ts +1 -1
  7. package/build/dex/balancer-v2/balancer-v2.js +65 -78
  8. package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
  9. package/build/dex/camelot/camelot.js +27 -27
  10. package/build/dex/kyberdmm/kyberdmm.js +27 -27
  11. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +25 -25
  12. package/build/dex/solidly/solidly.js +27 -27
  13. package/build/dex/solidly-v3/solidly-v3.js +25 -25
  14. package/build/dex/swaap-v2/config.js +15 -0
  15. package/build/dex/swaap-v2/config.js.map +1 -1
  16. package/build/dex/uniswap-v2/uniswap-v2.js +26 -26
  17. package/build/dex/uniswap-v3/uniswap-v3.js +25 -25
  18. package/funding.json +5 -5
  19. package/package.json +1 -1
  20. package/src/config.ts +500 -496
  21. package/src/constants.ts +67 -67
  22. package/src/dex/aave-v2/aave-v2.ts +409 -409
  23. package/src/dex/aave-v3/aave-v3.ts +320 -320
  24. package/src/dex/algebra/algebra.ts +1180 -1180
  25. package/src/dex/angle-staked-stable/angle-staked-stable.ts +347 -347
  26. package/src/dex/augustus-rfq.ts +180 -180
  27. package/src/dex/bProtocol/bProtocol.ts +108 -108
  28. package/src/dex/balancer-v1/balancer-v1.ts +572 -572
  29. package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +1699 -1699
  30. package/src/dex/balancer-v2/balancer-v2.ts +1669 -1701
  31. package/src/dex/bancor/bancor.ts +128 -128
  32. package/src/dex/camelot/camelot.ts +873 -873
  33. package/src/dex/compound/compound.ts +107 -107
  34. package/src/dex/curve-v1/config.ts +1179 -1179
  35. package/src/dex/curve-v1/curve-v1-e2e.test.ts +507 -507
  36. package/src/dex/curve-v1/curve-v1.ts +1315 -1315
  37. package/src/dex/curve-v1-factory/config.ts +1018 -1018
  38. package/src/dex/curve-v1-factory/curve-v1-factory.ts +1288 -1288
  39. package/src/dex/curve-v2/curve-v2.ts +440 -440
  40. package/src/dex/dexalot/dexalot.ts +1100 -1100
  41. package/src/dex/dodo-v1/dodo-v1.ts +132 -132
  42. package/src/dex/dodo-v2.ts +266 -266
  43. package/src/dex/etherfi.ts +239 -239
  44. package/src/dex/generic-rfq/generic-rfq.ts +431 -431
  45. package/src/dex/gmx/gmx.ts +321 -321
  46. package/src/dex/hashflow/hashflow.ts +1135 -1135
  47. package/src/dex/idex.ts +254 -254
  48. package/src/dex/index.ts +357 -357
  49. package/src/dex/jarvis-v6/jarvis-v6.ts +509 -509
  50. package/src/dex/jarvis.ts +262 -262
  51. package/src/dex/kyberdmm/kyberdmm.ts +649 -649
  52. package/src/dex/lido/lido.ts +110 -110
  53. package/src/dex/maker-psm/maker-psm.ts +592 -592
  54. package/src/dex/maverick-v1/maverick-v1.ts +537 -537
  55. package/src/dex/nerve/config.ts +635 -635
  56. package/src/dex/nerve/nerve-e2e.test.ts +731 -731
  57. package/src/dex/nerve/nerve-events.test.ts +911 -911
  58. package/src/dex/nerve/nerve.ts +467 -467
  59. package/src/dex/onebit/onebit.ts +113 -113
  60. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +1150 -1150
  61. package/src/dex/paraswap-limit-orders/config.ts +60 -60
  62. package/src/dex/paraswap-limit-orders/paraswap-limit-orders-e2e.test.ts +137 -137
  63. package/src/dex/paraswap-limit-orders/paraswap-limit-orders-integration.test.ts +328 -328
  64. package/src/dex/paraswap-limit-orders/paraswap-limit-orders.ts +631 -631
  65. package/src/dex/polygon-migrator/polygon-migrator.ts +194 -194
  66. package/src/dex/quick-perps/quick-perps.ts +337 -337
  67. package/src/dex/quickswap/config.ts +16 -16
  68. package/src/dex/quickswap/quickswap-e2e.test.ts +384 -384
  69. package/src/dex/smoothy/smoothy.ts +110 -110
  70. package/src/dex/solidly/config.ts +225 -225
  71. package/src/dex/solidly/solidly-e2e.test.ts +1421 -1421
  72. package/src/dex/solidly/solidly-integration.test.ts +1753 -1753
  73. package/src/dex/solidly/solidly.ts +687 -687
  74. package/src/dex/solidly-v3/solidly-v3.ts +968 -968
  75. package/src/dex/spark/spark.ts +284 -284
  76. package/src/dex/stable-pool/stable-pool.ts +129 -129
  77. package/src/dex/swaap-v2/config.ts +15 -0
  78. package/src/dex/swaap-v2/swaap-v2-e2e.test.ts +233 -17
  79. package/src/dex/swaap-v2/swaap-v2-integration.test.ts +1 -1
  80. package/src/dex/swaap-v2/swaap-v2.ts +1056 -1056
  81. package/src/dex/swell/swell.ts +312 -312
  82. package/src/dex/synthetix/synthetix.ts +420 -420
  83. package/src/dex/trader-joe-v2.1/trader-joe-v2.1.ts +180 -180
  84. package/src/dex/uniswap-v2/config.ts +637 -637
  85. package/src/dex/uniswap-v2/constants.ts +58 -58
  86. package/src/dex/uniswap-v2/uniswap-v2-e2e-avalanche.test.ts +1257 -1257
  87. package/src/dex/uniswap-v2/uniswap-v2-e2e-base.test.ts +42 -42
  88. package/src/dex/uniswap-v2/uniswap-v2-e2e-bsc.test.ts +1295 -1295
  89. package/src/dex/uniswap-v2/uniswap-v2-e2e-mainnet.test.ts +1834 -1834
  90. package/src/dex/uniswap-v2/uniswap-v2-e2e-polygon.test.ts +871 -871
  91. package/src/dex/uniswap-v2/uniswap-v2.ts +1117 -1117
  92. package/src/dex/uniswap-v3/uniswap-v3.ts +1501 -1501
  93. package/src/dex/uniswap-v3.ts +242 -242
  94. package/src/dex/weth/config.ts +73 -73
  95. package/src/dex/weth/weth.ts +230 -230
  96. package/src/dex/wombat/wombat.ts +467 -467
  97. package/src/dex/woo-fi-v2/woo-fi-v2.ts +529 -529
  98. package/src/dex/wsteth/wsteth.ts +304 -304
  99. package/src/dex/zerox/index.ts +328 -328
  100. package/src/executor/Executor01BytecodeBuilder.ts +474 -474
  101. package/src/executor/Executor02BytecodeBuilder.ts +1392 -1392
  102. package/src/executor/ExecutorBytecodeBuilder.ts +390 -390
  103. package/src/executor/ExecutorDetector.ts +131 -131
  104. package/src/executor/constants.ts +66 -66
  105. package/src/executor/executor01-bytecode-builder-e2e.test.ts +1478 -1478
  106. package/src/executor/utils.ts +62 -62
  107. package/src/router/simpleswap.ts +366 -366
  108. package/src/types.ts +342 -342
  109. package/tests/constants-e2e.ts +1632 -1622
  110. package/tests/generate-new-limit-order.ts +107 -107
@@ -1,637 +1,637 @@
1
- import { DexParams } from './types';
2
- import { DexConfigMap } from '../../types';
3
- import { Network, SwapSide } from '../../constants';
4
-
5
- export const Adapters: {
6
- [chainId: number]: { [side: string]: { name: string; index: number }[] };
7
- } = {
8
- [Network.MAINNET]: {
9
- [SwapSide.SELL]: [
10
- {
11
- name: 'Adapter01',
12
- index: 4,
13
- },
14
- ],
15
- [SwapSide.BUY]: [
16
- {
17
- name: 'BuyAdapter',
18
- index: 1,
19
- },
20
- ],
21
- },
22
- [Network.POLYGON]: {
23
- [SwapSide.SELL]: [
24
- {
25
- name: 'PolygonAdapter01',
26
- index: 4,
27
- },
28
- ],
29
- [SwapSide.BUY]: [
30
- {
31
- name: 'PolygonBuyAdapter',
32
- index: 1,
33
- },
34
- ],
35
- },
36
- [Network.BSC]: {
37
- [SwapSide.SELL]: [
38
- {
39
- name: 'BscAdapter01',
40
- index: 3,
41
- },
42
- ],
43
- [SwapSide.BUY]: [
44
- {
45
- name: 'BscBuyAdapter',
46
- index: 1,
47
- },
48
- ],
49
- },
50
- [Network.AVALANCHE]: {
51
- [SwapSide.SELL]: [
52
- {
53
- name: 'AvalancheAdapter01',
54
- index: 2,
55
- },
56
- ],
57
- [SwapSide.BUY]: [
58
- {
59
- name: 'AvalancheBuyAdapter',
60
- index: 1,
61
- },
62
- ],
63
- },
64
- [Network.FANTOM]: {
65
- [SwapSide.SELL]: [
66
- {
67
- name: 'FantomAdapter01',
68
- index: 2,
69
- },
70
- ],
71
- [SwapSide.BUY]: [
72
- {
73
- name: 'FantomBuyAdapter',
74
- index: 1,
75
- },
76
- ],
77
- },
78
- [Network.ARBITRUM]: {
79
- [SwapSide.SELL]: [
80
- {
81
- name: 'ArbitrumAdapter01',
82
- index: 2,
83
- },
84
- ],
85
- [SwapSide.BUY]: [
86
- {
87
- name: 'ArbitrumBuyAdapter',
88
- index: 1,
89
- },
90
- ],
91
- },
92
- [Network.OPTIMISM]: {
93
- [SwapSide.SELL]: [
94
- {
95
- name: 'OptimismAdapter01',
96
- index: 2,
97
- },
98
- ],
99
- [SwapSide.BUY]: [
100
- {
101
- name: 'OptimismBuyAdapter',
102
- index: 1,
103
- },
104
- ],
105
- },
106
- [Network.BASE]: {
107
- [SwapSide.SELL]: [
108
- {
109
- name: 'BaseAdapter01',
110
- index: 6,
111
- },
112
- ],
113
- [SwapSide.BUY]: [
114
- {
115
- name: 'BaseBuyAdapter',
116
- index: 4,
117
- },
118
- ],
119
- },
120
- };
121
-
122
- export const UniswapV2Config: DexConfigMap<DexParams> = {
123
- UniswapV2: {
124
- [Network.MAINNET]: {
125
- subgraphURL: 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2',
126
- factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
127
- initCode:
128
- '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
129
- poolGasCost: 80 * 1000,
130
- feeCode: 30,
131
- },
132
- [Network.ARBITRUM]: {
133
- factoryAddress: '0xf1D7CC64Fb4452F05c498126312eBE29f30Fbcf9',
134
- initCode:
135
- '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
136
- poolGasCost: 80 * 1000,
137
- feeCode: 30,
138
- },
139
- [Network.AVALANCHE]: {
140
- factoryAddress: '0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C',
141
- initCode:
142
- '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
143
- poolGasCost: 80 * 1000,
144
- feeCode: 30,
145
- },
146
- [Network.BSC]: {
147
- factoryAddress: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6',
148
- initCode:
149
- '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
150
- poolGasCost: 80 * 1000,
151
- feeCode: 30,
152
- },
153
- [Network.BASE]: {
154
- factoryAddress: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6',
155
- initCode:
156
- '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
157
- poolGasCost: 80 * 1000,
158
- feeCode: 30,
159
- },
160
- [Network.OPTIMISM]: {
161
- factoryAddress: '0x0c3c1c532F1e39EdF36BE9Fe0bE1410313E074Bf',
162
- initCode:
163
- '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
164
- poolGasCost: 80 * 1000,
165
- feeCode: 30,
166
- },
167
- [Network.POLYGON]: {
168
- factoryAddress: '0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C',
169
- initCode:
170
- '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
171
- poolGasCost: 80 * 1000,
172
- feeCode: 30,
173
- },
174
- },
175
- ApeSwap: {
176
- [Network.BSC]: {
177
- subgraphURL:
178
- 'https://graph.apeswap.finance/subgraphs/name/ape-swap/apeswap-subgraph',
179
- factoryAddress: '0x0841bd0b734e4f5853f0dd8d7ea041c241fb0da6',
180
- initCode:
181
- '0xf4ccce374816856d11f00e4069e7cada164065686fbef53c6167a63ec2fd8c5b',
182
- poolGasCost: 100 * 1000,
183
- feeCode: 20,
184
- },
185
- [Network.POLYGON]: {
186
- subgraphURL:
187
- 'https://api.thegraph.com/subgraphs/name/apeswapfinance/dex-polygon',
188
- factoryAddress: '0xcf083be4164828f00cae704ec15a36d711491284',
189
- initCode:
190
- '0x511f0f358fe530cda0859ec20becf391718fdf5a329be02f4c95361f3d6a42d8',
191
- poolGasCost: 100 * 1000,
192
- feeCode: 20,
193
- },
194
- },
195
- Baguette: {
196
- [Network.AVALANCHE]: {
197
- subgraphURL:
198
- 'https://api.thegraph.com/subgraphs/name/baguette-exchange/baguette',
199
- factoryAddress: '0x3587b8c0136c2c3605a9e5b03ab54da3e4044b50',
200
- initCode:
201
- '0xf4ccce374816856d11f00e4069e7cada164065686fbef53c6167a63ec2fd8c5b',
202
- poolGasCost: 80 * 1000,
203
- feeCode: 30,
204
- },
205
- },
206
- BakerySwap: {
207
- [Network.BSC]: {
208
- subgraphURL: 'https://api.bscgraph.org/subgraphs/name/bakeryswap',
209
- factoryAddress: '0x01bF7C66c6BD861915CdaaE475042d3c4BaE16A7',
210
- initCode:
211
- '0xe2e87433120e32c4738a7d8f3271f3d872cbe16241d67537139158d90bac61d3',
212
- feeCode: 30,
213
- router: '0x4B8107Bbdf7f7adF7B42a1C9cF14FAD8d32111C0',
214
- adapters: {
215
- [SwapSide.SELL]: [
216
- {
217
- name: 'BscAdapter01',
218
- index: 11,
219
- },
220
- ],
221
- [SwapSide.BUY]: null,
222
- },
223
- },
224
- },
225
- CanarySwap: {
226
- [Network.AVALANCHE]: {
227
- subgraphURL:
228
- 'https://api.thegraph.com/subgraphs/name/canarydeveloper/canarydex',
229
- factoryAddress: '0xCFBA329d49C24b70F3a8b9CC0853493d4645436b',
230
- initCode:
231
- '0x60df5edf580dff3274fff5a3d83ad2b6ef6e296f71c3bc28c939e641888bd5b0',
232
- poolGasCost: 80 * 1000,
233
- feeCode: 30,
234
- },
235
- },
236
- CheeseSwap: {
237
- [Network.BSC]: {
238
- factoryAddress: '0xdd538e4fd1b69b7863e1f741213276a6cf1efb3b',
239
- initCode:
240
- '0xf52c5189a89e7ca2ef4f19f2798e3900fba7a316de7cef6c5a9446621ba86286',
241
- poolGasCost: 100 * 1000,
242
- feeCode: 20,
243
- },
244
- },
245
- CoinSwap: {
246
- [Network.BSC]: {
247
- factoryAddress: '0xc2d8d27f3196d9989abf366230a47384010440c0',
248
- initCode:
249
- '0x2e3f108b8526ff1faa4d526bb84210fc5a2bfc5aad2f62207d7964554a5d029d',
250
- poolGasCost: 100 * 1000,
251
- feeCode: 20,
252
- },
253
- },
254
- ComethSwap: {
255
- [Network.POLYGON]: {
256
- subgraphURL:
257
- 'https://api.thegraph.com/subgraphs/name/cometh-game/comethswap',
258
- factoryAddress: '0x800b052609c355ca8103e06f022aa30647ead60a',
259
- initCode:
260
- '0x499154cad90a3563f914a25c3710ed01b9a43b8471a35ba8a66a056f37638542',
261
- feeCode: 50,
262
- },
263
- },
264
- ComplusSwap: {
265
- [Network.AVALANCHE]: {
266
- subgraphURL:
267
- 'https://api.thegraph.com/subgraphs/name/complusnetwork/subgraph-avae',
268
- factoryAddress: '0x5C02e78A3969D0E64aa2CFA765ACc1d671914aC0',
269
- initCode:
270
- '0x0f75b63316180834cae9ff38fbeb719026e1435e60ddb4509bd435f148feac97',
271
- poolGasCost: 80 * 1000,
272
- feeCode: 30,
273
- },
274
- },
275
- DefiSwap: {
276
- [Network.MAINNET]: {
277
- subgraphURL:
278
- 'https://api.thegraph.com/subgraphs/name/crypto-com/swap-subgraph',
279
- factoryAddress: '0x9DEB29c9a4c7A88a3C0257393b7f3335338D9A9D',
280
- initCode:
281
- '0x69d637e77615df9f235f642acebbdad8963ef35c5523142078c9b8f9d0ceba7e',
282
- feeCode: 30,
283
- },
284
- },
285
- ElkFinance: {
286
- [Network.AVALANCHE]: {
287
- subgraphURL:
288
- 'https://api.thegraph.com/subgraphs/name/elkfinance/elkdex-avax',
289
- factoryAddress: '0x091d35d7F63487909C863001ddCA481c6De47091',
290
- initCode:
291
- '0x33c4831a098654d3d20a78641a198ee6ffc1ceed49f2196b75bb244891c260e3',
292
- poolGasCost: 80 * 1000,
293
- feeCode: 30,
294
- },
295
- },
296
- JulSwap: {
297
- [Network.BSC]: {
298
- // subgraphURL:
299
- // 'https://subgraph.swapliquidity.org/subgraphs/name/swapliquidity/subgraph',
300
- factoryAddress: '0x553990f2cba90272390f62c5bdb1681ffc899675',
301
- initCode:
302
- '0xb1e98e21a5335633815a8cfb3b580071c2e4561c50afd57a8746def9ed890b18',
303
- feeCode: 30,
304
- },
305
- },
306
- KnightSwap: {
307
- [Network.FANTOM]: {
308
- subgraphURL:
309
- 'https://api.thegraph.com/subgraphs/name/shahzeb8285/dark-knight-two',
310
- factoryAddress: '0x7d82f56ea0820a9d42b01c3c28f1997721732218',
311
- initCode:
312
- '0x2e8dbc8cf79694a7ef827213d52da525b45ddf645a4abd477fcb4af09bfb5f0e',
313
- feeCode: 20,
314
- },
315
- },
316
- LinkSwap: {
317
- [Network.MAINNET]: {
318
- subgraphURL: 'https://api.thegraph.com/subgraphs/name/yflink/linkswap-v1',
319
- factoryAddress: '0x696708Db871B77355d6C2bE7290B27CF0Bb9B24b',
320
- initCode:
321
- '0x50955d9250740335afc702786778ebeae56a5225e4e18b7cb046e61437cde6b3',
322
- feeCode: 30,
323
- },
324
- },
325
- LydiaFinance: {
326
- [Network.AVALANCHE]: {
327
- subgraphURL: 'https://api.thegraph.com/subgraphs/name/lydiacoder/lydia',
328
- factoryAddress: '0xe0C1bb6DF4851feEEdc3E14Bd509FEAF428f7655',
329
- initCode:
330
- '0x47cc4f3a5e7a237c464e09c6758ac645084f198b8f64eedc923317ac4481a10c',
331
- poolGasCost: 80 * 1000,
332
- feeCode: 20,
333
- },
334
- },
335
- PantherSwap: {
336
- [Network.BSC]: {
337
- subgraphURL:
338
- 'https://api.bscgraph.org/subgraphs/name/pantherswap/exchange',
339
- factoryAddress: '0x670f55c6284c629c23bae99f585e3f17e8b9fc31',
340
- initCode:
341
- '0x867d1354ae93986b4c49f35d8d7884f174264895ad8501d50d2cd365933d4aa5',
342
- feeCode: 20,
343
- },
344
- },
345
- PangolinSwap: {
346
- [Network.AVALANCHE]: {
347
- subgraphURL:
348
- 'https://api.thegraph.com/subgraphs/name/dasconnor/pangolin-dex',
349
- factoryAddress: '0xefa94DE7a4656D787667C749f7E1223D71E9FD88',
350
- initCode:
351
- '0x40231f6b438bce0797c9ada29b718a87ea0a5cea3fe9a771abdd76bd41a3e545',
352
- poolGasCost: 89 * 1000,
353
- feeCode: 30,
354
- },
355
- },
356
- PancakeSwap: {
357
- [Network.BSC]: {
358
- factoryAddress: '0xBCfCcbde45cE874adCB698cC183deBcF17952812',
359
- initCode:
360
- '0xd0d4c4cd0848c93cb4fd1f498d7013ee6bfb25783ea21593d5834f5d250ece66',
361
- poolGasCost: 80 * 1000,
362
- feeCode: 20,
363
- },
364
- },
365
- PancakeSwapV2: {
366
- [Network.BSC]: {
367
- subgraphURL:
368
- 'https://bsc.streamingfast.io/subgraphs/name/pancakeswap/exchange-v2',
369
- factoryAddress: '0xca143ce32fe78f1f7019d7d551a6402fc5350c73',
370
- initCode:
371
- '0xa0e5696e64d8512d41c1887d32c208c1f427abd6a077148d760fc07ccbe12470',
372
- poolGasCost: 90 * 1000,
373
- feeCode: 25,
374
- },
375
- [Network.MAINNET]: {
376
- factoryAddress: '0x1097053Fd2ea711dad45caCcc45EfF7548fCB362',
377
- initCode:
378
- '0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d',
379
- poolGasCost: 90 * 1000,
380
- feeCode: 25,
381
- },
382
- [Network.ARBITRUM]: {
383
- subgraphURL:
384
- 'https://api.studio.thegraph.com/query/45376/exchange-v2-arbitrum/version/latest',
385
- factoryAddress: '0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E',
386
- initCode:
387
- '0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d',
388
- poolGasCost: 90 * 1000,
389
- feeCode: 25,
390
- },
391
- },
392
- PaintSwap: {
393
- [Network.FANTOM]: {
394
- subgraphURL:
395
- 'https://api.thegraph.com/subgraphs/name/paint-swap-finance/exchange',
396
- factoryAddress: '0x733a9d1585f2d14c77b49d39bc7d7dd14cda4aa5',
397
- initCode:
398
- '0x52178a9131f5551c2e56bf7cbf02aed8be8130e6493915a6b0c7602ac2125e54',
399
- feeCode: 30,
400
- },
401
- },
402
- MorpheusSwap: {
403
- [Network.FANTOM]: {
404
- subgraphURL:
405
- 'https://api.thegraph.com/subgraphs/name/daedboi/morpheus-swap',
406
- factoryAddress: '0x9c454510848906fddc846607e4baa27ca999fbb6',
407
- initCode:
408
- '0x82b04e3f5f54946a0ed70d459c25f54ad42d498268c75b27f9727e3d212e91fd',
409
- feeCode: 15,
410
- },
411
- },
412
- SushiSwap: {
413
- [Network.MAINNET]: {
414
- subgraphURL:
415
- 'https://api.thegraph.com/subgraphs/name/croco-finance/sushiswap',
416
- factoryAddress: '0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac',
417
- initCode:
418
- '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
419
- feeCode: 30,
420
- },
421
- [Network.POLYGON]: {
422
- subgraphURL:
423
- 'https://api.thegraph.com/subgraphs/name/sushiswap/matic-exchange',
424
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
425
- initCode:
426
- '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
427
- feeCode: 30,
428
- },
429
- [Network.FANTOM]: {
430
- subgraphURL:
431
- 'https://api.thegraph.com/subgraphs/name/sushiswap/fantom-exchange',
432
- factoryAddress: '0xc35dadb65012ec5796536bd9864ed8773abc74c4',
433
- initCode:
434
- '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
435
- feeCode: 30,
436
- },
437
- [Network.AVALANCHE]: {
438
- subgraphURL: 'https://api.thegraph.com/subgraphs/name/sushiswap/exchange',
439
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
440
- initCode:
441
- '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
442
- feeCode: 30,
443
- },
444
- [Network.ARBITRUM]: {
445
- subgraphURL:
446
- 'https://api.thegraph.com/subgraphs/name/sushiswap/arbitrum-exchange',
447
- factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
448
- initCode:
449
- '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
450
- feeCode: 30,
451
- },
452
- },
453
- Zyberswap: {
454
- [Network.ARBITRUM]: {
455
- subgraphURL:
456
- 'https://api.thegraph.com/subgraphs/name/zyberswap-arbitrum/zyber-amm',
457
- factoryAddress: '0xaC2ee06A14c52570Ef3B9812Ed240BCe359772e7',
458
- initCode:
459
- '0xfa2ad44b9e39d38a7d396bb44a41ea957ac7b622c5c6afdc285728c300b3382a',
460
- feeCode: 25,
461
- },
462
- },
463
- QuickSwap: {
464
- [Network.POLYGON]: {
465
- subgraphURL:
466
- 'https://api.thegraph.com/subgraphs/name/sameepsi/quickswap06',
467
- factoryAddress: '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32',
468
- initCode:
469
- '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
470
- feeCode: 30,
471
- },
472
- },
473
- SpookySwap: {
474
- [Network.FANTOM]: {
475
- subgraphURL:
476
- 'https://api.thegraph.com/subgraphs/name/eerieeight/spookyswap',
477
- factoryAddress: '0x152ee697f2e276fa89e96742e9bb9ab1f2e61be3',
478
- initCode:
479
- '0xcdf2deca40a0bd56de8e3ce5c7df6727e5b1bf2ac96f283fa9c4b3e6b42ea9d2',
480
- feeCode: 20,
481
- },
482
- },
483
- SpiritSwap: {
484
- [Network.FANTOM]: {
485
- subgraphURL:
486
- 'https://api.thegraph.com/subgraphs/name/layer3org/spiritswap-analytics',
487
- factoryAddress: '0xEF45d134b73241eDa7703fa787148D9C9F4950b0',
488
- initCode:
489
- '0xe242e798f6cee26a9cb0bbf24653bf066e5356ffeac160907fe2cc108e238617',
490
- feeCode: 30,
491
- },
492
- },
493
- ShibaSwap: {
494
- [Network.MAINNET]: {
495
- subgraphURL:
496
- 'https://api.thegraph.com/subgraphs/name/shibaswaparmy/exchange',
497
- factoryAddress: '0x115934131916C8b277DD010Ee02de363c09d037c',
498
- initCode:
499
- '0x65d1a3b1e46c6e4f1be1ad5f99ef14dc488ae0549dc97db9b30afe2241ce1c7a',
500
- poolGasCost: 100 * 1000,
501
- feeCode: 30,
502
- },
503
- },
504
- ZeroSwap: {
505
- [Network.AVALANCHE]: {
506
- subgraphURL:
507
- 'https://api.thegraph.com/subgraphs/name/winter256/zerobscgraph3',
508
- factoryAddress: '0x2Ef422F30cdb7c5F1f7267AB5CF567A88974b308',
509
- initCode:
510
- '0x4b5b254233f8aba1e01c0538653d54036e3c9f7873daf99623bb358f1cf33188',
511
- poolGasCost: 80 * 1000,
512
- feeCode: 30,
513
- },
514
- },
515
- YetiSwap: {
516
- [Network.AVALANCHE]: {
517
- subgraphURL: 'https://api.thegraph.com/subgraphs/name/yetiswap/yetiswap',
518
- factoryAddress: '0x58C8CD291Fa36130119E6dEb9E520fbb6AcA1c3a',
519
- initCode:
520
- '0xcc133f6dd9577d2022e9f47ec90dd24049584e73131095c170715fa7c950a64a',
521
- poolGasCost: 80 * 1000,
522
- feeCode: 30,
523
- },
524
- },
525
- WaultFinance: {
526
- [Network.BSC]: {
527
- subgraphURL:
528
- 'https://api.thegraph.com/subgraphs/name/waultfinance/waultswap-bsc',
529
- factoryAddress: '0xB42E3FE71b7E0673335b3331B3e1053BD9822570',
530
- initCode:
531
- '0x9599db1eaa37ab366bf260f51beefce9296eb6197de387c533d905e9b82debe9',
532
- poolGasCost: 100 * 1000,
533
- feeCode: 20,
534
- },
535
- [Network.POLYGON]: {
536
- subgraphURL:
537
- 'https://api.thegraph.com/subgraphs/name/waultfinance/waultswap-polygon',
538
- factoryAddress: '0xa98ea6356A316b44Bf710D5f9b6b4eA0081409Ef',
539
- initCode:
540
- '0x1cdc2246d318ab84d8bc7ae2a3d81c235f3db4e113f4c6fdc1e2211a9291be47',
541
- poolGasCost: 100 * 1000,
542
- feeCode: 20,
543
- },
544
- },
545
- TraderJoe: {
546
- [Network.AVALANCHE]: {
547
- subgraphURL:
548
- 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/exchange',
549
- factoryAddress: '0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10',
550
- initCode:
551
- '0x0bbca9af0511ad1a1da383135cf3a8d2ac620e549ef9f6ae3a4c33c2fed0af91',
552
- poolGasCost: 120 * 1000,
553
- feeCode: 30,
554
- },
555
- },
556
- Verse: {
557
- [Network.MAINNET]: {
558
- subgraphURL:
559
- 'https://api.thegraph.com/subgraphs/name/arnkthr/ethv1/graphql',
560
- factoryAddress: '0xee3E9E46E34a27dC755a63e2849C9913Ee1A06E2',
561
- initCode:
562
- '0x34768b85d02b77066b16acc7f0875ed59566bb3c32ba4fb0438750e872fddf9e',
563
- feeCode: 30,
564
- },
565
- },
566
- ZipSwap: {
567
- [Network.OPTIMISM]: {
568
- subgraphURL: 'https://api.thegraph.com/subgraphs/name/nonamefits/zipswap',
569
- factoryAddress: '0x8BCeDD62DD46F1A76F8A1633d4f5B76e0CDa521E',
570
- initCode:
571
- '0x1a76b7e7272f6187014e23f04d1b2e543eed2fd1f76481149008cc6eacb05c22',
572
- poolGasCost: 80 * 1000,
573
- feeCode: 30,
574
- },
575
- },
576
- BaseSwap: {
577
- [Network.BASE]: {
578
- factoryAddress: '0xFDa619b6d20975be80A10332cD39b9a4b0FAa8BB',
579
- initCode:
580
- '0xb618a2730fae167f5f8ac7bd659dd8436d571872655bcb6fd11f2158c8a64a3b',
581
- poolGasCost: 90 * 1000,
582
- feeCode: 25,
583
- },
584
- },
585
- Alien: {
586
- [Network.BASE]: {
587
- factoryAddress: '0x3e84d913803b02a4a7f027165e8ca42c14c0fde7',
588
- subgraphURL:
589
- 'https://api.thegraph.com/subgraphs/name/alienbase-xyz/alien-base',
590
- initCode: '0x', // deprecated
591
- poolGasCost: 90 * 1000,
592
- feeCode: 16,
593
- },
594
- },
595
- RocketSwap: {
596
- [Network.BASE]: {
597
- factoryAddress: '0x1b8128c3a1b7d20053d10763ff02466ca7ff99fc',
598
- initCode: '0x', // deprecated
599
- poolGasCost: 90 * 1000,
600
- feeCode: 30,
601
- },
602
- },
603
- SoSwap: {
604
- [Network.BASE]: {
605
- factoryAddress: '0x539db2B4FE8016DB2594d7CfbeAb4d2B730b723E',
606
- initCode: '0x', // deprecated
607
- poolGasCost: 90 * 1000,
608
- feeCode: 30,
609
- },
610
- },
611
- SwapBased: {
612
- [Network.BASE]: {
613
- factoryAddress: '0x04C9f118d21e8B767D2e50C946f0cC9F6C367300',
614
- initCode: '0x', // deprecated
615
- poolGasCost: 90 * 1000,
616
- feeCode: 30,
617
- subgraphURL:
618
- 'https://api.thegraph.com/subgraphs/name/chimpydev/swapbase/graphql',
619
- },
620
- },
621
- SharkSwap: {
622
- [Network.BASE]: {
623
- factoryAddress: '0x57592d44eb60011500961ef177bff8d8691d5a8b',
624
- initCode: '0x', // deprecated
625
- poolGasCost: 90 * 1000,
626
- feeCode: 30,
627
- },
628
- },
629
- DackieSwap: {
630
- [Network.BASE]: {
631
- factoryAddress: '0x591f122D1df761E616c13d265006fcbf4c6d6551',
632
- initCode: '0x', // deprecated
633
- poolGasCost: 90 * 1000,
634
- feeCode: 25,
635
- },
636
- },
637
- };
1
+ import { DexParams } from './types';
2
+ import { DexConfigMap } from '../../types';
3
+ import { Network, SwapSide } from '../../constants';
4
+
5
+ export const Adapters: {
6
+ [chainId: number]: { [side: string]: { name: string; index: number }[] };
7
+ } = {
8
+ [Network.MAINNET]: {
9
+ [SwapSide.SELL]: [
10
+ {
11
+ name: 'Adapter01',
12
+ index: 4,
13
+ },
14
+ ],
15
+ [SwapSide.BUY]: [
16
+ {
17
+ name: 'BuyAdapter',
18
+ index: 1,
19
+ },
20
+ ],
21
+ },
22
+ [Network.POLYGON]: {
23
+ [SwapSide.SELL]: [
24
+ {
25
+ name: 'PolygonAdapter01',
26
+ index: 4,
27
+ },
28
+ ],
29
+ [SwapSide.BUY]: [
30
+ {
31
+ name: 'PolygonBuyAdapter',
32
+ index: 1,
33
+ },
34
+ ],
35
+ },
36
+ [Network.BSC]: {
37
+ [SwapSide.SELL]: [
38
+ {
39
+ name: 'BscAdapter01',
40
+ index: 3,
41
+ },
42
+ ],
43
+ [SwapSide.BUY]: [
44
+ {
45
+ name: 'BscBuyAdapter',
46
+ index: 1,
47
+ },
48
+ ],
49
+ },
50
+ [Network.AVALANCHE]: {
51
+ [SwapSide.SELL]: [
52
+ {
53
+ name: 'AvalancheAdapter01',
54
+ index: 2,
55
+ },
56
+ ],
57
+ [SwapSide.BUY]: [
58
+ {
59
+ name: 'AvalancheBuyAdapter',
60
+ index: 1,
61
+ },
62
+ ],
63
+ },
64
+ [Network.FANTOM]: {
65
+ [SwapSide.SELL]: [
66
+ {
67
+ name: 'FantomAdapter01',
68
+ index: 2,
69
+ },
70
+ ],
71
+ [SwapSide.BUY]: [
72
+ {
73
+ name: 'FantomBuyAdapter',
74
+ index: 1,
75
+ },
76
+ ],
77
+ },
78
+ [Network.ARBITRUM]: {
79
+ [SwapSide.SELL]: [
80
+ {
81
+ name: 'ArbitrumAdapter01',
82
+ index: 2,
83
+ },
84
+ ],
85
+ [SwapSide.BUY]: [
86
+ {
87
+ name: 'ArbitrumBuyAdapter',
88
+ index: 1,
89
+ },
90
+ ],
91
+ },
92
+ [Network.OPTIMISM]: {
93
+ [SwapSide.SELL]: [
94
+ {
95
+ name: 'OptimismAdapter01',
96
+ index: 2,
97
+ },
98
+ ],
99
+ [SwapSide.BUY]: [
100
+ {
101
+ name: 'OptimismBuyAdapter',
102
+ index: 1,
103
+ },
104
+ ],
105
+ },
106
+ [Network.BASE]: {
107
+ [SwapSide.SELL]: [
108
+ {
109
+ name: 'BaseAdapter01',
110
+ index: 6,
111
+ },
112
+ ],
113
+ [SwapSide.BUY]: [
114
+ {
115
+ name: 'BaseBuyAdapter',
116
+ index: 4,
117
+ },
118
+ ],
119
+ },
120
+ };
121
+
122
+ export const UniswapV2Config: DexConfigMap<DexParams> = {
123
+ UniswapV2: {
124
+ [Network.MAINNET]: {
125
+ subgraphURL: 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2',
126
+ factoryAddress: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
127
+ initCode:
128
+ '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
129
+ poolGasCost: 80 * 1000,
130
+ feeCode: 30,
131
+ },
132
+ [Network.ARBITRUM]: {
133
+ factoryAddress: '0xf1D7CC64Fb4452F05c498126312eBE29f30Fbcf9',
134
+ initCode:
135
+ '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
136
+ poolGasCost: 80 * 1000,
137
+ feeCode: 30,
138
+ },
139
+ [Network.AVALANCHE]: {
140
+ factoryAddress: '0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C',
141
+ initCode:
142
+ '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
143
+ poolGasCost: 80 * 1000,
144
+ feeCode: 30,
145
+ },
146
+ [Network.BSC]: {
147
+ factoryAddress: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6',
148
+ initCode:
149
+ '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
150
+ poolGasCost: 80 * 1000,
151
+ feeCode: 30,
152
+ },
153
+ [Network.BASE]: {
154
+ factoryAddress: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6',
155
+ initCode:
156
+ '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
157
+ poolGasCost: 80 * 1000,
158
+ feeCode: 30,
159
+ },
160
+ [Network.OPTIMISM]: {
161
+ factoryAddress: '0x0c3c1c532F1e39EdF36BE9Fe0bE1410313E074Bf',
162
+ initCode:
163
+ '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
164
+ poolGasCost: 80 * 1000,
165
+ feeCode: 30,
166
+ },
167
+ [Network.POLYGON]: {
168
+ factoryAddress: '0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C',
169
+ initCode:
170
+ '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
171
+ poolGasCost: 80 * 1000,
172
+ feeCode: 30,
173
+ },
174
+ },
175
+ ApeSwap: {
176
+ [Network.BSC]: {
177
+ subgraphURL:
178
+ 'https://graph.apeswap.finance/subgraphs/name/ape-swap/apeswap-subgraph',
179
+ factoryAddress: '0x0841bd0b734e4f5853f0dd8d7ea041c241fb0da6',
180
+ initCode:
181
+ '0xf4ccce374816856d11f00e4069e7cada164065686fbef53c6167a63ec2fd8c5b',
182
+ poolGasCost: 100 * 1000,
183
+ feeCode: 20,
184
+ },
185
+ [Network.POLYGON]: {
186
+ subgraphURL:
187
+ 'https://api.thegraph.com/subgraphs/name/apeswapfinance/dex-polygon',
188
+ factoryAddress: '0xcf083be4164828f00cae704ec15a36d711491284',
189
+ initCode:
190
+ '0x511f0f358fe530cda0859ec20becf391718fdf5a329be02f4c95361f3d6a42d8',
191
+ poolGasCost: 100 * 1000,
192
+ feeCode: 20,
193
+ },
194
+ },
195
+ Baguette: {
196
+ [Network.AVALANCHE]: {
197
+ subgraphURL:
198
+ 'https://api.thegraph.com/subgraphs/name/baguette-exchange/baguette',
199
+ factoryAddress: '0x3587b8c0136c2c3605a9e5b03ab54da3e4044b50',
200
+ initCode:
201
+ '0xf4ccce374816856d11f00e4069e7cada164065686fbef53c6167a63ec2fd8c5b',
202
+ poolGasCost: 80 * 1000,
203
+ feeCode: 30,
204
+ },
205
+ },
206
+ BakerySwap: {
207
+ [Network.BSC]: {
208
+ subgraphURL: 'https://api.bscgraph.org/subgraphs/name/bakeryswap',
209
+ factoryAddress: '0x01bF7C66c6BD861915CdaaE475042d3c4BaE16A7',
210
+ initCode:
211
+ '0xe2e87433120e32c4738a7d8f3271f3d872cbe16241d67537139158d90bac61d3',
212
+ feeCode: 30,
213
+ router: '0x4B8107Bbdf7f7adF7B42a1C9cF14FAD8d32111C0',
214
+ adapters: {
215
+ [SwapSide.SELL]: [
216
+ {
217
+ name: 'BscAdapter01',
218
+ index: 11,
219
+ },
220
+ ],
221
+ [SwapSide.BUY]: null,
222
+ },
223
+ },
224
+ },
225
+ CanarySwap: {
226
+ [Network.AVALANCHE]: {
227
+ subgraphURL:
228
+ 'https://api.thegraph.com/subgraphs/name/canarydeveloper/canarydex',
229
+ factoryAddress: '0xCFBA329d49C24b70F3a8b9CC0853493d4645436b',
230
+ initCode:
231
+ '0x60df5edf580dff3274fff5a3d83ad2b6ef6e296f71c3bc28c939e641888bd5b0',
232
+ poolGasCost: 80 * 1000,
233
+ feeCode: 30,
234
+ },
235
+ },
236
+ CheeseSwap: {
237
+ [Network.BSC]: {
238
+ factoryAddress: '0xdd538e4fd1b69b7863e1f741213276a6cf1efb3b',
239
+ initCode:
240
+ '0xf52c5189a89e7ca2ef4f19f2798e3900fba7a316de7cef6c5a9446621ba86286',
241
+ poolGasCost: 100 * 1000,
242
+ feeCode: 20,
243
+ },
244
+ },
245
+ CoinSwap: {
246
+ [Network.BSC]: {
247
+ factoryAddress: '0xc2d8d27f3196d9989abf366230a47384010440c0',
248
+ initCode:
249
+ '0x2e3f108b8526ff1faa4d526bb84210fc5a2bfc5aad2f62207d7964554a5d029d',
250
+ poolGasCost: 100 * 1000,
251
+ feeCode: 20,
252
+ },
253
+ },
254
+ ComethSwap: {
255
+ [Network.POLYGON]: {
256
+ subgraphURL:
257
+ 'https://api.thegraph.com/subgraphs/name/cometh-game/comethswap',
258
+ factoryAddress: '0x800b052609c355ca8103e06f022aa30647ead60a',
259
+ initCode:
260
+ '0x499154cad90a3563f914a25c3710ed01b9a43b8471a35ba8a66a056f37638542',
261
+ feeCode: 50,
262
+ },
263
+ },
264
+ ComplusSwap: {
265
+ [Network.AVALANCHE]: {
266
+ subgraphURL:
267
+ 'https://api.thegraph.com/subgraphs/name/complusnetwork/subgraph-avae',
268
+ factoryAddress: '0x5C02e78A3969D0E64aa2CFA765ACc1d671914aC0',
269
+ initCode:
270
+ '0x0f75b63316180834cae9ff38fbeb719026e1435e60ddb4509bd435f148feac97',
271
+ poolGasCost: 80 * 1000,
272
+ feeCode: 30,
273
+ },
274
+ },
275
+ DefiSwap: {
276
+ [Network.MAINNET]: {
277
+ subgraphURL:
278
+ 'https://api.thegraph.com/subgraphs/name/crypto-com/swap-subgraph',
279
+ factoryAddress: '0x9DEB29c9a4c7A88a3C0257393b7f3335338D9A9D',
280
+ initCode:
281
+ '0x69d637e77615df9f235f642acebbdad8963ef35c5523142078c9b8f9d0ceba7e',
282
+ feeCode: 30,
283
+ },
284
+ },
285
+ ElkFinance: {
286
+ [Network.AVALANCHE]: {
287
+ subgraphURL:
288
+ 'https://api.thegraph.com/subgraphs/name/elkfinance/elkdex-avax',
289
+ factoryAddress: '0x091d35d7F63487909C863001ddCA481c6De47091',
290
+ initCode:
291
+ '0x33c4831a098654d3d20a78641a198ee6ffc1ceed49f2196b75bb244891c260e3',
292
+ poolGasCost: 80 * 1000,
293
+ feeCode: 30,
294
+ },
295
+ },
296
+ JulSwap: {
297
+ [Network.BSC]: {
298
+ // subgraphURL:
299
+ // 'https://subgraph.swapliquidity.org/subgraphs/name/swapliquidity/subgraph',
300
+ factoryAddress: '0x553990f2cba90272390f62c5bdb1681ffc899675',
301
+ initCode:
302
+ '0xb1e98e21a5335633815a8cfb3b580071c2e4561c50afd57a8746def9ed890b18',
303
+ feeCode: 30,
304
+ },
305
+ },
306
+ KnightSwap: {
307
+ [Network.FANTOM]: {
308
+ subgraphURL:
309
+ 'https://api.thegraph.com/subgraphs/name/shahzeb8285/dark-knight-two',
310
+ factoryAddress: '0x7d82f56ea0820a9d42b01c3c28f1997721732218',
311
+ initCode:
312
+ '0x2e8dbc8cf79694a7ef827213d52da525b45ddf645a4abd477fcb4af09bfb5f0e',
313
+ feeCode: 20,
314
+ },
315
+ },
316
+ LinkSwap: {
317
+ [Network.MAINNET]: {
318
+ subgraphURL: 'https://api.thegraph.com/subgraphs/name/yflink/linkswap-v1',
319
+ factoryAddress: '0x696708Db871B77355d6C2bE7290B27CF0Bb9B24b',
320
+ initCode:
321
+ '0x50955d9250740335afc702786778ebeae56a5225e4e18b7cb046e61437cde6b3',
322
+ feeCode: 30,
323
+ },
324
+ },
325
+ LydiaFinance: {
326
+ [Network.AVALANCHE]: {
327
+ subgraphURL: 'https://api.thegraph.com/subgraphs/name/lydiacoder/lydia',
328
+ factoryAddress: '0xe0C1bb6DF4851feEEdc3E14Bd509FEAF428f7655',
329
+ initCode:
330
+ '0x47cc4f3a5e7a237c464e09c6758ac645084f198b8f64eedc923317ac4481a10c',
331
+ poolGasCost: 80 * 1000,
332
+ feeCode: 20,
333
+ },
334
+ },
335
+ PantherSwap: {
336
+ [Network.BSC]: {
337
+ subgraphURL:
338
+ 'https://api.bscgraph.org/subgraphs/name/pantherswap/exchange',
339
+ factoryAddress: '0x670f55c6284c629c23bae99f585e3f17e8b9fc31',
340
+ initCode:
341
+ '0x867d1354ae93986b4c49f35d8d7884f174264895ad8501d50d2cd365933d4aa5',
342
+ feeCode: 20,
343
+ },
344
+ },
345
+ PangolinSwap: {
346
+ [Network.AVALANCHE]: {
347
+ subgraphURL:
348
+ 'https://api.thegraph.com/subgraphs/name/dasconnor/pangolin-dex',
349
+ factoryAddress: '0xefa94DE7a4656D787667C749f7E1223D71E9FD88',
350
+ initCode:
351
+ '0x40231f6b438bce0797c9ada29b718a87ea0a5cea3fe9a771abdd76bd41a3e545',
352
+ poolGasCost: 89 * 1000,
353
+ feeCode: 30,
354
+ },
355
+ },
356
+ PancakeSwap: {
357
+ [Network.BSC]: {
358
+ factoryAddress: '0xBCfCcbde45cE874adCB698cC183deBcF17952812',
359
+ initCode:
360
+ '0xd0d4c4cd0848c93cb4fd1f498d7013ee6bfb25783ea21593d5834f5d250ece66',
361
+ poolGasCost: 80 * 1000,
362
+ feeCode: 20,
363
+ },
364
+ },
365
+ PancakeSwapV2: {
366
+ [Network.BSC]: {
367
+ subgraphURL:
368
+ 'https://bsc.streamingfast.io/subgraphs/name/pancakeswap/exchange-v2',
369
+ factoryAddress: '0xca143ce32fe78f1f7019d7d551a6402fc5350c73',
370
+ initCode:
371
+ '0xa0e5696e64d8512d41c1887d32c208c1f427abd6a077148d760fc07ccbe12470',
372
+ poolGasCost: 90 * 1000,
373
+ feeCode: 25,
374
+ },
375
+ [Network.MAINNET]: {
376
+ factoryAddress: '0x1097053Fd2ea711dad45caCcc45EfF7548fCB362',
377
+ initCode:
378
+ '0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d',
379
+ poolGasCost: 90 * 1000,
380
+ feeCode: 25,
381
+ },
382
+ [Network.ARBITRUM]: {
383
+ subgraphURL:
384
+ 'https://api.studio.thegraph.com/query/45376/exchange-v2-arbitrum/version/latest',
385
+ factoryAddress: '0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E',
386
+ initCode:
387
+ '0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d',
388
+ poolGasCost: 90 * 1000,
389
+ feeCode: 25,
390
+ },
391
+ },
392
+ PaintSwap: {
393
+ [Network.FANTOM]: {
394
+ subgraphURL:
395
+ 'https://api.thegraph.com/subgraphs/name/paint-swap-finance/exchange',
396
+ factoryAddress: '0x733a9d1585f2d14c77b49d39bc7d7dd14cda4aa5',
397
+ initCode:
398
+ '0x52178a9131f5551c2e56bf7cbf02aed8be8130e6493915a6b0c7602ac2125e54',
399
+ feeCode: 30,
400
+ },
401
+ },
402
+ MorpheusSwap: {
403
+ [Network.FANTOM]: {
404
+ subgraphURL:
405
+ 'https://api.thegraph.com/subgraphs/name/daedboi/morpheus-swap',
406
+ factoryAddress: '0x9c454510848906fddc846607e4baa27ca999fbb6',
407
+ initCode:
408
+ '0x82b04e3f5f54946a0ed70d459c25f54ad42d498268c75b27f9727e3d212e91fd',
409
+ feeCode: 15,
410
+ },
411
+ },
412
+ SushiSwap: {
413
+ [Network.MAINNET]: {
414
+ subgraphURL:
415
+ 'https://api.thegraph.com/subgraphs/name/croco-finance/sushiswap',
416
+ factoryAddress: '0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac',
417
+ initCode:
418
+ '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
419
+ feeCode: 30,
420
+ },
421
+ [Network.POLYGON]: {
422
+ subgraphURL:
423
+ 'https://api.thegraph.com/subgraphs/name/sushiswap/matic-exchange',
424
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
425
+ initCode:
426
+ '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
427
+ feeCode: 30,
428
+ },
429
+ [Network.FANTOM]: {
430
+ subgraphURL:
431
+ 'https://api.thegraph.com/subgraphs/name/sushiswap/fantom-exchange',
432
+ factoryAddress: '0xc35dadb65012ec5796536bd9864ed8773abc74c4',
433
+ initCode:
434
+ '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
435
+ feeCode: 30,
436
+ },
437
+ [Network.AVALANCHE]: {
438
+ subgraphURL: 'https://api.thegraph.com/subgraphs/name/sushiswap/exchange',
439
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
440
+ initCode:
441
+ '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
442
+ feeCode: 30,
443
+ },
444
+ [Network.ARBITRUM]: {
445
+ subgraphURL:
446
+ 'https://api.thegraph.com/subgraphs/name/sushiswap/arbitrum-exchange',
447
+ factoryAddress: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
448
+ initCode:
449
+ '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
450
+ feeCode: 30,
451
+ },
452
+ },
453
+ Zyberswap: {
454
+ [Network.ARBITRUM]: {
455
+ subgraphURL:
456
+ 'https://api.thegraph.com/subgraphs/name/zyberswap-arbitrum/zyber-amm',
457
+ factoryAddress: '0xaC2ee06A14c52570Ef3B9812Ed240BCe359772e7',
458
+ initCode:
459
+ '0xfa2ad44b9e39d38a7d396bb44a41ea957ac7b622c5c6afdc285728c300b3382a',
460
+ feeCode: 25,
461
+ },
462
+ },
463
+ QuickSwap: {
464
+ [Network.POLYGON]: {
465
+ subgraphURL:
466
+ 'https://api.thegraph.com/subgraphs/name/sameepsi/quickswap06',
467
+ factoryAddress: '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32',
468
+ initCode:
469
+ '0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f',
470
+ feeCode: 30,
471
+ },
472
+ },
473
+ SpookySwap: {
474
+ [Network.FANTOM]: {
475
+ subgraphURL:
476
+ 'https://api.thegraph.com/subgraphs/name/eerieeight/spookyswap',
477
+ factoryAddress: '0x152ee697f2e276fa89e96742e9bb9ab1f2e61be3',
478
+ initCode:
479
+ '0xcdf2deca40a0bd56de8e3ce5c7df6727e5b1bf2ac96f283fa9c4b3e6b42ea9d2',
480
+ feeCode: 20,
481
+ },
482
+ },
483
+ SpiritSwap: {
484
+ [Network.FANTOM]: {
485
+ subgraphURL:
486
+ 'https://api.thegraph.com/subgraphs/name/layer3org/spiritswap-analytics',
487
+ factoryAddress: '0xEF45d134b73241eDa7703fa787148D9C9F4950b0',
488
+ initCode:
489
+ '0xe242e798f6cee26a9cb0bbf24653bf066e5356ffeac160907fe2cc108e238617',
490
+ feeCode: 30,
491
+ },
492
+ },
493
+ ShibaSwap: {
494
+ [Network.MAINNET]: {
495
+ subgraphURL:
496
+ 'https://api.thegraph.com/subgraphs/name/shibaswaparmy/exchange',
497
+ factoryAddress: '0x115934131916C8b277DD010Ee02de363c09d037c',
498
+ initCode:
499
+ '0x65d1a3b1e46c6e4f1be1ad5f99ef14dc488ae0549dc97db9b30afe2241ce1c7a',
500
+ poolGasCost: 100 * 1000,
501
+ feeCode: 30,
502
+ },
503
+ },
504
+ ZeroSwap: {
505
+ [Network.AVALANCHE]: {
506
+ subgraphURL:
507
+ 'https://api.thegraph.com/subgraphs/name/winter256/zerobscgraph3',
508
+ factoryAddress: '0x2Ef422F30cdb7c5F1f7267AB5CF567A88974b308',
509
+ initCode:
510
+ '0x4b5b254233f8aba1e01c0538653d54036e3c9f7873daf99623bb358f1cf33188',
511
+ poolGasCost: 80 * 1000,
512
+ feeCode: 30,
513
+ },
514
+ },
515
+ YetiSwap: {
516
+ [Network.AVALANCHE]: {
517
+ subgraphURL: 'https://api.thegraph.com/subgraphs/name/yetiswap/yetiswap',
518
+ factoryAddress: '0x58C8CD291Fa36130119E6dEb9E520fbb6AcA1c3a',
519
+ initCode:
520
+ '0xcc133f6dd9577d2022e9f47ec90dd24049584e73131095c170715fa7c950a64a',
521
+ poolGasCost: 80 * 1000,
522
+ feeCode: 30,
523
+ },
524
+ },
525
+ WaultFinance: {
526
+ [Network.BSC]: {
527
+ subgraphURL:
528
+ 'https://api.thegraph.com/subgraphs/name/waultfinance/waultswap-bsc',
529
+ factoryAddress: '0xB42E3FE71b7E0673335b3331B3e1053BD9822570',
530
+ initCode:
531
+ '0x9599db1eaa37ab366bf260f51beefce9296eb6197de387c533d905e9b82debe9',
532
+ poolGasCost: 100 * 1000,
533
+ feeCode: 20,
534
+ },
535
+ [Network.POLYGON]: {
536
+ subgraphURL:
537
+ 'https://api.thegraph.com/subgraphs/name/waultfinance/waultswap-polygon',
538
+ factoryAddress: '0xa98ea6356A316b44Bf710D5f9b6b4eA0081409Ef',
539
+ initCode:
540
+ '0x1cdc2246d318ab84d8bc7ae2a3d81c235f3db4e113f4c6fdc1e2211a9291be47',
541
+ poolGasCost: 100 * 1000,
542
+ feeCode: 20,
543
+ },
544
+ },
545
+ TraderJoe: {
546
+ [Network.AVALANCHE]: {
547
+ subgraphURL:
548
+ 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/exchange',
549
+ factoryAddress: '0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10',
550
+ initCode:
551
+ '0x0bbca9af0511ad1a1da383135cf3a8d2ac620e549ef9f6ae3a4c33c2fed0af91',
552
+ poolGasCost: 120 * 1000,
553
+ feeCode: 30,
554
+ },
555
+ },
556
+ Verse: {
557
+ [Network.MAINNET]: {
558
+ subgraphURL:
559
+ 'https://api.thegraph.com/subgraphs/name/arnkthr/ethv1/graphql',
560
+ factoryAddress: '0xee3E9E46E34a27dC755a63e2849C9913Ee1A06E2',
561
+ initCode:
562
+ '0x34768b85d02b77066b16acc7f0875ed59566bb3c32ba4fb0438750e872fddf9e',
563
+ feeCode: 30,
564
+ },
565
+ },
566
+ ZipSwap: {
567
+ [Network.OPTIMISM]: {
568
+ subgraphURL: 'https://api.thegraph.com/subgraphs/name/nonamefits/zipswap',
569
+ factoryAddress: '0x8BCeDD62DD46F1A76F8A1633d4f5B76e0CDa521E',
570
+ initCode:
571
+ '0x1a76b7e7272f6187014e23f04d1b2e543eed2fd1f76481149008cc6eacb05c22',
572
+ poolGasCost: 80 * 1000,
573
+ feeCode: 30,
574
+ },
575
+ },
576
+ BaseSwap: {
577
+ [Network.BASE]: {
578
+ factoryAddress: '0xFDa619b6d20975be80A10332cD39b9a4b0FAa8BB',
579
+ initCode:
580
+ '0xb618a2730fae167f5f8ac7bd659dd8436d571872655bcb6fd11f2158c8a64a3b',
581
+ poolGasCost: 90 * 1000,
582
+ feeCode: 25,
583
+ },
584
+ },
585
+ Alien: {
586
+ [Network.BASE]: {
587
+ factoryAddress: '0x3e84d913803b02a4a7f027165e8ca42c14c0fde7',
588
+ subgraphURL:
589
+ 'https://api.thegraph.com/subgraphs/name/alienbase-xyz/alien-base',
590
+ initCode: '0x', // deprecated
591
+ poolGasCost: 90 * 1000,
592
+ feeCode: 16,
593
+ },
594
+ },
595
+ RocketSwap: {
596
+ [Network.BASE]: {
597
+ factoryAddress: '0x1b8128c3a1b7d20053d10763ff02466ca7ff99fc',
598
+ initCode: '0x', // deprecated
599
+ poolGasCost: 90 * 1000,
600
+ feeCode: 30,
601
+ },
602
+ },
603
+ SoSwap: {
604
+ [Network.BASE]: {
605
+ factoryAddress: '0x539db2B4FE8016DB2594d7CfbeAb4d2B730b723E',
606
+ initCode: '0x', // deprecated
607
+ poolGasCost: 90 * 1000,
608
+ feeCode: 30,
609
+ },
610
+ },
611
+ SwapBased: {
612
+ [Network.BASE]: {
613
+ factoryAddress: '0x04C9f118d21e8B767D2e50C946f0cC9F6C367300',
614
+ initCode: '0x', // deprecated
615
+ poolGasCost: 90 * 1000,
616
+ feeCode: 30,
617
+ subgraphURL:
618
+ 'https://api.thegraph.com/subgraphs/name/chimpydev/swapbase/graphql',
619
+ },
620
+ },
621
+ SharkSwap: {
622
+ [Network.BASE]: {
623
+ factoryAddress: '0x57592d44eb60011500961ef177bff8d8691d5a8b',
624
+ initCode: '0x', // deprecated
625
+ poolGasCost: 90 * 1000,
626
+ feeCode: 30,
627
+ },
628
+ },
629
+ DackieSwap: {
630
+ [Network.BASE]: {
631
+ factoryAddress: '0x591f122D1df761E616c13d265006fcbf4c6d6551',
632
+ initCode: '0x', // deprecated
633
+ poolGasCost: 90 * 1000,
634
+ feeCode: 25,
635
+ },
636
+ },
637
+ };