@paraswap/dex-lib 4.7.6 → 4.7.8

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 (157) hide show
  1. package/build/dex/bebop/bebop.d.ts +4 -2
  2. package/build/dex/bebop/bebop.js +42 -12
  3. package/build/dex/bebop/bebop.js.map +1 -1
  4. package/build/dex/bebop/constants.d.ts +5 -0
  5. package/build/dex/bebop/constants.js +7 -1
  6. package/build/dex/bebop/constants.js.map +1 -1
  7. package/build/dex/cables/cables.d.ts +6 -3
  8. package/build/dex/cables/cables.js +51 -7
  9. package/build/dex/cables/cables.js.map +1 -1
  10. package/build/dex/cables/constants.d.ts +5 -0
  11. package/build/dex/cables/constants.js +6 -1
  12. package/build/dex/cables/constants.js.map +1 -1
  13. package/build/dex/cables/rate-fetcher.d.ts +3 -1
  14. package/build/dex/cables/rate-fetcher.js +8 -6
  15. package/build/dex/cables/rate-fetcher.js.map +1 -1
  16. package/build/dex/cables/types.d.ts +6 -1
  17. package/build/dex/dexalot/constants.d.ts +2 -0
  18. package/build/dex/dexalot/constants.js +3 -1
  19. package/build/dex/dexalot/constants.js.map +1 -1
  20. package/build/dex/dexalot/dexalot.d.ts +8 -2
  21. package/build/dex/dexalot/dexalot.js +43 -5
  22. package/build/dex/dexalot/dexalot.js.map +1 -1
  23. package/build/dex/dexalot/rate-fetcher.d.ts +3 -1
  24. package/build/dex/dexalot/rate-fetcher.js +8 -6
  25. package/build/dex/dexalot/rate-fetcher.js.map +1 -1
  26. package/build/dex/dexalot/types.d.ts +2 -1
  27. package/build/dex/generic-rfq/generic-rfq.d.ts +2 -0
  28. package/build/dex/generic-rfq/generic-rfq.js +8 -1
  29. package/build/dex/generic-rfq/generic-rfq.js.map +1 -1
  30. package/build/dex/generic-rfq/rate-fetcher.d.ts +10 -8
  31. package/build/dex/generic-rfq/rate-fetcher.js +12 -7
  32. package/build/dex/generic-rfq/rate-fetcher.js.map +1 -1
  33. package/build/dex/generic-rfq/types.d.ts +0 -6
  34. package/build/dex/generic-rfq/types.js +1 -12
  35. package/build/dex/generic-rfq/types.js.map +1 -1
  36. package/build/dex/hashflow/hashflow.d.ts +5 -2
  37. package/build/dex/hashflow/hashflow.js +15 -4
  38. package/build/dex/hashflow/hashflow.js.map +1 -1
  39. package/build/dex/idex.d.ts +2 -12
  40. package/build/dex/idle-dao/idle-dao.d.ts +1 -0
  41. package/build/dex/idle-dao/idle-dao.js +23 -11
  42. package/build/dex/idle-dao/idle-dao.js.map +1 -1
  43. package/build/dex/limit-order-exchange.d.ts +2 -2
  44. package/build/dex/limit-order-exchange.js +2 -2
  45. package/build/dex/limit-order-exchange.js.map +1 -1
  46. package/build/dex/{se-vlr/se-vlr-pool.d.ts → maker-psm/maker-psm-event-pool.d.ts} +15 -11
  47. package/build/dex/maker-psm/maker-psm-event-pool.js +132 -0
  48. package/build/dex/maker-psm/maker-psm-event-pool.js.map +1 -0
  49. package/build/dex/maker-psm/maker-psm.d.ts +4 -41
  50. package/build/dex/maker-psm/maker-psm.js +40 -143
  51. package/build/dex/maker-psm/maker-psm.js.map +1 -1
  52. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.d.ts +1 -0
  53. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js +8 -0
  54. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js.map +1 -1
  55. package/build/dex/simple-exchange-with-restrictions.js +2 -2
  56. package/build/dex/simple-exchange-with-restrictions.js.map +1 -1
  57. package/build/dex/swaap-v2/swaap-v2.d.ts +5 -2
  58. package/build/dex/swaap-v2/swaap-v2.js +16 -4
  59. package/build/dex/swaap-v2/swaap-v2.js.map +1 -1
  60. package/build/dex/uniswap-v4/contract-math/Position.d.ts +6 -0
  61. package/build/dex/uniswap-v4/contract-math/Position.js +29 -0
  62. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -1
  63. package/build/dex-helper/dummy-dex-helper.js +1 -14
  64. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  65. package/build/dex-helper/icache.d.ts +0 -2
  66. package/build/pricing-helper.d.ts +0 -1
  67. package/build/pricing-helper.js +0 -34
  68. package/build/pricing-helper.js.map +1 -1
  69. package/package.json +1 -1
  70. package/build/abi/BProtocol.json +0 -1155
  71. package/build/abi/Jarvis.json +0 -1172
  72. package/build/abi/MStableAsset.json +0 -1545
  73. package/build/abi/OneInchLp.json +0 -1304
  74. package/build/abi/Onebit.json +0 -736
  75. package/build/abi/Shell.json +0 -1294
  76. package/build/abi/TraderJoeV2Router.json +0 -50
  77. package/build/abi/wUSDM.json +0 -757
  78. package/build/abi/zrx.v2.json +0 -1967
  79. package/build/abi/zrx.v3.json +0 -3454
  80. package/build/abi/zrx.v4.json +0 -2193
  81. package/build/dex/OneInchLp.d.ts +0 -24
  82. package/build/dex/OneInchLp.js +0 -43
  83. package/build/dex/OneInchLp.js.map +0 -1
  84. package/build/dex/bProtocol/bProtocol.d.ts +0 -15
  85. package/build/dex/bProtocol/bProtocol.js +0 -56
  86. package/build/dex/bProtocol/bProtocol.js.map +0 -1
  87. package/build/dex/bProtocol/types.d.ts +0 -11
  88. package/build/dex/bProtocol/types.js +0 -8
  89. package/build/dex/bProtocol/types.js.map +0 -1
  90. package/build/dex/jarvis.d.ts +0 -56
  91. package/build/dex/jarvis.js +0 -163
  92. package/build/dex/jarvis.js.map +0 -1
  93. package/build/dex/mStable.d.ts +0 -44
  94. package/build/dex/mStable.js +0 -75
  95. package/build/dex/mStable.js.map +0 -1
  96. package/build/dex/onebit/onebit.d.ts +0 -16
  97. package/build/dex/onebit/onebit.js +0 -61
  98. package/build/dex/onebit/onebit.js.map +0 -1
  99. package/build/dex/onebit/types.d.ts +0 -14
  100. package/build/dex/onebit/types.js +0 -8
  101. package/build/dex/onebit/types.js.map +0 -1
  102. package/build/dex/se-vlr/config.d.ts +0 -3
  103. package/build/dex/se-vlr/config.js +0 -24
  104. package/build/dex/se-vlr/config.js.map +0 -1
  105. package/build/dex/se-vlr/se-vlr-pool.js +0 -70
  106. package/build/dex/se-vlr/se-vlr-pool.js.map +0 -1
  107. package/build/dex/se-vlr/se-vlr.d.ts +0 -35
  108. package/build/dex/se-vlr/se-vlr.js +0 -131
  109. package/build/dex/se-vlr/se-vlr.js.map +0 -1
  110. package/build/dex/se-vlr/types.d.ts +0 -6
  111. package/build/dex/se-vlr/types.js +0 -3
  112. package/build/dex/se-vlr/types.js.map +0 -1
  113. package/build/dex/shell.d.ts +0 -25
  114. package/build/dex/shell.js +0 -41
  115. package/build/dex/shell.js.map +0 -1
  116. package/build/dex/trader-joe-v2.d.ts +0 -40
  117. package/build/dex/trader-joe-v2.js +0 -74
  118. package/build/dex/trader-joe-v2.js.map +0 -1
  119. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +0 -94
  120. package/build/dex/uniswap-v3/uniswap-v3-new.js +0 -923
  121. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +0 -1
  122. package/build/dex/usual-bond/config.d.ts +0 -3
  123. package/build/dex/usual-bond/config.js +0 -13
  124. package/build/dex/usual-bond/config.js.map +0 -1
  125. package/build/dex/usual-bond/types.d.ts +0 -7
  126. package/build/dex/usual-bond/types.js +0 -3
  127. package/build/dex/usual-bond/types.js.map +0 -1
  128. package/build/dex/usual-bond/usual-bond.d.ts +0 -35
  129. package/build/dex/usual-bond/usual-bond.js +0 -176
  130. package/build/dex/usual-bond/usual-bond.js.map +0 -1
  131. package/build/dex/wusdm/config.d.ts +0 -3
  132. package/build/dex/wusdm/config.js +0 -43
  133. package/build/dex/wusdm/config.js.map +0 -1
  134. package/build/dex/wusdm/constants.d.ts +0 -2
  135. package/build/dex/wusdm/constants.js +0 -6
  136. package/build/dex/wusdm/constants.js.map +0 -1
  137. package/build/dex/wusdm/types.d.ts +0 -18
  138. package/build/dex/wusdm/types.js +0 -11
  139. package/build/dex/wusdm/types.js.map +0 -1
  140. package/build/dex/wusdm/wusdm-pool.d.ts +0 -21
  141. package/build/dex/wusdm/wusdm-pool.js +0 -74
  142. package/build/dex/wusdm/wusdm-pool.js.map +0 -1
  143. package/build/dex/wusdm/wusdm.d.ts +0 -46
  144. package/build/dex/wusdm/wusdm.js +0 -243
  145. package/build/dex/wusdm/wusdm.js.map +0 -1
  146. package/build/dex/zerox/config.d.ts +0 -2
  147. package/build/dex/zerox/config.js +0 -33
  148. package/build/dex/zerox/config.js.map +0 -1
  149. package/build/dex/zerox/index.d.ts +0 -22
  150. package/build/dex/zerox/index.js +0 -225
  151. package/build/dex/zerox/index.js.map +0 -1
  152. package/build/dex/zerox/order.d.ts +0 -88
  153. package/build/dex/zerox/order.js +0 -53
  154. package/build/dex/zerox/order.js.map +0 -1
  155. package/build/dex/zerox/types.d.ts +0 -73
  156. package/build/dex/zerox/types.js +0 -21
  157. package/build/dex/zerox/types.js.map +0 -1
@@ -1,1155 +0,0 @@
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
- ]