@paraswap/dex-lib 4.7.13-unified-pair-restriction.2 → 4.7.14-multi-route.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 (126) hide show
  1. package/build/dex/generic-rfq/generic-rfq.js +5 -0
  2. package/build/dex/generic-rfq/generic-rfq.js.map +1 -1
  3. package/build/dex/idle-dao/idle-dao.d.ts +1 -0
  4. package/build/dex/idle-dao/idle-dao.js +23 -11
  5. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  6. package/build/dex/{se-vlr/se-vlr-pool.d.ts → maker-psm/maker-psm-event-pool.d.ts} +15 -11
  7. package/build/dex/maker-psm/maker-psm-event-pool.js +132 -0
  8. package/build/dex/maker-psm/maker-psm-event-pool.js.map +1 -0
  9. package/build/dex/maker-psm/maker-psm.d.ts +4 -41
  10. package/build/dex/maker-psm/maker-psm.js +40 -143
  11. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  12. package/build/dex/uniswap-v4/contract-math/Position.d.ts +6 -0
  13. package/build/dex/uniswap-v4/contract-math/Position.js +29 -0
  14. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -1
  15. package/build/executor/Executor01BytecodeBuilder.d.ts +5 -5
  16. package/build/executor/Executor01BytecodeBuilder.js +17 -14
  17. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  18. package/build/executor/Executor02BytecodeBuilder.d.ts +11 -8
  19. package/build/executor/Executor02BytecodeBuilder.js +107 -103
  20. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  21. package/build/executor/Executor03BytecodeBuilder.d.ts +5 -5
  22. package/build/executor/Executor03BytecodeBuilder.js +14 -11
  23. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  24. package/build/executor/ExecutorBytecodeBuilder.d.ts +8 -8
  25. package/build/executor/ExecutorBytecodeBuilder.js +8 -8
  26. package/build/executor/ExecutorBytecodeBuilder.js.map +1 -1
  27. package/build/executor/WETHBytecodeBuilder.d.ts +2 -2
  28. package/build/executor/WETHBytecodeBuilder.js +1 -1
  29. package/build/executor/WETHBytecodeBuilder.js.map +1 -1
  30. package/build/executor/types.d.ts +21 -0
  31. package/build/executor/types.js.map +1 -1
  32. package/build/executor/utils.d.ts +20 -0
  33. package/build/executor/utils.js +129 -0
  34. package/build/executor/utils.js.map +1 -1
  35. package/build/generic-swap-transaction-builder.d.ts +3 -0
  36. package/build/generic-swap-transaction-builder.js +94 -23
  37. package/build/generic-swap-transaction-builder.js.map +1 -1
  38. package/package.json +12 -3
  39. package/build/abi/BProtocol.json +0 -1155
  40. package/build/abi/Jarvis.json +0 -1172
  41. package/build/abi/MStableAsset.json +0 -1545
  42. package/build/abi/OneInchLp.json +0 -1304
  43. package/build/abi/Onebit.json +0 -736
  44. package/build/abi/Shell.json +0 -1294
  45. package/build/abi/TraderJoeV2Router.json +0 -50
  46. package/build/abi/wUSDM.json +0 -757
  47. package/build/abi/zrx.v2.json +0 -1967
  48. package/build/abi/zrx.v3.json +0 -3454
  49. package/build/abi/zrx.v4.json +0 -2193
  50. package/build/dex/OneInchLp.d.ts +0 -24
  51. package/build/dex/OneInchLp.js +0 -43
  52. package/build/dex/OneInchLp.js.map +0 -1
  53. package/build/dex/bProtocol/bProtocol.d.ts +0 -15
  54. package/build/dex/bProtocol/bProtocol.js +0 -56
  55. package/build/dex/bProtocol/bProtocol.js.map +0 -1
  56. package/build/dex/bProtocol/types.d.ts +0 -11
  57. package/build/dex/bProtocol/types.js +0 -8
  58. package/build/dex/bProtocol/types.js.map +0 -1
  59. package/build/dex/jarvis.d.ts +0 -56
  60. package/build/dex/jarvis.js +0 -163
  61. package/build/dex/jarvis.js.map +0 -1
  62. package/build/dex/mStable.d.ts +0 -44
  63. package/build/dex/mStable.js +0 -75
  64. package/build/dex/mStable.js.map +0 -1
  65. package/build/dex/onebit/onebit.d.ts +0 -16
  66. package/build/dex/onebit/onebit.js +0 -61
  67. package/build/dex/onebit/onebit.js.map +0 -1
  68. package/build/dex/onebit/types.d.ts +0 -14
  69. package/build/dex/onebit/types.js +0 -8
  70. package/build/dex/onebit/types.js.map +0 -1
  71. package/build/dex/se-vlr/config.d.ts +0 -3
  72. package/build/dex/se-vlr/config.js +0 -24
  73. package/build/dex/se-vlr/config.js.map +0 -1
  74. package/build/dex/se-vlr/se-vlr-pool.js +0 -70
  75. package/build/dex/se-vlr/se-vlr-pool.js.map +0 -1
  76. package/build/dex/se-vlr/se-vlr.d.ts +0 -35
  77. package/build/dex/se-vlr/se-vlr.js +0 -131
  78. package/build/dex/se-vlr/se-vlr.js.map +0 -1
  79. package/build/dex/se-vlr/types.d.ts +0 -6
  80. package/build/dex/se-vlr/types.js +0 -3
  81. package/build/dex/se-vlr/types.js.map +0 -1
  82. package/build/dex/shell.d.ts +0 -25
  83. package/build/dex/shell.js +0 -41
  84. package/build/dex/shell.js.map +0 -1
  85. package/build/dex/trader-joe-v2.d.ts +0 -40
  86. package/build/dex/trader-joe-v2.js +0 -74
  87. package/build/dex/trader-joe-v2.js.map +0 -1
  88. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +0 -94
  89. package/build/dex/uniswap-v3/uniswap-v3-new.js +0 -923
  90. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +0 -1
  91. package/build/dex/usual-bond/config.d.ts +0 -3
  92. package/build/dex/usual-bond/config.js +0 -13
  93. package/build/dex/usual-bond/config.js.map +0 -1
  94. package/build/dex/usual-bond/types.d.ts +0 -7
  95. package/build/dex/usual-bond/types.js +0 -3
  96. package/build/dex/usual-bond/types.js.map +0 -1
  97. package/build/dex/usual-bond/usual-bond.d.ts +0 -35
  98. package/build/dex/usual-bond/usual-bond.js +0 -176
  99. package/build/dex/usual-bond/usual-bond.js.map +0 -1
  100. package/build/dex/wusdm/config.d.ts +0 -3
  101. package/build/dex/wusdm/config.js +0 -43
  102. package/build/dex/wusdm/config.js.map +0 -1
  103. package/build/dex/wusdm/constants.d.ts +0 -2
  104. package/build/dex/wusdm/constants.js +0 -6
  105. package/build/dex/wusdm/constants.js.map +0 -1
  106. package/build/dex/wusdm/types.d.ts +0 -18
  107. package/build/dex/wusdm/types.js +0 -11
  108. package/build/dex/wusdm/types.js.map +0 -1
  109. package/build/dex/wusdm/wusdm-pool.d.ts +0 -21
  110. package/build/dex/wusdm/wusdm-pool.js +0 -74
  111. package/build/dex/wusdm/wusdm-pool.js.map +0 -1
  112. package/build/dex/wusdm/wusdm.d.ts +0 -46
  113. package/build/dex/wusdm/wusdm.js +0 -243
  114. package/build/dex/wusdm/wusdm.js.map +0 -1
  115. package/build/dex/zerox/config.d.ts +0 -2
  116. package/build/dex/zerox/config.js +0 -33
  117. package/build/dex/zerox/config.js.map +0 -1
  118. package/build/dex/zerox/index.d.ts +0 -22
  119. package/build/dex/zerox/index.js +0 -225
  120. package/build/dex/zerox/index.js.map +0 -1
  121. package/build/dex/zerox/order.d.ts +0 -88
  122. package/build/dex/zerox/order.js +0 -53
  123. package/build/dex/zerox/order.js.map +0 -1
  124. package/build/dex/zerox/types.d.ts +0 -73
  125. package/build/dex/zerox/types.js +0 -21
  126. package/build/dex/zerox/types.js.map +0 -1
@@ -1,1304 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "contract IERC20",
6
- "name": "_token0",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "contract IERC20",
11
- "name": "_token1",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "string",
16
- "name": "name",
17
- "type": "string"
18
- },
19
- {
20
- "internalType": "string",
21
- "name": "symbol",
22
- "type": "string"
23
- },
24
- {
25
- "internalType": "contract IMooniswapFactoryGovernance",
26
- "name": "_mooniswapFactoryGovernance",
27
- "type": "address"
28
- }
29
- ],
30
- "stateMutability": "nonpayable",
31
- "type": "constructor"
32
- },
33
- {
34
- "anonymous": false,
35
- "inputs": [
36
- {
37
- "indexed": true,
38
- "internalType": "address",
39
- "name": "owner",
40
- "type": "address"
41
- },
42
- {
43
- "indexed": true,
44
- "internalType": "address",
45
- "name": "spender",
46
- "type": "address"
47
- },
48
- {
49
- "indexed": false,
50
- "internalType": "uint256",
51
- "name": "value",
52
- "type": "uint256"
53
- }
54
- ],
55
- "name": "Approval",
56
- "type": "event"
57
- },
58
- {
59
- "anonymous": false,
60
- "inputs": [
61
- {
62
- "indexed": true,
63
- "internalType": "address",
64
- "name": "user",
65
- "type": "address"
66
- },
67
- {
68
- "indexed": false,
69
- "internalType": "uint256",
70
- "name": "decayPeriod",
71
- "type": "uint256"
72
- },
73
- {
74
- "indexed": false,
75
- "internalType": "bool",
76
- "name": "isDefault",
77
- "type": "bool"
78
- },
79
- {
80
- "indexed": false,
81
- "internalType": "uint256",
82
- "name": "amount",
83
- "type": "uint256"
84
- }
85
- ],
86
- "name": "DecayPeriodVoteUpdate",
87
- "type": "event"
88
- },
89
- {
90
- "anonymous": false,
91
- "inputs": [
92
- {
93
- "indexed": true,
94
- "internalType": "address",
95
- "name": "sender",
96
- "type": "address"
97
- },
98
- {
99
- "indexed": true,
100
- "internalType": "address",
101
- "name": "receiver",
102
- "type": "address"
103
- },
104
- {
105
- "indexed": false,
106
- "internalType": "uint256",
107
- "name": "share",
108
- "type": "uint256"
109
- },
110
- {
111
- "indexed": false,
112
- "internalType": "uint256",
113
- "name": "token0Amount",
114
- "type": "uint256"
115
- },
116
- {
117
- "indexed": false,
118
- "internalType": "uint256",
119
- "name": "token1Amount",
120
- "type": "uint256"
121
- }
122
- ],
123
- "name": "Deposited",
124
- "type": "event"
125
- },
126
- {
127
- "anonymous": false,
128
- "inputs": [
129
- {
130
- "indexed": false,
131
- "internalType": "string",
132
- "name": "reason",
133
- "type": "string"
134
- }
135
- ],
136
- "name": "Error",
137
- "type": "event"
138
- },
139
- {
140
- "anonymous": false,
141
- "inputs": [
142
- {
143
- "indexed": true,
144
- "internalType": "address",
145
- "name": "user",
146
- "type": "address"
147
- },
148
- {
149
- "indexed": false,
150
- "internalType": "uint256",
151
- "name": "fee",
152
- "type": "uint256"
153
- },
154
- {
155
- "indexed": false,
156
- "internalType": "bool",
157
- "name": "isDefault",
158
- "type": "bool"
159
- },
160
- {
161
- "indexed": false,
162
- "internalType": "uint256",
163
- "name": "amount",
164
- "type": "uint256"
165
- }
166
- ],
167
- "name": "FeeVoteUpdate",
168
- "type": "event"
169
- },
170
- {
171
- "anonymous": false,
172
- "inputs": [
173
- {
174
- "indexed": true,
175
- "internalType": "address",
176
- "name": "previousOwner",
177
- "type": "address"
178
- },
179
- {
180
- "indexed": true,
181
- "internalType": "address",
182
- "name": "newOwner",
183
- "type": "address"
184
- }
185
- ],
186
- "name": "OwnershipTransferred",
187
- "type": "event"
188
- },
189
- {
190
- "anonymous": false,
191
- "inputs": [
192
- {
193
- "indexed": true,
194
- "internalType": "address",
195
- "name": "user",
196
- "type": "address"
197
- },
198
- {
199
- "indexed": false,
200
- "internalType": "uint256",
201
- "name": "slippageFee",
202
- "type": "uint256"
203
- },
204
- {
205
- "indexed": false,
206
- "internalType": "bool",
207
- "name": "isDefault",
208
- "type": "bool"
209
- },
210
- {
211
- "indexed": false,
212
- "internalType": "uint256",
213
- "name": "amount",
214
- "type": "uint256"
215
- }
216
- ],
217
- "name": "SlippageFeeVoteUpdate",
218
- "type": "event"
219
- },
220
- {
221
- "anonymous": false,
222
- "inputs": [
223
- {
224
- "indexed": true,
225
- "internalType": "address",
226
- "name": "sender",
227
- "type": "address"
228
- },
229
- {
230
- "indexed": true,
231
- "internalType": "address",
232
- "name": "receiver",
233
- "type": "address"
234
- },
235
- {
236
- "indexed": true,
237
- "internalType": "address",
238
- "name": "srcToken",
239
- "type": "address"
240
- },
241
- {
242
- "indexed": false,
243
- "internalType": "address",
244
- "name": "dstToken",
245
- "type": "address"
246
- },
247
- {
248
- "indexed": false,
249
- "internalType": "uint256",
250
- "name": "amount",
251
- "type": "uint256"
252
- },
253
- {
254
- "indexed": false,
255
- "internalType": "uint256",
256
- "name": "result",
257
- "type": "uint256"
258
- },
259
- {
260
- "indexed": false,
261
- "internalType": "uint256",
262
- "name": "srcAdditionBalance",
263
- "type": "uint256"
264
- },
265
- {
266
- "indexed": false,
267
- "internalType": "uint256",
268
- "name": "dstRemovalBalance",
269
- "type": "uint256"
270
- },
271
- {
272
- "indexed": false,
273
- "internalType": "address",
274
- "name": "referral",
275
- "type": "address"
276
- }
277
- ],
278
- "name": "Swapped",
279
- "type": "event"
280
- },
281
- {
282
- "anonymous": false,
283
- "inputs": [
284
- {
285
- "indexed": false,
286
- "internalType": "uint256",
287
- "name": "srcBalance",
288
- "type": "uint256"
289
- },
290
- {
291
- "indexed": false,
292
- "internalType": "uint256",
293
- "name": "dstBalance",
294
- "type": "uint256"
295
- },
296
- {
297
- "indexed": false,
298
- "internalType": "uint256",
299
- "name": "fee",
300
- "type": "uint256"
301
- },
302
- {
303
- "indexed": false,
304
- "internalType": "uint256",
305
- "name": "slippageFee",
306
- "type": "uint256"
307
- },
308
- {
309
- "indexed": false,
310
- "internalType": "uint256",
311
- "name": "referralShare",
312
- "type": "uint256"
313
- },
314
- {
315
- "indexed": false,
316
- "internalType": "uint256",
317
- "name": "governanceShare",
318
- "type": "uint256"
319
- }
320
- ],
321
- "name": "Sync",
322
- "type": "event"
323
- },
324
- {
325
- "anonymous": false,
326
- "inputs": [
327
- {
328
- "indexed": true,
329
- "internalType": "address",
330
- "name": "from",
331
- "type": "address"
332
- },
333
- {
334
- "indexed": true,
335
- "internalType": "address",
336
- "name": "to",
337
- "type": "address"
338
- },
339
- {
340
- "indexed": false,
341
- "internalType": "uint256",
342
- "name": "value",
343
- "type": "uint256"
344
- }
345
- ],
346
- "name": "Transfer",
347
- "type": "event"
348
- },
349
- {
350
- "anonymous": false,
351
- "inputs": [
352
- {
353
- "indexed": true,
354
- "internalType": "address",
355
- "name": "sender",
356
- "type": "address"
357
- },
358
- {
359
- "indexed": true,
360
- "internalType": "address",
361
- "name": "receiver",
362
- "type": "address"
363
- },
364
- {
365
- "indexed": false,
366
- "internalType": "uint256",
367
- "name": "share",
368
- "type": "uint256"
369
- },
370
- {
371
- "indexed": false,
372
- "internalType": "uint256",
373
- "name": "token0Amount",
374
- "type": "uint256"
375
- },
376
- {
377
- "indexed": false,
378
- "internalType": "uint256",
379
- "name": "token1Amount",
380
- "type": "uint256"
381
- }
382
- ],
383
- "name": "Withdrawn",
384
- "type": "event"
385
- },
386
- {
387
- "inputs": [
388
- {
389
- "internalType": "address",
390
- "name": "owner",
391
- "type": "address"
392
- },
393
- {
394
- "internalType": "address",
395
- "name": "spender",
396
- "type": "address"
397
- }
398
- ],
399
- "name": "allowance",
400
- "outputs": [
401
- {
402
- "internalType": "uint256",
403
- "name": "",
404
- "type": "uint256"
405
- }
406
- ],
407
- "stateMutability": "view",
408
- "type": "function"
409
- },
410
- {
411
- "inputs": [
412
- {
413
- "internalType": "address",
414
- "name": "spender",
415
- "type": "address"
416
- },
417
- {
418
- "internalType": "uint256",
419
- "name": "amount",
420
- "type": "uint256"
421
- }
422
- ],
423
- "name": "approve",
424
- "outputs": [
425
- {
426
- "internalType": "bool",
427
- "name": "",
428
- "type": "bool"
429
- }
430
- ],
431
- "stateMutability": "nonpayable",
432
- "type": "function"
433
- },
434
- {
435
- "inputs": [
436
- {
437
- "internalType": "address",
438
- "name": "account",
439
- "type": "address"
440
- }
441
- ],
442
- "name": "balanceOf",
443
- "outputs": [
444
- {
445
- "internalType": "uint256",
446
- "name": "",
447
- "type": "uint256"
448
- }
449
- ],
450
- "stateMutability": "view",
451
- "type": "function"
452
- },
453
- {
454
- "inputs": [],
455
- "name": "decayPeriod",
456
- "outputs": [
457
- {
458
- "internalType": "uint256",
459
- "name": "",
460
- "type": "uint256"
461
- }
462
- ],
463
- "stateMutability": "view",
464
- "type": "function"
465
- },
466
- {
467
- "inputs": [
468
- {
469
- "internalType": "uint256",
470
- "name": "vote",
471
- "type": "uint256"
472
- }
473
- ],
474
- "name": "decayPeriodVote",
475
- "outputs": [],
476
- "stateMutability": "nonpayable",
477
- "type": "function"
478
- },
479
- {
480
- "inputs": [
481
- {
482
- "internalType": "address",
483
- "name": "user",
484
- "type": "address"
485
- }
486
- ],
487
- "name": "decayPeriodVotes",
488
- "outputs": [
489
- {
490
- "internalType": "uint256",
491
- "name": "",
492
- "type": "uint256"
493
- }
494
- ],
495
- "stateMutability": "view",
496
- "type": "function"
497
- },
498
- {
499
- "inputs": [],
500
- "name": "decimals",
501
- "outputs": [
502
- {
503
- "internalType": "uint8",
504
- "name": "",
505
- "type": "uint8"
506
- }
507
- ],
508
- "stateMutability": "view",
509
- "type": "function"
510
- },
511
- {
512
- "inputs": [
513
- {
514
- "internalType": "address",
515
- "name": "spender",
516
- "type": "address"
517
- },
518
- {
519
- "internalType": "uint256",
520
- "name": "subtractedValue",
521
- "type": "uint256"
522
- }
523
- ],
524
- "name": "decreaseAllowance",
525
- "outputs": [
526
- {
527
- "internalType": "bool",
528
- "name": "",
529
- "type": "bool"
530
- }
531
- ],
532
- "stateMutability": "nonpayable",
533
- "type": "function"
534
- },
535
- {
536
- "inputs": [],
537
- "name": "discardDecayPeriodVote",
538
- "outputs": [],
539
- "stateMutability": "nonpayable",
540
- "type": "function"
541
- },
542
- {
543
- "inputs": [],
544
- "name": "discardFeeVote",
545
- "outputs": [],
546
- "stateMutability": "nonpayable",
547
- "type": "function"
548
- },
549
- {
550
- "inputs": [],
551
- "name": "discardSlippageFeeVote",
552
- "outputs": [],
553
- "stateMutability": "nonpayable",
554
- "type": "function"
555
- },
556
- {
557
- "inputs": [],
558
- "name": "fee",
559
- "outputs": [
560
- {
561
- "internalType": "uint256",
562
- "name": "",
563
- "type": "uint256"
564
- }
565
- ],
566
- "stateMutability": "view",
567
- "type": "function"
568
- },
569
- {
570
- "inputs": [
571
- {
572
- "internalType": "uint256",
573
- "name": "vote",
574
- "type": "uint256"
575
- }
576
- ],
577
- "name": "feeVote",
578
- "outputs": [],
579
- "stateMutability": "nonpayable",
580
- "type": "function"
581
- },
582
- {
583
- "inputs": [
584
- {
585
- "internalType": "address",
586
- "name": "user",
587
- "type": "address"
588
- }
589
- ],
590
- "name": "feeVotes",
591
- "outputs": [
592
- {
593
- "internalType": "uint256",
594
- "name": "",
595
- "type": "uint256"
596
- }
597
- ],
598
- "stateMutability": "view",
599
- "type": "function"
600
- },
601
- {
602
- "inputs": [
603
- {
604
- "internalType": "address",
605
- "name": "spender",
606
- "type": "address"
607
- },
608
- {
609
- "internalType": "uint256",
610
- "name": "addedValue",
611
- "type": "uint256"
612
- }
613
- ],
614
- "name": "increaseAllowance",
615
- "outputs": [
616
- {
617
- "internalType": "bool",
618
- "name": "",
619
- "type": "bool"
620
- }
621
- ],
622
- "stateMutability": "nonpayable",
623
- "type": "function"
624
- },
625
- {
626
- "inputs": [],
627
- "name": "mooniswapFactoryGovernance",
628
- "outputs": [
629
- {
630
- "internalType": "contract IMooniswapFactoryGovernance",
631
- "name": "",
632
- "type": "address"
633
- }
634
- ],
635
- "stateMutability": "view",
636
- "type": "function"
637
- },
638
- {
639
- "inputs": [],
640
- "name": "name",
641
- "outputs": [
642
- {
643
- "internalType": "string",
644
- "name": "",
645
- "type": "string"
646
- }
647
- ],
648
- "stateMutability": "view",
649
- "type": "function"
650
- },
651
- {
652
- "inputs": [],
653
- "name": "owner",
654
- "outputs": [
655
- {
656
- "internalType": "address",
657
- "name": "",
658
- "type": "address"
659
- }
660
- ],
661
- "stateMutability": "view",
662
- "type": "function"
663
- },
664
- {
665
- "inputs": [],
666
- "name": "renounceOwnership",
667
- "outputs": [],
668
- "stateMutability": "nonpayable",
669
- "type": "function"
670
- },
671
- {
672
- "inputs": [
673
- {
674
- "internalType": "contract IMooniswapFactoryGovernance",
675
- "name": "newMooniswapFactoryGovernance",
676
- "type": "address"
677
- }
678
- ],
679
- "name": "setMooniswapFactoryGovernance",
680
- "outputs": [],
681
- "stateMutability": "nonpayable",
682
- "type": "function"
683
- },
684
- {
685
- "inputs": [],
686
- "name": "slippageFee",
687
- "outputs": [
688
- {
689
- "internalType": "uint256",
690
- "name": "",
691
- "type": "uint256"
692
- }
693
- ],
694
- "stateMutability": "view",
695
- "type": "function"
696
- },
697
- {
698
- "inputs": [
699
- {
700
- "internalType": "uint256",
701
- "name": "vote",
702
- "type": "uint256"
703
- }
704
- ],
705
- "name": "slippageFeeVote",
706
- "outputs": [],
707
- "stateMutability": "nonpayable",
708
- "type": "function"
709
- },
710
- {
711
- "inputs": [
712
- {
713
- "internalType": "address",
714
- "name": "user",
715
- "type": "address"
716
- }
717
- ],
718
- "name": "slippageFeeVotes",
719
- "outputs": [
720
- {
721
- "internalType": "uint256",
722
- "name": "",
723
- "type": "uint256"
724
- }
725
- ],
726
- "stateMutability": "view",
727
- "type": "function"
728
- },
729
- {
730
- "inputs": [],
731
- "name": "symbol",
732
- "outputs": [
733
- {
734
- "internalType": "string",
735
- "name": "",
736
- "type": "string"
737
- }
738
- ],
739
- "stateMutability": "view",
740
- "type": "function"
741
- },
742
- {
743
- "inputs": [],
744
- "name": "token0",
745
- "outputs": [
746
- {
747
- "internalType": "contract IERC20",
748
- "name": "",
749
- "type": "address"
750
- }
751
- ],
752
- "stateMutability": "view",
753
- "type": "function"
754
- },
755
- {
756
- "inputs": [],
757
- "name": "token1",
758
- "outputs": [
759
- {
760
- "internalType": "contract IERC20",
761
- "name": "",
762
- "type": "address"
763
- }
764
- ],
765
- "stateMutability": "view",
766
- "type": "function"
767
- },
768
- {
769
- "inputs": [],
770
- "name": "totalSupply",
771
- "outputs": [
772
- {
773
- "internalType": "uint256",
774
- "name": "",
775
- "type": "uint256"
776
- }
777
- ],
778
- "stateMutability": "view",
779
- "type": "function"
780
- },
781
- {
782
- "inputs": [
783
- {
784
- "internalType": "address",
785
- "name": "recipient",
786
- "type": "address"
787
- },
788
- {
789
- "internalType": "uint256",
790
- "name": "amount",
791
- "type": "uint256"
792
- }
793
- ],
794
- "name": "transfer",
795
- "outputs": [
796
- {
797
- "internalType": "bool",
798
- "name": "",
799
- "type": "bool"
800
- }
801
- ],
802
- "stateMutability": "nonpayable",
803
- "type": "function"
804
- },
805
- {
806
- "inputs": [
807
- {
808
- "internalType": "address",
809
- "name": "sender",
810
- "type": "address"
811
- },
812
- {
813
- "internalType": "address",
814
- "name": "recipient",
815
- "type": "address"
816
- },
817
- {
818
- "internalType": "uint256",
819
- "name": "amount",
820
- "type": "uint256"
821
- }
822
- ],
823
- "name": "transferFrom",
824
- "outputs": [
825
- {
826
- "internalType": "bool",
827
- "name": "",
828
- "type": "bool"
829
- }
830
- ],
831
- "stateMutability": "nonpayable",
832
- "type": "function"
833
- },
834
- {
835
- "inputs": [
836
- {
837
- "internalType": "address",
838
- "name": "newOwner",
839
- "type": "address"
840
- }
841
- ],
842
- "name": "transferOwnership",
843
- "outputs": [],
844
- "stateMutability": "nonpayable",
845
- "type": "function"
846
- },
847
- {
848
- "inputs": [
849
- {
850
- "internalType": "contract IERC20",
851
- "name": "",
852
- "type": "address"
853
- }
854
- ],
855
- "name": "virtualBalancesForAddition",
856
- "outputs": [
857
- {
858
- "internalType": "uint216",
859
- "name": "balance",
860
- "type": "uint216"
861
- },
862
- {
863
- "internalType": "uint40",
864
- "name": "time",
865
- "type": "uint40"
866
- }
867
- ],
868
- "stateMutability": "view",
869
- "type": "function"
870
- },
871
- {
872
- "inputs": [
873
- {
874
- "internalType": "contract IERC20",
875
- "name": "",
876
- "type": "address"
877
- }
878
- ],
879
- "name": "virtualBalancesForRemoval",
880
- "outputs": [
881
- {
882
- "internalType": "uint216",
883
- "name": "balance",
884
- "type": "uint216"
885
- },
886
- {
887
- "internalType": "uint40",
888
- "name": "time",
889
- "type": "uint40"
890
- }
891
- ],
892
- "stateMutability": "view",
893
- "type": "function"
894
- },
895
- {
896
- "inputs": [],
897
- "name": "virtualDecayPeriod",
898
- "outputs": [
899
- {
900
- "internalType": "uint104",
901
- "name": "",
902
- "type": "uint104"
903
- },
904
- {
905
- "internalType": "uint104",
906
- "name": "",
907
- "type": "uint104"
908
- },
909
- {
910
- "internalType": "uint48",
911
- "name": "",
912
- "type": "uint48"
913
- }
914
- ],
915
- "stateMutability": "view",
916
- "type": "function"
917
- },
918
- {
919
- "inputs": [],
920
- "name": "virtualFee",
921
- "outputs": [
922
- {
923
- "internalType": "uint104",
924
- "name": "",
925
- "type": "uint104"
926
- },
927
- {
928
- "internalType": "uint104",
929
- "name": "",
930
- "type": "uint104"
931
- },
932
- {
933
- "internalType": "uint48",
934
- "name": "",
935
- "type": "uint48"
936
- }
937
- ],
938
- "stateMutability": "view",
939
- "type": "function"
940
- },
941
- {
942
- "inputs": [],
943
- "name": "virtualSlippageFee",
944
- "outputs": [
945
- {
946
- "internalType": "uint104",
947
- "name": "",
948
- "type": "uint104"
949
- },
950
- {
951
- "internalType": "uint104",
952
- "name": "",
953
- "type": "uint104"
954
- },
955
- {
956
- "internalType": "uint48",
957
- "name": "",
958
- "type": "uint48"
959
- }
960
- ],
961
- "stateMutability": "view",
962
- "type": "function"
963
- },
964
- {
965
- "inputs": [
966
- {
967
- "internalType": "contract IERC20",
968
- "name": "",
969
- "type": "address"
970
- }
971
- ],
972
- "name": "volumes",
973
- "outputs": [
974
- {
975
- "internalType": "uint128",
976
- "name": "confirmed",
977
- "type": "uint128"
978
- },
979
- {
980
- "internalType": "uint128",
981
- "name": "result",
982
- "type": "uint128"
983
- }
984
- ],
985
- "stateMutability": "view",
986
- "type": "function"
987
- },
988
- {
989
- "inputs": [],
990
- "name": "getTokens",
991
- "outputs": [
992
- {
993
- "internalType": "contract IERC20[]",
994
- "name": "tokens",
995
- "type": "address[]"
996
- }
997
- ],
998
- "stateMutability": "view",
999
- "type": "function"
1000
- },
1001
- {
1002
- "inputs": [
1003
- {
1004
- "internalType": "uint256",
1005
- "name": "i",
1006
- "type": "uint256"
1007
- }
1008
- ],
1009
- "name": "tokens",
1010
- "outputs": [
1011
- {
1012
- "internalType": "contract IERC20",
1013
- "name": "",
1014
- "type": "address"
1015
- }
1016
- ],
1017
- "stateMutability": "view",
1018
- "type": "function"
1019
- },
1020
- {
1021
- "inputs": [
1022
- {
1023
- "internalType": "contract IERC20",
1024
- "name": "token",
1025
- "type": "address"
1026
- }
1027
- ],
1028
- "name": "getBalanceForAddition",
1029
- "outputs": [
1030
- {
1031
- "internalType": "uint256",
1032
- "name": "",
1033
- "type": "uint256"
1034
- }
1035
- ],
1036
- "stateMutability": "view",
1037
- "type": "function"
1038
- },
1039
- {
1040
- "inputs": [
1041
- {
1042
- "internalType": "contract IERC20",
1043
- "name": "token",
1044
- "type": "address"
1045
- }
1046
- ],
1047
- "name": "getBalanceForRemoval",
1048
- "outputs": [
1049
- {
1050
- "internalType": "uint256",
1051
- "name": "",
1052
- "type": "uint256"
1053
- }
1054
- ],
1055
- "stateMutability": "view",
1056
- "type": "function"
1057
- },
1058
- {
1059
- "inputs": [
1060
- {
1061
- "internalType": "contract IERC20",
1062
- "name": "src",
1063
- "type": "address"
1064
- },
1065
- {
1066
- "internalType": "contract IERC20",
1067
- "name": "dst",
1068
- "type": "address"
1069
- },
1070
- {
1071
- "internalType": "uint256",
1072
- "name": "amount",
1073
- "type": "uint256"
1074
- }
1075
- ],
1076
- "name": "getReturn",
1077
- "outputs": [
1078
- {
1079
- "internalType": "uint256",
1080
- "name": "",
1081
- "type": "uint256"
1082
- }
1083
- ],
1084
- "stateMutability": "view",
1085
- "type": "function"
1086
- },
1087
- {
1088
- "inputs": [
1089
- {
1090
- "internalType": "uint256[2]",
1091
- "name": "maxAmounts",
1092
- "type": "uint256[2]"
1093
- },
1094
- {
1095
- "internalType": "uint256[2]",
1096
- "name": "minAmounts",
1097
- "type": "uint256[2]"
1098
- }
1099
- ],
1100
- "name": "deposit",
1101
- "outputs": [
1102
- {
1103
- "internalType": "uint256",
1104
- "name": "fairSupply",
1105
- "type": "uint256"
1106
- },
1107
- {
1108
- "internalType": "uint256[2]",
1109
- "name": "receivedAmounts",
1110
- "type": "uint256[2]"
1111
- }
1112
- ],
1113
- "stateMutability": "payable",
1114
- "type": "function"
1115
- },
1116
- {
1117
- "inputs": [
1118
- {
1119
- "internalType": "uint256[2]",
1120
- "name": "maxAmounts",
1121
- "type": "uint256[2]"
1122
- },
1123
- {
1124
- "internalType": "uint256[2]",
1125
- "name": "minAmounts",
1126
- "type": "uint256[2]"
1127
- },
1128
- {
1129
- "internalType": "address",
1130
- "name": "target",
1131
- "type": "address"
1132
- }
1133
- ],
1134
- "name": "depositFor",
1135
- "outputs": [
1136
- {
1137
- "internalType": "uint256",
1138
- "name": "fairSupply",
1139
- "type": "uint256"
1140
- },
1141
- {
1142
- "internalType": "uint256[2]",
1143
- "name": "receivedAmounts",
1144
- "type": "uint256[2]"
1145
- }
1146
- ],
1147
- "stateMutability": "payable",
1148
- "type": "function"
1149
- },
1150
- {
1151
- "inputs": [
1152
- {
1153
- "internalType": "uint256",
1154
- "name": "amount",
1155
- "type": "uint256"
1156
- },
1157
- {
1158
- "internalType": "uint256[]",
1159
- "name": "minReturns",
1160
- "type": "uint256[]"
1161
- }
1162
- ],
1163
- "name": "withdraw",
1164
- "outputs": [
1165
- {
1166
- "internalType": "uint256[2]",
1167
- "name": "withdrawnAmounts",
1168
- "type": "uint256[2]"
1169
- }
1170
- ],
1171
- "stateMutability": "nonpayable",
1172
- "type": "function"
1173
- },
1174
- {
1175
- "inputs": [
1176
- {
1177
- "internalType": "uint256",
1178
- "name": "amount",
1179
- "type": "uint256"
1180
- },
1181
- {
1182
- "internalType": "uint256[]",
1183
- "name": "minReturns",
1184
- "type": "uint256[]"
1185
- },
1186
- {
1187
- "internalType": "address payable",
1188
- "name": "target",
1189
- "type": "address"
1190
- }
1191
- ],
1192
- "name": "withdrawFor",
1193
- "outputs": [
1194
- {
1195
- "internalType": "uint256[2]",
1196
- "name": "withdrawnAmounts",
1197
- "type": "uint256[2]"
1198
- }
1199
- ],
1200
- "stateMutability": "nonpayable",
1201
- "type": "function"
1202
- },
1203
- {
1204
- "inputs": [
1205
- {
1206
- "internalType": "contract IERC20",
1207
- "name": "src",
1208
- "type": "address"
1209
- },
1210
- {
1211
- "internalType": "contract IERC20",
1212
- "name": "dst",
1213
- "type": "address"
1214
- },
1215
- {
1216
- "internalType": "uint256",
1217
- "name": "amount",
1218
- "type": "uint256"
1219
- },
1220
- {
1221
- "internalType": "uint256",
1222
- "name": "minReturn",
1223
- "type": "uint256"
1224
- },
1225
- {
1226
- "internalType": "address",
1227
- "name": "referral",
1228
- "type": "address"
1229
- }
1230
- ],
1231
- "name": "swap",
1232
- "outputs": [
1233
- {
1234
- "internalType": "uint256",
1235
- "name": "result",
1236
- "type": "uint256"
1237
- }
1238
- ],
1239
- "stateMutability": "payable",
1240
- "type": "function"
1241
- },
1242
- {
1243
- "inputs": [
1244
- {
1245
- "internalType": "contract IERC20",
1246
- "name": "src",
1247
- "type": "address"
1248
- },
1249
- {
1250
- "internalType": "contract IERC20",
1251
- "name": "dst",
1252
- "type": "address"
1253
- },
1254
- {
1255
- "internalType": "uint256",
1256
- "name": "amount",
1257
- "type": "uint256"
1258
- },
1259
- {
1260
- "internalType": "uint256",
1261
- "name": "minReturn",
1262
- "type": "uint256"
1263
- },
1264
- {
1265
- "internalType": "address",
1266
- "name": "referral",
1267
- "type": "address"
1268
- },
1269
- {
1270
- "internalType": "address payable",
1271
- "name": "receiver",
1272
- "type": "address"
1273
- }
1274
- ],
1275
- "name": "swapFor",
1276
- "outputs": [
1277
- {
1278
- "internalType": "uint256",
1279
- "name": "result",
1280
- "type": "uint256"
1281
- }
1282
- ],
1283
- "stateMutability": "payable",
1284
- "type": "function"
1285
- },
1286
- {
1287
- "inputs": [
1288
- {
1289
- "internalType": "contract IERC20",
1290
- "name": "token",
1291
- "type": "address"
1292
- },
1293
- {
1294
- "internalType": "uint256",
1295
- "name": "amount",
1296
- "type": "uint256"
1297
- }
1298
- ],
1299
- "name": "rescueFunds",
1300
- "outputs": [],
1301
- "stateMutability": "nonpayable",
1302
- "type": "function"
1303
- }
1304
- ]