@paraswap/dex-lib 4.7.11-native.8 → 4.7.12-multi-wrapper-non-zero-sender.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 (107) hide show
  1. package/build/abi/BProtocol.json +1155 -0
  2. package/build/abi/Jarvis.json +1172 -0
  3. package/build/abi/MStableAsset.json +1545 -0
  4. package/build/abi/OneInchLp.json +1304 -0
  5. package/build/abi/Onebit.json +736 -0
  6. package/build/abi/Shell.json +1294 -0
  7. package/build/abi/TraderJoeV2Router.json +50 -0
  8. package/build/abi/wUSDM.json +757 -0
  9. package/build/abi/zrx.v2.json +1967 -0
  10. package/build/abi/zrx.v3.json +3454 -0
  11. package/build/abi/zrx.v4.json +2193 -0
  12. package/build/dex/OneInchLp.d.ts +24 -0
  13. package/build/dex/OneInchLp.js +43 -0
  14. package/build/dex/OneInchLp.js.map +1 -0
  15. package/build/dex/bProtocol/bProtocol.d.ts +15 -0
  16. package/build/dex/bProtocol/bProtocol.js +56 -0
  17. package/build/dex/bProtocol/bProtocol.js.map +1 -0
  18. package/build/dex/bProtocol/types.d.ts +11 -0
  19. package/build/dex/bProtocol/types.js +8 -0
  20. package/build/dex/bProtocol/types.js.map +1 -0
  21. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.js +1 -1
  22. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.js.map +1 -1
  23. package/build/dex/idle-dao/idle-dao.d.ts +0 -1
  24. package/build/dex/idle-dao/idle-dao.js +11 -23
  25. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  26. package/build/dex/jarvis.d.ts +56 -0
  27. package/build/dex/jarvis.js +163 -0
  28. package/build/dex/jarvis.js.map +1 -0
  29. package/build/dex/mStable.d.ts +44 -0
  30. package/build/dex/mStable.js +75 -0
  31. package/build/dex/mStable.js.map +1 -0
  32. package/build/dex/maker-psm/maker-psm.d.ts +41 -4
  33. package/build/dex/maker-psm/maker-psm.js +143 -40
  34. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  35. package/build/dex/onebit/onebit.d.ts +16 -0
  36. package/build/dex/onebit/onebit.js +61 -0
  37. package/build/dex/onebit/onebit.js.map +1 -0
  38. package/build/dex/onebit/types.d.ts +14 -0
  39. package/build/dex/onebit/types.js +8 -0
  40. package/build/dex/onebit/types.js.map +1 -0
  41. package/build/dex/se-vlr/config.d.ts +3 -0
  42. package/build/dex/se-vlr/config.js +24 -0
  43. package/build/dex/se-vlr/config.js.map +1 -0
  44. package/build/dex/{maker-psm/maker-psm-event-pool.d.ts → se-vlr/se-vlr-pool.d.ts} +11 -15
  45. package/build/dex/se-vlr/se-vlr-pool.js +70 -0
  46. package/build/dex/se-vlr/se-vlr-pool.js.map +1 -0
  47. package/build/dex/se-vlr/se-vlr.d.ts +35 -0
  48. package/build/dex/se-vlr/se-vlr.js +131 -0
  49. package/build/dex/se-vlr/se-vlr.js.map +1 -0
  50. package/build/dex/se-vlr/types.d.ts +6 -0
  51. package/build/dex/se-vlr/types.js +3 -0
  52. package/build/dex/se-vlr/types.js.map +1 -0
  53. package/build/dex/shell.d.ts +25 -0
  54. package/build/dex/shell.js +41 -0
  55. package/build/dex/shell.js.map +1 -0
  56. package/build/dex/trader-joe-v2.d.ts +40 -0
  57. package/build/dex/trader-joe-v2.js +74 -0
  58. package/build/dex/trader-joe-v2.js.map +1 -0
  59. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +94 -0
  60. package/build/dex/uniswap-v3/uniswap-v3-new.js +923 -0
  61. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +1 -0
  62. package/build/dex/uniswap-v4/contract-math/Position.d.ts +0 -6
  63. package/build/dex/uniswap-v4/contract-math/Position.js +0 -29
  64. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -1
  65. package/build/dex/usual-bond/config.d.ts +3 -0
  66. package/build/dex/usual-bond/config.js +13 -0
  67. package/build/dex/usual-bond/config.js.map +1 -0
  68. package/build/dex/usual-bond/types.d.ts +7 -0
  69. package/build/dex/usual-bond/types.js +3 -0
  70. package/build/dex/usual-bond/types.js.map +1 -0
  71. package/build/dex/usual-bond/usual-bond.d.ts +35 -0
  72. package/build/dex/usual-bond/usual-bond.js +176 -0
  73. package/build/dex/usual-bond/usual-bond.js.map +1 -0
  74. package/build/dex/wusdm/config.d.ts +3 -0
  75. package/build/dex/wusdm/config.js +43 -0
  76. package/build/dex/wusdm/config.js.map +1 -0
  77. package/build/dex/wusdm/constants.d.ts +2 -0
  78. package/build/dex/wusdm/constants.js +6 -0
  79. package/build/dex/wusdm/constants.js.map +1 -0
  80. package/build/dex/wusdm/types.d.ts +18 -0
  81. package/build/dex/wusdm/types.js +11 -0
  82. package/build/dex/wusdm/types.js.map +1 -0
  83. package/build/dex/wusdm/wusdm-pool.d.ts +21 -0
  84. package/build/dex/wusdm/wusdm-pool.js +74 -0
  85. package/build/dex/wusdm/wusdm-pool.js.map +1 -0
  86. package/build/dex/wusdm/wusdm.d.ts +46 -0
  87. package/build/dex/wusdm/wusdm.js +243 -0
  88. package/build/dex/wusdm/wusdm.js.map +1 -0
  89. package/build/dex/zerox/config.d.ts +2 -0
  90. package/build/dex/zerox/config.js +33 -0
  91. package/build/dex/zerox/config.js.map +1 -0
  92. package/build/dex/zerox/index.d.ts +22 -0
  93. package/build/dex/zerox/index.js +225 -0
  94. package/build/dex/zerox/index.js.map +1 -0
  95. package/build/dex/zerox/order.d.ts +88 -0
  96. package/build/dex/zerox/order.js +53 -0
  97. package/build/dex/zerox/order.js.map +1 -0
  98. package/build/dex/zerox/types.d.ts +73 -0
  99. package/build/dex/zerox/types.js +21 -0
  100. package/build/dex/zerox/types.js.map +1 -0
  101. package/build/dex-helper/dummy-dex-helper.d.ts +2 -0
  102. package/build/dex-helper/dummy-dex-helper.js +4 -0
  103. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  104. package/build/dex-helper/idex-helper.d.ts +2 -0
  105. package/package.json +1 -1
  106. package/build/dex/maker-psm/maker-psm-event-pool.js +0 -132
  107. package/build/dex/maker-psm/maker-psm-event-pool.js.map +0 -1
@@ -0,0 +1,1155 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_priceAggregator",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address payable",
11
+ "name": "_SP",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_LUSD",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "internalType": "address",
21
+ "name": "_LQTY",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "_maxDiscount",
27
+ "type": "uint256"
28
+ },
29
+ {
30
+ "internalType": "address payable",
31
+ "name": "_feePool",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "internalType": "address",
36
+ "name": "_fronEndTag",
37
+ "type": "address"
38
+ }
39
+ ],
40
+ "stateMutability": "nonpayable",
41
+ "type": "constructor"
42
+ },
43
+ {
44
+ "anonymous": false,
45
+ "inputs": [
46
+ {
47
+ "indexed": false,
48
+ "internalType": "uint256",
49
+ "name": "val",
50
+ "type": "uint256"
51
+ }
52
+ ],
53
+ "name": "Exit",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "anonymous": false,
58
+ "inputs": [],
59
+ "name": "Flee",
60
+ "type": "event"
61
+ },
62
+ {
63
+ "anonymous": false,
64
+ "inputs": [
65
+ {
66
+ "indexed": false,
67
+ "internalType": "uint256",
68
+ "name": "val",
69
+ "type": "uint256"
70
+ }
71
+ ],
72
+ "name": "Join",
73
+ "type": "event"
74
+ },
75
+ {
76
+ "anonymous": false,
77
+ "inputs": [
78
+ {
79
+ "indexed": true,
80
+ "internalType": "address",
81
+ "name": "previousOwner",
82
+ "type": "address"
83
+ },
84
+ {
85
+ "indexed": true,
86
+ "internalType": "address",
87
+ "name": "newOwner",
88
+ "type": "address"
89
+ }
90
+ ],
91
+ "name": "OwnershipTransferred",
92
+ "type": "event"
93
+ },
94
+ {
95
+ "anonymous": false,
96
+ "inputs": [
97
+ {
98
+ "indexed": false,
99
+ "internalType": "uint256",
100
+ "name": "A",
101
+ "type": "uint256"
102
+ },
103
+ {
104
+ "indexed": false,
105
+ "internalType": "uint256",
106
+ "name": "fee",
107
+ "type": "uint256"
108
+ }
109
+ ],
110
+ "name": "ParamsSet",
111
+ "type": "event"
112
+ },
113
+ {
114
+ "anonymous": false,
115
+ "inputs": [
116
+ {
117
+ "indexed": true,
118
+ "internalType": "address",
119
+ "name": "user",
120
+ "type": "address"
121
+ },
122
+ {
123
+ "indexed": false,
124
+ "internalType": "uint256",
125
+ "name": "lusdAmount",
126
+ "type": "uint256"
127
+ },
128
+ {
129
+ "indexed": false,
130
+ "internalType": "uint256",
131
+ "name": "ethAmount",
132
+ "type": "uint256"
133
+ },
134
+ {
135
+ "indexed": false,
136
+ "internalType": "uint256",
137
+ "name": "timestamp",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "name": "RebalanceSwap",
142
+ "type": "event"
143
+ },
144
+ {
145
+ "anonymous": false,
146
+ "inputs": [
147
+ {
148
+ "indexed": true,
149
+ "internalType": "address",
150
+ "name": "src",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "indexed": true,
155
+ "internalType": "address",
156
+ "name": "dst",
157
+ "type": "address"
158
+ },
159
+ {
160
+ "indexed": false,
161
+ "internalType": "uint256",
162
+ "name": "wad",
163
+ "type": "uint256"
164
+ }
165
+ ],
166
+ "name": "Tack",
167
+ "type": "event"
168
+ },
169
+ {
170
+ "anonymous": false,
171
+ "inputs": [
172
+ {
173
+ "indexed": true,
174
+ "internalType": "address",
175
+ "name": "_from",
176
+ "type": "address"
177
+ },
178
+ {
179
+ "indexed": true,
180
+ "internalType": "address",
181
+ "name": "_to",
182
+ "type": "address"
183
+ },
184
+ {
185
+ "indexed": false,
186
+ "internalType": "uint256",
187
+ "name": "_value",
188
+ "type": "uint256"
189
+ }
190
+ ],
191
+ "name": "Transfer",
192
+ "type": "event"
193
+ },
194
+ {
195
+ "anonymous": false,
196
+ "inputs": [
197
+ {
198
+ "indexed": true,
199
+ "internalType": "address",
200
+ "name": "user",
201
+ "type": "address"
202
+ },
203
+ {
204
+ "indexed": false,
205
+ "internalType": "uint256",
206
+ "name": "lusdAmount",
207
+ "type": "uint256"
208
+ },
209
+ {
210
+ "indexed": false,
211
+ "internalType": "uint256",
212
+ "name": "numShares",
213
+ "type": "uint256"
214
+ }
215
+ ],
216
+ "name": "UserDeposit",
217
+ "type": "event"
218
+ },
219
+ {
220
+ "anonymous": false,
221
+ "inputs": [
222
+ {
223
+ "indexed": true,
224
+ "internalType": "address",
225
+ "name": "user",
226
+ "type": "address"
227
+ },
228
+ {
229
+ "indexed": false,
230
+ "internalType": "uint256",
231
+ "name": "lusdAmount",
232
+ "type": "uint256"
233
+ },
234
+ {
235
+ "indexed": false,
236
+ "internalType": "uint256",
237
+ "name": "ethAmount",
238
+ "type": "uint256"
239
+ },
240
+ {
241
+ "indexed": false,
242
+ "internalType": "uint256",
243
+ "name": "numShares",
244
+ "type": "uint256"
245
+ }
246
+ ],
247
+ "name": "UserWithdraw",
248
+ "type": "event"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "A",
253
+ "outputs": [
254
+ {
255
+ "internalType": "uint256",
256
+ "name": "",
257
+ "type": "uint256"
258
+ }
259
+ ],
260
+ "stateMutability": "view",
261
+ "type": "function"
262
+ },
263
+ {
264
+ "inputs": [],
265
+ "name": "LUSD",
266
+ "outputs": [
267
+ {
268
+ "internalType": "contract IERC20",
269
+ "name": "",
270
+ "type": "address"
271
+ }
272
+ ],
273
+ "stateMutability": "view",
274
+ "type": "function"
275
+ },
276
+ {
277
+ "inputs": [],
278
+ "name": "MAX_A",
279
+ "outputs": [
280
+ {
281
+ "internalType": "uint256",
282
+ "name": "",
283
+ "type": "uint256"
284
+ }
285
+ ],
286
+ "stateMutability": "view",
287
+ "type": "function"
288
+ },
289
+ {
290
+ "inputs": [],
291
+ "name": "MAX_FEE",
292
+ "outputs": [
293
+ {
294
+ "internalType": "uint256",
295
+ "name": "",
296
+ "type": "uint256"
297
+ }
298
+ ],
299
+ "stateMutability": "view",
300
+ "type": "function"
301
+ },
302
+ {
303
+ "inputs": [],
304
+ "name": "MIN_A",
305
+ "outputs": [
306
+ {
307
+ "internalType": "uint256",
308
+ "name": "",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "stateMutability": "view",
313
+ "type": "function"
314
+ },
315
+ {
316
+ "inputs": [],
317
+ "name": "PRECISION",
318
+ "outputs": [
319
+ {
320
+ "internalType": "uint256",
321
+ "name": "",
322
+ "type": "uint256"
323
+ }
324
+ ],
325
+ "stateMutability": "view",
326
+ "type": "function"
327
+ },
328
+ {
329
+ "inputs": [],
330
+ "name": "SP",
331
+ "outputs": [
332
+ {
333
+ "internalType": "contract StabilityPool",
334
+ "name": "",
335
+ "type": "address"
336
+ }
337
+ ],
338
+ "stateMutability": "view",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [
343
+ {
344
+ "internalType": "uint256",
345
+ "name": "x",
346
+ "type": "uint256"
347
+ },
348
+ {
349
+ "internalType": "uint256",
350
+ "name": "y",
351
+ "type": "uint256"
352
+ }
353
+ ],
354
+ "name": "add",
355
+ "outputs": [
356
+ {
357
+ "internalType": "uint256",
358
+ "name": "z",
359
+ "type": "uint256"
360
+ }
361
+ ],
362
+ "stateMutability": "pure",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [
367
+ {
368
+ "internalType": "address",
369
+ "name": "owner",
370
+ "type": "address"
371
+ }
372
+ ],
373
+ "name": "balanceOf",
374
+ "outputs": [
375
+ {
376
+ "internalType": "uint256",
377
+ "name": "balance",
378
+ "type": "uint256"
379
+ }
380
+ ],
381
+ "stateMutability": "view",
382
+ "type": "function"
383
+ },
384
+ {
385
+ "inputs": [],
386
+ "name": "bonus",
387
+ "outputs": [
388
+ {
389
+ "internalType": "contract ERC20",
390
+ "name": "",
391
+ "type": "address"
392
+ }
393
+ ],
394
+ "stateMutability": "view",
395
+ "type": "function"
396
+ },
397
+ {
398
+ "inputs": [
399
+ {
400
+ "internalType": "address",
401
+ "name": "",
402
+ "type": "address"
403
+ }
404
+ ],
405
+ "name": "crops",
406
+ "outputs": [
407
+ {
408
+ "internalType": "uint256",
409
+ "name": "",
410
+ "type": "uint256"
411
+ }
412
+ ],
413
+ "stateMutability": "view",
414
+ "type": "function"
415
+ },
416
+ {
417
+ "inputs": [],
418
+ "name": "dec",
419
+ "outputs": [
420
+ {
421
+ "internalType": "uint256",
422
+ "name": "",
423
+ "type": "uint256"
424
+ }
425
+ ],
426
+ "stateMutability": "view",
427
+ "type": "function"
428
+ },
429
+ {
430
+ "inputs": [],
431
+ "name": "decimals",
432
+ "outputs": [
433
+ {
434
+ "internalType": "uint256",
435
+ "name": "",
436
+ "type": "uint256"
437
+ }
438
+ ],
439
+ "stateMutability": "view",
440
+ "type": "function"
441
+ },
442
+ {
443
+ "inputs": [
444
+ {
445
+ "internalType": "uint256",
446
+ "name": "lusdAmount",
447
+ "type": "uint256"
448
+ }
449
+ ],
450
+ "name": "deposit",
451
+ "outputs": [],
452
+ "stateMutability": "nonpayable",
453
+ "type": "function"
454
+ },
455
+ {
456
+ "inputs": [],
457
+ "name": "fee",
458
+ "outputs": [
459
+ {
460
+ "internalType": "uint256",
461
+ "name": "",
462
+ "type": "uint256"
463
+ }
464
+ ],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [],
470
+ "name": "feePool",
471
+ "outputs": [
472
+ {
473
+ "internalType": "address payable",
474
+ "name": "",
475
+ "type": "address"
476
+ }
477
+ ],
478
+ "stateMutability": "view",
479
+ "type": "function"
480
+ },
481
+ {
482
+ "inputs": [],
483
+ "name": "fetchPrice",
484
+ "outputs": [
485
+ {
486
+ "internalType": "uint256",
487
+ "name": "",
488
+ "type": "uint256"
489
+ }
490
+ ],
491
+ "stateMutability": "view",
492
+ "type": "function"
493
+ },
494
+ {
495
+ "inputs": [],
496
+ "name": "frontEndTag",
497
+ "outputs": [
498
+ {
499
+ "internalType": "address",
500
+ "name": "",
501
+ "type": "address"
502
+ }
503
+ ],
504
+ "stateMutability": "view",
505
+ "type": "function"
506
+ },
507
+ {
508
+ "inputs": [],
509
+ "name": "gem",
510
+ "outputs": [
511
+ {
512
+ "internalType": "contract ERC20",
513
+ "name": "",
514
+ "type": "address"
515
+ }
516
+ ],
517
+ "stateMutability": "view",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [
522
+ {
523
+ "internalType": "contract IERC20",
524
+ "name": "",
525
+ "type": "address"
526
+ },
527
+ {
528
+ "internalType": "contract IERC20",
529
+ "name": "",
530
+ "type": "address"
531
+ },
532
+ {
533
+ "internalType": "uint256",
534
+ "name": "srcQty",
535
+ "type": "uint256"
536
+ },
537
+ {
538
+ "internalType": "uint256",
539
+ "name": "",
540
+ "type": "uint256"
541
+ }
542
+ ],
543
+ "name": "getConversionRate",
544
+ "outputs": [
545
+ {
546
+ "internalType": "uint256",
547
+ "name": "",
548
+ "type": "uint256"
549
+ }
550
+ ],
551
+ "stateMutability": "view",
552
+ "type": "function"
553
+ },
554
+ {
555
+ "inputs": [
556
+ {
557
+ "internalType": "uint256",
558
+ "name": "xQty",
559
+ "type": "uint256"
560
+ },
561
+ {
562
+ "internalType": "uint256",
563
+ "name": "xBalance",
564
+ "type": "uint256"
565
+ },
566
+ {
567
+ "internalType": "uint256",
568
+ "name": "yBalance",
569
+ "type": "uint256"
570
+ },
571
+ {
572
+ "internalType": "uint256",
573
+ "name": "A",
574
+ "type": "uint256"
575
+ }
576
+ ],
577
+ "name": "getReturn",
578
+ "outputs": [
579
+ {
580
+ "internalType": "uint256",
581
+ "name": "",
582
+ "type": "uint256"
583
+ }
584
+ ],
585
+ "stateMutability": "pure",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "internalType": "uint256",
592
+ "name": "x",
593
+ "type": "uint256"
594
+ },
595
+ {
596
+ "internalType": "uint256",
597
+ "name": "y",
598
+ "type": "uint256"
599
+ },
600
+ {
601
+ "internalType": "uint256",
602
+ "name": "A",
603
+ "type": "uint256"
604
+ }
605
+ ],
606
+ "name": "getSumFixedPoint",
607
+ "outputs": [
608
+ {
609
+ "internalType": "uint256",
610
+ "name": "",
611
+ "type": "uint256"
612
+ }
613
+ ],
614
+ "stateMutability": "pure",
615
+ "type": "function"
616
+ },
617
+ {
618
+ "inputs": [
619
+ {
620
+ "internalType": "uint256",
621
+ "name": "lusdQty",
622
+ "type": "uint256"
623
+ }
624
+ ],
625
+ "name": "getSwapEthAmount",
626
+ "outputs": [
627
+ {
628
+ "internalType": "uint256",
629
+ "name": "ethAmount",
630
+ "type": "uint256"
631
+ },
632
+ {
633
+ "internalType": "uint256",
634
+ "name": "feeEthAmount",
635
+ "type": "uint256"
636
+ }
637
+ ],
638
+ "stateMutability": "view",
639
+ "type": "function"
640
+ },
641
+ {
642
+ "inputs": [],
643
+ "name": "ilk",
644
+ "outputs": [
645
+ {
646
+ "internalType": "bytes32",
647
+ "name": "",
648
+ "type": "bytes32"
649
+ }
650
+ ],
651
+ "stateMutability": "view",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [],
656
+ "name": "isOwner",
657
+ "outputs": [
658
+ {
659
+ "internalType": "bool",
660
+ "name": "",
661
+ "type": "bool"
662
+ }
663
+ ],
664
+ "stateMutability": "view",
665
+ "type": "function"
666
+ },
667
+ {
668
+ "inputs": [],
669
+ "name": "maxDiscount",
670
+ "outputs": [
671
+ {
672
+ "internalType": "uint256",
673
+ "name": "",
674
+ "type": "uint256"
675
+ }
676
+ ],
677
+ "stateMutability": "view",
678
+ "type": "function"
679
+ },
680
+ {
681
+ "inputs": [
682
+ {
683
+ "internalType": "uint256",
684
+ "name": "x",
685
+ "type": "uint256"
686
+ },
687
+ {
688
+ "internalType": "uint256",
689
+ "name": "y",
690
+ "type": "uint256"
691
+ }
692
+ ],
693
+ "name": "mul",
694
+ "outputs": [
695
+ {
696
+ "internalType": "uint256",
697
+ "name": "z",
698
+ "type": "uint256"
699
+ }
700
+ ],
701
+ "stateMutability": "pure",
702
+ "type": "function"
703
+ },
704
+ {
705
+ "inputs": [],
706
+ "name": "name",
707
+ "outputs": [
708
+ {
709
+ "internalType": "string",
710
+ "name": "",
711
+ "type": "string"
712
+ }
713
+ ],
714
+ "stateMutability": "view",
715
+ "type": "function"
716
+ },
717
+ {
718
+ "inputs": [],
719
+ "name": "nav",
720
+ "outputs": [
721
+ {
722
+ "internalType": "uint256",
723
+ "name": "",
724
+ "type": "uint256"
725
+ }
726
+ ],
727
+ "stateMutability": "nonpayable",
728
+ "type": "function"
729
+ },
730
+ {
731
+ "inputs": [],
732
+ "name": "nps",
733
+ "outputs": [
734
+ {
735
+ "internalType": "uint256",
736
+ "name": "",
737
+ "type": "uint256"
738
+ }
739
+ ],
740
+ "stateMutability": "nonpayable",
741
+ "type": "function"
742
+ },
743
+ {
744
+ "inputs": [],
745
+ "name": "owner",
746
+ "outputs": [
747
+ {
748
+ "internalType": "address",
749
+ "name": "",
750
+ "type": "address"
751
+ }
752
+ ],
753
+ "stateMutability": "view",
754
+ "type": "function"
755
+ },
756
+ {
757
+ "inputs": [],
758
+ "name": "priceAggregator",
759
+ "outputs": [
760
+ {
761
+ "internalType": "contract AggregatorV3Interface",
762
+ "name": "",
763
+ "type": "address"
764
+ }
765
+ ],
766
+ "stateMutability": "view",
767
+ "type": "function"
768
+ },
769
+ {
770
+ "inputs": [
771
+ {
772
+ "internalType": "uint256",
773
+ "name": "x",
774
+ "type": "uint256"
775
+ },
776
+ {
777
+ "internalType": "uint256",
778
+ "name": "y",
779
+ "type": "uint256"
780
+ }
781
+ ],
782
+ "name": "rdiv",
783
+ "outputs": [
784
+ {
785
+ "internalType": "uint256",
786
+ "name": "z",
787
+ "type": "uint256"
788
+ }
789
+ ],
790
+ "stateMutability": "pure",
791
+ "type": "function"
792
+ },
793
+ {
794
+ "inputs": [
795
+ {
796
+ "internalType": "uint256",
797
+ "name": "x",
798
+ "type": "uint256"
799
+ },
800
+ {
801
+ "internalType": "uint256",
802
+ "name": "y",
803
+ "type": "uint256"
804
+ }
805
+ ],
806
+ "name": "rmul",
807
+ "outputs": [
808
+ {
809
+ "internalType": "uint256",
810
+ "name": "z",
811
+ "type": "uint256"
812
+ }
813
+ ],
814
+ "stateMutability": "pure",
815
+ "type": "function"
816
+ },
817
+ {
818
+ "inputs": [
819
+ {
820
+ "internalType": "uint256",
821
+ "name": "x",
822
+ "type": "uint256"
823
+ },
824
+ {
825
+ "internalType": "uint256",
826
+ "name": "y",
827
+ "type": "uint256"
828
+ }
829
+ ],
830
+ "name": "rmulup",
831
+ "outputs": [
832
+ {
833
+ "internalType": "uint256",
834
+ "name": "z",
835
+ "type": "uint256"
836
+ }
837
+ ],
838
+ "stateMutability": "pure",
839
+ "type": "function"
840
+ },
841
+ {
842
+ "inputs": [
843
+ {
844
+ "internalType": "uint256",
845
+ "name": "_A",
846
+ "type": "uint256"
847
+ },
848
+ {
849
+ "internalType": "uint256",
850
+ "name": "_fee",
851
+ "type": "uint256"
852
+ }
853
+ ],
854
+ "name": "setParams",
855
+ "outputs": [],
856
+ "stateMutability": "nonpayable",
857
+ "type": "function"
858
+ },
859
+ {
860
+ "inputs": [],
861
+ "name": "share",
862
+ "outputs": [
863
+ {
864
+ "internalType": "uint256",
865
+ "name": "",
866
+ "type": "uint256"
867
+ }
868
+ ],
869
+ "stateMutability": "view",
870
+ "type": "function"
871
+ },
872
+ {
873
+ "inputs": [
874
+ {
875
+ "internalType": "address",
876
+ "name": "",
877
+ "type": "address"
878
+ }
879
+ ],
880
+ "name": "stake",
881
+ "outputs": [
882
+ {
883
+ "internalType": "uint256",
884
+ "name": "",
885
+ "type": "uint256"
886
+ }
887
+ ],
888
+ "stateMutability": "view",
889
+ "type": "function"
890
+ },
891
+ {
892
+ "inputs": [],
893
+ "name": "stock",
894
+ "outputs": [
895
+ {
896
+ "internalType": "uint256",
897
+ "name": "",
898
+ "type": "uint256"
899
+ }
900
+ ],
901
+ "stateMutability": "view",
902
+ "type": "function"
903
+ },
904
+ {
905
+ "inputs": [
906
+ {
907
+ "internalType": "uint256",
908
+ "name": "x",
909
+ "type": "uint256"
910
+ },
911
+ {
912
+ "internalType": "uint256",
913
+ "name": "y",
914
+ "type": "uint256"
915
+ }
916
+ ],
917
+ "name": "sub",
918
+ "outputs": [
919
+ {
920
+ "internalType": "uint256",
921
+ "name": "z",
922
+ "type": "uint256"
923
+ }
924
+ ],
925
+ "stateMutability": "pure",
926
+ "type": "function"
927
+ },
928
+ {
929
+ "inputs": [
930
+ {
931
+ "internalType": "uint256",
932
+ "name": "lusdAmount",
933
+ "type": "uint256"
934
+ },
935
+ {
936
+ "internalType": "uint256",
937
+ "name": "minEthReturn",
938
+ "type": "uint256"
939
+ },
940
+ {
941
+ "internalType": "address payable",
942
+ "name": "dest",
943
+ "type": "address"
944
+ }
945
+ ],
946
+ "name": "swap",
947
+ "outputs": [
948
+ {
949
+ "internalType": "uint256",
950
+ "name": "",
951
+ "type": "uint256"
952
+ }
953
+ ],
954
+ "stateMutability": "nonpayable",
955
+ "type": "function"
956
+ },
957
+ {
958
+ "inputs": [],
959
+ "name": "symbol",
960
+ "outputs": [
961
+ {
962
+ "internalType": "string",
963
+ "name": "",
964
+ "type": "string"
965
+ }
966
+ ],
967
+ "stateMutability": "view",
968
+ "type": "function"
969
+ },
970
+ {
971
+ "inputs": [],
972
+ "name": "total",
973
+ "outputs": [
974
+ {
975
+ "internalType": "uint256",
976
+ "name": "",
977
+ "type": "uint256"
978
+ }
979
+ ],
980
+ "stateMutability": "view",
981
+ "type": "function"
982
+ },
983
+ {
984
+ "inputs": [],
985
+ "name": "totalSupply",
986
+ "outputs": [
987
+ {
988
+ "internalType": "uint256",
989
+ "name": "",
990
+ "type": "uint256"
991
+ }
992
+ ],
993
+ "stateMutability": "view",
994
+ "type": "function"
995
+ },
996
+ {
997
+ "inputs": [
998
+ {
999
+ "internalType": "contract IERC20",
1000
+ "name": "",
1001
+ "type": "address"
1002
+ },
1003
+ {
1004
+ "internalType": "uint256",
1005
+ "name": "srcAmount",
1006
+ "type": "uint256"
1007
+ },
1008
+ {
1009
+ "internalType": "contract IERC20",
1010
+ "name": "",
1011
+ "type": "address"
1012
+ },
1013
+ {
1014
+ "internalType": "address payable",
1015
+ "name": "destAddress",
1016
+ "type": "address"
1017
+ },
1018
+ {
1019
+ "internalType": "uint256",
1020
+ "name": "",
1021
+ "type": "uint256"
1022
+ },
1023
+ {
1024
+ "internalType": "bool",
1025
+ "name": "",
1026
+ "type": "bool"
1027
+ }
1028
+ ],
1029
+ "name": "trade",
1030
+ "outputs": [
1031
+ {
1032
+ "internalType": "bool",
1033
+ "name": "",
1034
+ "type": "bool"
1035
+ }
1036
+ ],
1037
+ "stateMutability": "payable",
1038
+ "type": "function"
1039
+ },
1040
+ {
1041
+ "inputs": [
1042
+ {
1043
+ "internalType": "address",
1044
+ "name": "newOwner",
1045
+ "type": "address"
1046
+ }
1047
+ ],
1048
+ "name": "transferOwnership",
1049
+ "outputs": [],
1050
+ "stateMutability": "nonpayable",
1051
+ "type": "function"
1052
+ },
1053
+ {
1054
+ "inputs": [],
1055
+ "name": "vat",
1056
+ "outputs": [
1057
+ {
1058
+ "internalType": "contract VatLike",
1059
+ "name": "",
1060
+ "type": "address"
1061
+ }
1062
+ ],
1063
+ "stateMutability": "view",
1064
+ "type": "function"
1065
+ },
1066
+ {
1067
+ "inputs": [
1068
+ {
1069
+ "internalType": "uint256",
1070
+ "name": "x",
1071
+ "type": "uint256"
1072
+ },
1073
+ {
1074
+ "internalType": "uint256",
1075
+ "name": "y",
1076
+ "type": "uint256"
1077
+ }
1078
+ ],
1079
+ "name": "wdiv",
1080
+ "outputs": [
1081
+ {
1082
+ "internalType": "uint256",
1083
+ "name": "z",
1084
+ "type": "uint256"
1085
+ }
1086
+ ],
1087
+ "stateMutability": "pure",
1088
+ "type": "function"
1089
+ },
1090
+ {
1091
+ "inputs": [
1092
+ {
1093
+ "internalType": "uint256",
1094
+ "name": "x",
1095
+ "type": "uint256"
1096
+ },
1097
+ {
1098
+ "internalType": "uint256",
1099
+ "name": "y",
1100
+ "type": "uint256"
1101
+ }
1102
+ ],
1103
+ "name": "wdivup",
1104
+ "outputs": [
1105
+ {
1106
+ "internalType": "uint256",
1107
+ "name": "z",
1108
+ "type": "uint256"
1109
+ }
1110
+ ],
1111
+ "stateMutability": "pure",
1112
+ "type": "function"
1113
+ },
1114
+ {
1115
+ "inputs": [
1116
+ {
1117
+ "internalType": "uint256",
1118
+ "name": "numShares",
1119
+ "type": "uint256"
1120
+ }
1121
+ ],
1122
+ "name": "withdraw",
1123
+ "outputs": [],
1124
+ "stateMutability": "nonpayable",
1125
+ "type": "function"
1126
+ },
1127
+ {
1128
+ "inputs": [
1129
+ {
1130
+ "internalType": "uint256",
1131
+ "name": "x",
1132
+ "type": "uint256"
1133
+ },
1134
+ {
1135
+ "internalType": "uint256",
1136
+ "name": "y",
1137
+ "type": "uint256"
1138
+ }
1139
+ ],
1140
+ "name": "wmul",
1141
+ "outputs": [
1142
+ {
1143
+ "internalType": "uint256",
1144
+ "name": "z",
1145
+ "type": "uint256"
1146
+ }
1147
+ ],
1148
+ "stateMutability": "pure",
1149
+ "type": "function"
1150
+ },
1151
+ {
1152
+ "stateMutability": "payable",
1153
+ "type": "receive"
1154
+ }
1155
+ ]