@paraswap/dex-lib 3.7.5 → 3.7.6

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 (91) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  5. package/build/abi/{idle-dao/idle-cdo.json → wombat/pool.json} +588 -544
  6. package/build/dex/aave-v1/aave-v1.js +1 -0
  7. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  8. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  9. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  10. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  11. package/build/dex/bProtocol.d.ts +18 -0
  12. package/build/dex/bProtocol.js +39 -0
  13. package/build/dex/bProtocol.js.map +1 -0
  14. package/build/dex/bancor.d.ts +26 -0
  15. package/build/dex/bancor.js +58 -0
  16. package/build/dex/bancor.js.map +1 -0
  17. package/build/dex/compound.d.ts +18 -0
  18. package/build/dex/compound.js +46 -0
  19. package/build/dex/compound.js.map +1 -0
  20. package/build/dex/curve-v2.d.ts +58 -0
  21. package/build/dex/curve-v2.js +180 -0
  22. package/build/dex/curve-v2.js.map +1 -0
  23. package/build/dex/dodo-v1.d.ts +33 -0
  24. package/build/dex/dodo-v1.js +63 -0
  25. package/build/dex/dodo-v1.js.map +1 -0
  26. package/build/dex/lido.d.ts +19 -0
  27. package/build/dex/lido.js +42 -0
  28. package/build/dex/lido.js.map +1 -0
  29. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  30. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  31. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  32. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  33. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  34. package/build/dex/maverick-v2/maverick-v2-pool.d.ts +1 -0
  35. package/build/dex/maverick-v2/maverick-v2-pool.js +14 -0
  36. package/build/dex/maverick-v2/maverick-v2-pool.js.map +1 -1
  37. package/build/dex/maverick-v2/maverick-v2.js +1 -1
  38. package/build/dex/maverick-v2/maverick-v2.js.map +1 -1
  39. package/build/dex/onebit.d.ts +25 -0
  40. package/build/dex/onebit.js +42 -0
  41. package/build/dex/onebit.js.map +1 -0
  42. package/build/dex/platypus/platypus.js +17 -3
  43. package/build/dex/platypus/platypus.js.map +1 -1
  44. package/build/dex/smoothy.d.ts +26 -0
  45. package/build/dex/smoothy.js +48 -0
  46. package/build/dex/smoothy.js.map +1 -0
  47. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  48. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  49. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  50. package/build/dex/stable-pool.d.ts +28 -0
  51. package/build/dex/stable-pool.js +55 -0
  52. package/build/dex/stable-pool.js.map +1 -0
  53. package/build/dex/swaap-v1/swaap-v1.js +4 -0
  54. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  55. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  56. package/build/dex/trader-joe-v2.1.js +79 -0
  57. package/build/dex/trader-joe-v2.1.js.map +1 -0
  58. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  59. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  60. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  61. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  62. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  63. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  64. package/package.json +1 -1
  65. package/src/dex/maverick-v2/maverick-v2-pool.ts +23 -0
  66. package/src/dex/maverick-v2/maverick-v2.ts +2 -3
  67. package/build/abi/idle-dao/idle-cdo-factory.json +0 -38
  68. package/build/dex/idle-dao/config.d.ts +0 -6
  69. package/build/dex/idle-dao/config.js +0 -307
  70. package/build/dex/idle-dao/config.js.map +0 -1
  71. package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
  72. package/build/dex/idle-dao/idle-dao-pool.js +0 -176
  73. package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
  74. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
  75. package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
  76. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
  77. package/build/dex/idle-dao/idle-dao.d.ts +0 -41
  78. package/build/dex/idle-dao/idle-dao.js +0 -240
  79. package/build/dex/idle-dao/idle-dao.js.map +0 -1
  80. package/build/dex/idle-dao/scripts.d.ts +0 -9
  81. package/build/dex/idle-dao/scripts.js +0 -552
  82. package/build/dex/idle-dao/scripts.js.map +0 -1
  83. package/build/dex/idle-dao/tokens.d.ts +0 -9
  84. package/build/dex/idle-dao/tokens.js +0 -65
  85. package/build/dex/idle-dao/tokens.js.map +0 -1
  86. package/build/dex/idle-dao/types.d.ts +0 -35
  87. package/build/dex/idle-dao/types.js +0 -11
  88. package/build/dex/idle-dao/types.js.map +0 -1
  89. package/build/dex/idle-dao/utils.d.ts +0 -8
  90. package/build/dex/idle-dao/utils.js +0 -148
  91. package/build/dex/idle-dao/utils.js.map +0 -1
@@ -1,32 +1,21 @@
1
1
  [
2
- {
3
- "inputs": [],
4
- "stateMutability": "nonpayable",
5
- "type": "constructor"
6
- },
7
2
  {
8
3
  "anonymous": false,
9
4
  "inputs": [
10
5
  {
11
6
  "indexed": true,
12
7
  "internalType": "address",
13
- "name": "contractAddress",
8
+ "name": "token",
14
9
  "type": "address"
15
10
  },
16
11
  {
17
12
  "indexed": true,
18
13
  "internalType": "address",
19
- "name": "user",
14
+ "name": "asset",
20
15
  "type": "address"
21
- },
22
- {
23
- "indexed": false,
24
- "internalType": "uint256",
25
- "name": "susdeAmount",
26
- "type": "uint256"
27
16
  }
28
17
  ],
29
- "name": "NewCooldownRequestContract",
18
+ "name": "AssetAdded",
30
19
  "type": "event"
31
20
  },
32
21
  {
@@ -35,30 +24,54 @@
35
24
  {
36
25
  "indexed": true,
37
26
  "internalType": "address",
38
- "name": "previousOwner",
27
+ "name": "token",
39
28
  "type": "address"
40
29
  },
41
30
  {
42
31
  "indexed": true,
43
32
  "internalType": "address",
44
- "name": "newOwner",
33
+ "name": "asset",
45
34
  "type": "address"
46
35
  }
47
36
  ],
48
- "name": "OwnershipTransferred",
37
+ "name": "AssetRemoved",
49
38
  "type": "event"
50
39
  },
51
40
  {
52
41
  "anonymous": false,
53
42
  "inputs": [
43
+ {
44
+ "indexed": true,
45
+ "internalType": "address",
46
+ "name": "sender",
47
+ "type": "address"
48
+ },
54
49
  {
55
50
  "indexed": false,
56
51
  "internalType": "address",
57
- "name": "account",
52
+ "name": "token",
53
+ "type": "address"
54
+ },
55
+ {
56
+ "indexed": false,
57
+ "internalType": "uint256",
58
+ "name": "amount",
59
+ "type": "uint256"
60
+ },
61
+ {
62
+ "indexed": false,
63
+ "internalType": "uint256",
64
+ "name": "liquidity",
65
+ "type": "uint256"
66
+ },
67
+ {
68
+ "indexed": true,
69
+ "internalType": "address",
70
+ "name": "to",
58
71
  "type": "address"
59
72
  }
60
73
  ],
61
- "name": "Paused",
74
+ "name": "Deposit",
62
75
  "type": "event"
63
76
  },
64
77
  {
@@ -67,302 +80,349 @@
67
80
  {
68
81
  "indexed": false,
69
82
  "internalType": "address",
70
- "name": "account",
83
+ "name": "token",
71
84
  "type": "address"
85
+ },
86
+ {
87
+ "indexed": false,
88
+ "internalType": "uint256",
89
+ "name": "amount",
90
+ "type": "uint256"
72
91
  }
73
92
  ],
74
- "name": "Unpaused",
93
+ "name": "FillPool",
75
94
  "type": "event"
76
95
  },
77
96
  {
78
- "inputs": [],
79
- "name": "AAStaking",
80
- "outputs": [
97
+ "anonymous": false,
98
+ "inputs": [
81
99
  {
82
- "internalType": "address",
83
- "name": "",
84
- "type": "address"
100
+ "indexed": false,
101
+ "internalType": "uint8",
102
+ "name": "version",
103
+ "type": "uint8"
85
104
  }
86
105
  ],
87
- "stateMutability": "view",
88
- "type": "function"
106
+ "name": "Initialized",
107
+ "type": "event"
89
108
  },
90
109
  {
91
- "inputs": [],
92
- "name": "AATranche",
93
- "outputs": [
110
+ "anonymous": false,
111
+ "inputs": [
94
112
  {
113
+ "indexed": true,
95
114
  "internalType": "address",
96
- "name": "",
115
+ "name": "previousOwner",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "indexed": true,
120
+ "internalType": "address",
121
+ "name": "newOwner",
97
122
  "type": "address"
98
123
  }
99
124
  ],
100
- "stateMutability": "view",
101
- "type": "function"
125
+ "name": "OwnershipTransferred",
126
+ "type": "event"
102
127
  },
103
128
  {
104
- "inputs": [],
105
- "name": "BBStaking",
106
- "outputs": [
129
+ "anonymous": false,
130
+ "inputs": [
107
131
  {
132
+ "indexed": false,
108
133
  "internalType": "address",
109
- "name": "",
134
+ "name": "account",
110
135
  "type": "address"
111
136
  }
112
137
  ],
113
- "stateMutability": "view",
114
- "type": "function"
138
+ "name": "Paused",
139
+ "type": "event"
115
140
  },
116
141
  {
117
- "inputs": [],
118
- "name": "BBTranche",
119
- "outputs": [
142
+ "anonymous": false,
143
+ "inputs": [
120
144
  {
145
+ "indexed": false,
121
146
  "internalType": "address",
122
- "name": "",
147
+ "name": "token",
148
+ "type": "address"
149
+ },
150
+ {
151
+ "indexed": false,
152
+ "internalType": "address",
153
+ "name": "account",
123
154
  "type": "address"
124
155
  }
125
156
  ],
126
- "stateMutability": "view",
127
- "type": "function"
157
+ "name": "PausedAsset",
158
+ "type": "event"
128
159
  },
129
160
  {
130
- "inputs": [],
131
- "name": "FULL_ALLOC",
132
- "outputs": [
161
+ "anonymous": false,
162
+ "inputs": [
133
163
  {
164
+ "indexed": false,
134
165
  "internalType": "uint256",
135
- "name": "",
166
+ "name": "value",
136
167
  "type": "uint256"
137
168
  }
138
169
  ],
139
- "stateMutability": "view",
140
- "type": "function"
170
+ "name": "SetAmpFactor",
171
+ "type": "event"
141
172
  },
142
173
  {
143
- "inputs": [],
144
- "name": "AA_RATIO_LIM_UP",
145
- "outputs": [
174
+ "anonymous": false,
175
+ "inputs": [
146
176
  {
147
- "internalType": "uint256",
148
- "name": "",
149
- "type": "uint256"
177
+ "indexed": false,
178
+ "internalType": "address",
179
+ "name": "addr",
180
+ "type": "address"
150
181
  }
151
182
  ],
152
- "stateMutability": "view",
153
- "type": "function"
183
+ "name": "SetDev",
184
+ "type": "event"
154
185
  },
155
186
  {
156
- "inputs": [],
157
- "name": "AA_RATIO_LIM_DOWN",
158
- "outputs": [
187
+ "anonymous": false,
188
+ "inputs": [
159
189
  {
190
+ "indexed": false,
160
191
  "internalType": "uint256",
161
- "name": "",
192
+ "name": "lpDividendRatio",
162
193
  "type": "uint256"
163
- }
164
- ],
165
- "stateMutability": "view",
166
- "type": "function"
167
- },
168
- {
169
- "inputs": [],
170
- "name": "MAX_FEE",
171
- "outputs": [
194
+ },
172
195
  {
196
+ "indexed": false,
173
197
  "internalType": "uint256",
174
- "name": "",
198
+ "name": "retentionRatio",
175
199
  "type": "uint256"
176
200
  }
177
201
  ],
178
- "stateMutability": "view",
179
- "type": "function"
202
+ "name": "SetFee",
203
+ "type": "event"
180
204
  },
181
205
  {
182
- "inputs": [],
183
- "name": "ONE_TRANCHE_TOKEN",
184
- "outputs": [
206
+ "anonymous": false,
207
+ "inputs": [
185
208
  {
186
- "internalType": "uint256",
187
- "name": "",
188
- "type": "uint256"
209
+ "indexed": false,
210
+ "internalType": "address",
211
+ "name": "addr",
212
+ "type": "address"
189
213
  }
190
214
  ],
191
- "stateMutability": "view",
192
- "type": "function"
215
+ "name": "SetFeeTo",
216
+ "type": "event"
193
217
  },
194
218
  {
219
+ "anonymous": false,
195
220
  "inputs": [
196
221
  {
222
+ "indexed": false,
197
223
  "internalType": "uint256",
198
- "name": "_limit",
224
+ "name": "value",
199
225
  "type": "uint256"
200
226
  }
201
227
  ],
202
- "name": "_setLimit",
203
- "outputs": [],
204
- "stateMutability": "nonpayable",
205
- "type": "function"
228
+ "name": "SetHaircutRate",
229
+ "type": "event"
206
230
  },
207
231
  {
208
- "inputs": [],
209
- "name": "allowAAWithdraw",
210
- "outputs": [
232
+ "anonymous": false,
233
+ "inputs": [
211
234
  {
212
- "internalType": "bool",
213
- "name": "",
214
- "type": "bool"
235
+ "indexed": false,
236
+ "internalType": "address",
237
+ "name": "addr",
238
+ "type": "address"
215
239
  }
216
240
  ],
217
- "stateMutability": "view",
218
- "type": "function"
241
+ "name": "SetMasterWombat",
242
+ "type": "event"
219
243
  },
220
244
  {
221
- "inputs": [],
222
- "name": "allowBBWithdraw",
223
- "outputs": [
245
+ "anonymous": false,
246
+ "inputs": [
224
247
  {
225
- "internalType": "bool",
226
- "name": "",
227
- "type": "bool"
248
+ "indexed": false,
249
+ "internalType": "uint256",
250
+ "name": "value",
251
+ "type": "uint256"
228
252
  }
229
253
  ],
230
- "stateMutability": "view",
231
- "type": "function"
254
+ "name": "SetMintFeeThreshold",
255
+ "type": "event"
232
256
  },
233
257
  {
258
+ "anonymous": false,
234
259
  "inputs": [
235
260
  {
261
+ "indexed": true,
262
+ "internalType": "address",
263
+ "name": "sender",
264
+ "type": "address"
265
+ },
266
+ {
267
+ "indexed": false,
268
+ "internalType": "address",
269
+ "name": "fromToken",
270
+ "type": "address"
271
+ },
272
+ {
273
+ "indexed": false,
274
+ "internalType": "address",
275
+ "name": "toToken",
276
+ "type": "address"
277
+ },
278
+ {
279
+ "indexed": false,
236
280
  "internalType": "uint256",
237
- "name": "_amount",
281
+ "name": "fromAmount",
238
282
  "type": "uint256"
239
- }
240
- ],
241
- "name": "depositAA",
242
- "outputs": [
283
+ },
243
284
  {
285
+ "indexed": false,
244
286
  "internalType": "uint256",
245
- "name": "",
287
+ "name": "toAmount",
246
288
  "type": "uint256"
289
+ },
290
+ {
291
+ "indexed": true,
292
+ "internalType": "address",
293
+ "name": "to",
294
+ "type": "address"
247
295
  }
248
296
  ],
249
- "stateMutability": "nonpayable",
250
- "type": "function"
297
+ "name": "Swap",
298
+ "type": "event"
251
299
  },
252
300
  {
301
+ "anonymous": false,
253
302
  "inputs": [
254
303
  {
304
+ "indexed": false,
305
+ "internalType": "address",
306
+ "name": "token",
307
+ "type": "address"
308
+ },
309
+ {
310
+ "indexed": false,
255
311
  "internalType": "uint256",
256
- "name": "_amount",
312
+ "name": "amount",
257
313
  "type": "uint256"
258
314
  },
259
315
  {
316
+ "indexed": false,
260
317
  "internalType": "address",
261
- "name": "_referral",
318
+ "name": "to",
262
319
  "type": "address"
263
320
  }
264
321
  ],
265
- "name": "depositAARef",
266
- "outputs": [
322
+ "name": "TransferTipBucket",
323
+ "type": "event"
324
+ },
325
+ {
326
+ "anonymous": false,
327
+ "inputs": [
267
328
  {
268
- "internalType": "uint256",
269
- "name": "",
270
- "type": "uint256"
329
+ "indexed": false,
330
+ "internalType": "address",
331
+ "name": "account",
332
+ "type": "address"
271
333
  }
272
334
  ],
273
- "stateMutability": "nonpayable",
274
- "type": "function"
335
+ "name": "Unpaused",
336
+ "type": "event"
275
337
  },
276
338
  {
339
+ "anonymous": false,
277
340
  "inputs": [
278
341
  {
279
- "internalType": "uint256",
280
- "name": "_amount",
281
- "type": "uint256"
282
- }
283
- ],
284
- "name": "depositBB",
285
- "outputs": [
342
+ "indexed": false,
343
+ "internalType": "address",
344
+ "name": "token",
345
+ "type": "address"
346
+ },
286
347
  {
287
- "internalType": "uint256",
288
- "name": "",
289
- "type": "uint256"
348
+ "indexed": false,
349
+ "internalType": "address",
350
+ "name": "account",
351
+ "type": "address"
290
352
  }
291
353
  ],
292
- "stateMutability": "nonpayable",
293
- "type": "function"
354
+ "name": "UnpausedAsset",
355
+ "type": "event"
294
356
  },
295
357
  {
358
+ "anonymous": false,
296
359
  "inputs": [
297
360
  {
298
- "internalType": "uint256",
299
- "name": "_amount",
300
- "type": "uint256"
361
+ "indexed": true,
362
+ "internalType": "address",
363
+ "name": "sender",
364
+ "type": "address"
301
365
  },
302
366
  {
367
+ "indexed": false,
303
368
  "internalType": "address",
304
- "name": "_referral",
369
+ "name": "token",
305
370
  "type": "address"
306
- }
307
- ],
308
- "name": "depositBBRef",
309
- "outputs": [
371
+ },
310
372
  {
373
+ "indexed": false,
311
374
  "internalType": "uint256",
312
- "name": "",
375
+ "name": "amount",
313
376
  "type": "uint256"
314
- }
315
- ],
316
- "stateMutability": "nonpayable",
317
- "type": "function"
318
- },
319
- {
320
- "inputs": [],
321
- "name": "emergencyShutdown",
322
- "outputs": [],
323
- "stateMutability": "nonpayable",
324
- "type": "function"
325
- },
326
- {
327
- "inputs": [],
328
- "name": "fee",
329
- "outputs": [
377
+ },
330
378
  {
379
+ "indexed": false,
331
380
  "internalType": "uint256",
332
- "name": "",
381
+ "name": "liquidity",
333
382
  "type": "uint256"
383
+ },
384
+ {
385
+ "indexed": true,
386
+ "internalType": "address",
387
+ "name": "to",
388
+ "type": "address"
334
389
  }
335
390
  ],
336
- "stateMutability": "view",
337
- "type": "function"
391
+ "name": "Withdraw",
392
+ "type": "event"
338
393
  },
339
394
  {
340
- "inputs": [],
341
- "name": "feeReceiver",
342
- "outputs": [
395
+ "inputs": [
343
396
  {
344
397
  "internalType": "address",
345
- "name": "",
398
+ "name": "token",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "internalType": "address",
403
+ "name": "asset",
346
404
  "type": "address"
347
405
  }
348
406
  ],
349
- "stateMutability": "view",
407
+ "name": "addAsset",
408
+ "outputs": [],
409
+ "stateMutability": "nonpayable",
350
410
  "type": "function"
351
411
  },
352
412
  {
353
413
  "inputs": [
354
414
  {
355
415
  "internalType": "address",
356
- "name": "_tranche",
416
+ "name": "token",
357
417
  "type": "address"
358
418
  }
359
419
  ],
360
- "name": "getApr",
420
+ "name": "addressOfAsset",
361
421
  "outputs": [
362
422
  {
363
- "internalType": "uint256",
423
+ "internalType": "address",
364
424
  "name": "",
365
- "type": "uint256"
425
+ "type": "address"
366
426
  }
367
427
  ],
368
428
  "stateMutability": "view",
@@ -370,7 +430,7 @@
370
430
  },
371
431
  {
372
432
  "inputs": [],
373
- "name": "getContractValue",
433
+ "name": "ampFactor",
374
434
  "outputs": [
375
435
  {
376
436
  "internalType": "uint256",
@@ -382,45 +442,57 @@
382
442
  "type": "function"
383
443
  },
384
444
  {
385
- "inputs": [],
386
- "name": "getCurrentAARatio",
387
- "outputs": [
445
+ "inputs": [
446
+ {
447
+ "internalType": "address",
448
+ "name": "token",
449
+ "type": "address"
450
+ },
388
451
  {
389
452
  "internalType": "uint256",
390
- "name": "",
453
+ "name": "amount",
391
454
  "type": "uint256"
392
- }
393
- ],
394
- "stateMutability": "view",
395
- "type": "function"
396
- },
397
- {
398
- "inputs": [
455
+ },
456
+ {
457
+ "internalType": "uint256",
458
+ "name": "minimumLiquidity",
459
+ "type": "uint256"
460
+ },
399
461
  {
400
462
  "internalType": "address",
401
- "name": "_tranche",
463
+ "name": "to",
402
464
  "type": "address"
465
+ },
466
+ {
467
+ "internalType": "uint256",
468
+ "name": "deadline",
469
+ "type": "uint256"
470
+ },
471
+ {
472
+ "internalType": "bool",
473
+ "name": "shouldStake",
474
+ "type": "bool"
403
475
  }
404
476
  ],
405
- "name": "getIdealApr",
477
+ "name": "deposit",
406
478
  "outputs": [
407
479
  {
408
480
  "internalType": "uint256",
409
- "name": "",
481
+ "name": "liquidity",
410
482
  "type": "uint256"
411
483
  }
412
484
  ],
413
- "stateMutability": "view",
485
+ "stateMutability": "nonpayable",
414
486
  "type": "function"
415
487
  },
416
488
  {
417
489
  "inputs": [],
418
- "name": "getIncentiveTokens",
490
+ "name": "dev",
419
491
  "outputs": [
420
492
  {
421
- "internalType": "address[]",
493
+ "internalType": "address",
422
494
  "name": "",
423
- "type": "address[]"
495
+ "type": "address"
424
496
  }
425
497
  ],
426
498
  "stateMutability": "view",
@@ -428,20 +500,39 @@
428
500
  },
429
501
  {
430
502
  "inputs": [],
431
- "name": "governanceRecoveryFund",
503
+ "name": "endCovRatio",
432
504
  "outputs": [
433
505
  {
434
- "internalType": "address",
506
+ "internalType": "uint128",
435
507
  "name": "",
508
+ "type": "uint128"
509
+ }
510
+ ],
511
+ "stateMutability": "view",
512
+ "type": "function"
513
+ },
514
+ {
515
+ "inputs": [
516
+ {
517
+ "internalType": "address",
518
+ "name": "token",
436
519
  "type": "address"
437
520
  }
438
521
  ],
522
+ "name": "exchangeRate",
523
+ "outputs": [
524
+ {
525
+ "internalType": "uint256",
526
+ "name": "xr",
527
+ "type": "uint256"
528
+ }
529
+ ],
439
530
  "stateMutability": "view",
440
531
  "type": "function"
441
532
  },
442
533
  {
443
534
  "inputs": [],
444
- "name": "guardian",
535
+ "name": "feeTo",
445
536
  "outputs": [
446
537
  {
447
538
  "internalType": "address",
@@ -455,60 +546,29 @@
455
546
  {
456
547
  "inputs": [
457
548
  {
458
- "internalType": "bool",
459
- "name": "_skipRedeem",
460
- "type": "bool"
461
- },
462
- {
463
- "internalType": "bool",
464
- "name": "_skipIncentivesUpdate",
465
- "type": "bool"
466
- },
467
- {
468
- "internalType": "bool",
469
- "name": "_skipFeeDeposit",
470
- "type": "bool"
471
- },
472
- {
473
- "internalType": "bool[]",
474
- "name": "_skipReward",
475
- "type": "bool[]"
476
- },
477
- {
478
- "internalType": "uint256[]",
479
- "name": "_minAmount",
480
- "type": "uint256[]"
481
- },
482
- {
483
- "internalType": "uint256[]",
484
- "name": "_sellAmounts",
485
- "type": "uint256[]"
486
- }
487
- ],
488
- "name": "harvest",
489
- "outputs": [
490
- {
491
- "internalType": "uint256[]",
492
- "name": "_soldAmounts",
493
- "type": "uint256[]"
549
+ "internalType": "address",
550
+ "name": "token",
551
+ "type": "address"
494
552
  },
495
553
  {
496
- "internalType": "uint256[]",
497
- "name": "_swappedAmounts",
498
- "type": "uint256[]"
554
+ "internalType": "uint256",
555
+ "name": "amount",
556
+ "type": "uint256"
499
557
  }
500
558
  ],
559
+ "name": "fillPool",
560
+ "outputs": [],
501
561
  "stateMutability": "nonpayable",
502
562
  "type": "function"
503
563
  },
504
564
  {
505
565
  "inputs": [],
506
- "name": "idealRange",
566
+ "name": "getTokens",
507
567
  "outputs": [
508
568
  {
509
- "internalType": "uint256",
569
+ "internalType": "address[]",
510
570
  "name": "",
511
- "type": "uint256"
571
+ "type": "address[]"
512
572
  }
513
573
  ],
514
574
  "stateMutability": "view",
@@ -516,11 +576,16 @@
516
576
  },
517
577
  {
518
578
  "inputs": [],
519
- "name": "latestHarvestBlock",
579
+ "name": "globalEquilCovRatio",
520
580
  "outputs": [
521
581
  {
522
582
  "internalType": "uint256",
523
- "name": "",
583
+ "name": "equilCovRatio",
584
+ "type": "uint256"
585
+ },
586
+ {
587
+ "internalType": "uint256",
588
+ "name": "invariantInUint",
524
589
  "type": "uint256"
525
590
  }
526
591
  ],
@@ -528,21 +593,15 @@
528
593
  "type": "function"
529
594
  },
530
595
  {
531
- "inputs": [
596
+ "inputs": [],
597
+ "name": "haircutRate",
598
+ "outputs": [
532
599
  {
533
600
  "internalType": "uint256",
534
601
  "name": "",
535
602
  "type": "uint256"
536
603
  }
537
604
  ],
538
- "name": "incentiveTokens",
539
- "outputs": [
540
- {
541
- "internalType": "address",
542
- "name": "",
543
- "type": "address"
544
- }
545
- ],
546
605
  "stateMutability": "view",
547
606
  "type": "function"
548
607
  },
@@ -550,48 +609,13 @@
550
609
  "inputs": [
551
610
  {
552
611
  "internalType": "uint256",
553
- "name": "_limit",
554
- "type": "uint256"
555
- },
556
- {
557
- "internalType": "address",
558
- "name": "_guardedToken",
559
- "type": "address"
560
- },
561
- {
562
- "internalType": "address",
563
- "name": "_governanceFund",
564
- "type": "address"
565
- },
566
- {
567
- "internalType": "address",
568
- "name": "_owner",
569
- "type": "address"
570
- },
571
- {
572
- "internalType": "address",
573
- "name": "_rebalancer",
574
- "type": "address"
575
- },
576
- {
577
- "internalType": "address",
578
- "name": "_strategy",
579
- "type": "address"
580
- },
581
- {
582
- "internalType": "uint256",
583
- "name": "_trancheAPRSplitRatio",
612
+ "name": "ampFactor_",
584
613
  "type": "uint256"
585
614
  },
586
615
  {
587
616
  "internalType": "uint256",
588
- "name": "_trancheIdealWeightRatio",
617
+ "name": "haircutRate_",
589
618
  "type": "uint256"
590
- },
591
- {
592
- "internalType": "address[]",
593
- "name": "_incentiveTokens",
594
- "type": "address[]"
595
619
  }
596
620
  ],
597
621
  "name": "initialize",
@@ -600,39 +624,19 @@
600
624
  "type": "function"
601
625
  },
602
626
  {
603
- "inputs": [],
604
- "name": "isAYSActive",
605
- "outputs": [
606
- {
607
- "internalType": "bool",
608
- "name": "",
609
- "type": "bool"
610
- }
611
- ],
612
- "stateMutability": "view",
613
- "type": "function"
614
- },
615
- {
616
- "inputs": [],
617
- "name": "lastNAVAA",
618
- "outputs": [
627
+ "inputs": [
619
628
  {
620
- "internalType": "uint256",
621
- "name": "",
622
- "type": "uint256"
629
+ "internalType": "address",
630
+ "name": "token",
631
+ "type": "address"
623
632
  }
624
633
  ],
625
- "stateMutability": "view",
626
- "type": "function"
627
- },
628
- {
629
- "inputs": [],
630
- "name": "lastNAVBB",
634
+ "name": "isPaused",
631
635
  "outputs": [
632
636
  {
633
- "internalType": "uint256",
637
+ "internalType": "bool",
634
638
  "name": "",
635
- "type": "uint256"
639
+ "type": "bool"
636
640
  }
637
641
  ],
638
642
  "stateMutability": "view",
@@ -640,7 +644,7 @@
640
644
  },
641
645
  {
642
646
  "inputs": [],
643
- "name": "lastStrategyPrice",
647
+ "name": "lpDividendRatio",
644
648
  "outputs": [
645
649
  {
646
650
  "internalType": "uint256",
@@ -653,12 +657,12 @@
653
657
  },
654
658
  {
655
659
  "inputs": [],
656
- "name": "limit",
660
+ "name": "masterWombat",
657
661
  "outputs": [
658
662
  {
659
- "internalType": "uint256",
663
+ "internalType": "address",
660
664
  "name": "",
661
- "type": "uint256"
665
+ "type": "address"
662
666
  }
663
667
  ],
664
668
  "stateMutability": "view",
@@ -667,21 +671,16 @@
667
671
  {
668
672
  "inputs": [
669
673
  {
670
- "internalType": "uint256",
671
- "name": "_amount",
672
- "type": "uint256"
673
- },
674
- {
675
- "internalType": "bool",
676
- "name": "_revertIfNeeded",
677
- "type": "bool"
674
+ "internalType": "address",
675
+ "name": "token",
676
+ "type": "address"
678
677
  }
679
678
  ],
680
- "name": "liquidate",
679
+ "name": "mintFee",
681
680
  "outputs": [
682
681
  {
683
682
  "internalType": "uint256",
684
- "name": "",
683
+ "name": "feeCollected",
685
684
  "type": "uint256"
686
685
  }
687
686
  ],
@@ -690,7 +689,7 @@
690
689
  },
691
690
  {
692
691
  "inputs": [],
693
- "name": "oneToken",
692
+ "name": "mintFeeThreshold",
694
693
  "outputs": [
695
694
  {
696
695
  "internalType": "uint256",
@@ -722,38 +721,59 @@
722
721
  "type": "function"
723
722
  },
724
723
  {
725
- "inputs": [],
726
- "name": "paused",
727
- "outputs": [
724
+ "inputs": [
728
725
  {
729
- "internalType": "bool",
730
- "name": "",
731
- "type": "bool"
726
+ "internalType": "address",
727
+ "name": "token",
728
+ "type": "address"
732
729
  }
733
730
  ],
734
- "stateMutability": "view",
731
+ "name": "pauseAsset",
732
+ "outputs": [],
733
+ "stateMutability": "nonpayable",
735
734
  "type": "function"
736
735
  },
737
736
  {
738
737
  "inputs": [],
739
- "name": "priceAA",
738
+ "name": "paused",
740
739
  "outputs": [
741
740
  {
742
- "internalType": "uint256",
741
+ "internalType": "bool",
743
742
  "name": "",
744
- "type": "uint256"
743
+ "type": "bool"
745
744
  }
746
745
  ],
747
746
  "stateMutability": "view",
748
747
  "type": "function"
749
748
  },
750
749
  {
751
- "inputs": [],
752
- "name": "priceBB",
750
+ "inputs": [
751
+ {
752
+ "internalType": "address",
753
+ "name": "fromToken",
754
+ "type": "address"
755
+ },
756
+ {
757
+ "internalType": "address",
758
+ "name": "toToken",
759
+ "type": "address"
760
+ },
761
+ {
762
+ "internalType": "int256",
763
+ "name": "toAmount",
764
+ "type": "int256"
765
+ }
766
+ ],
767
+ "name": "quoteAmountIn",
753
768
  "outputs": [
754
769
  {
755
770
  "internalType": "uint256",
756
- "name": "",
771
+ "name": "amountIn",
772
+ "type": "uint256"
773
+ },
774
+ {
775
+ "internalType": "uint256",
776
+ "name": "haircut",
757
777
  "type": "uint256"
758
778
  }
759
779
  ],
@@ -761,25 +781,28 @@
761
781
  "type": "function"
762
782
  },
763
783
  {
764
- "inputs": [],
765
- "name": "rebalancer",
766
- "outputs": [
784
+ "inputs": [
767
785
  {
768
786
  "internalType": "address",
769
- "name": "",
787
+ "name": "token",
770
788
  "type": "address"
789
+ },
790
+ {
791
+ "internalType": "uint256",
792
+ "name": "amount",
793
+ "type": "uint256"
771
794
  }
772
795
  ],
773
- "stateMutability": "view",
774
- "type": "function"
775
- },
776
- {
777
- "inputs": [],
778
- "name": "releaseBlocksPeriod",
796
+ "name": "quotePotentialDeposit",
779
797
  "outputs": [
780
798
  {
781
799
  "internalType": "uint256",
782
- "name": "",
800
+ "name": "liquidity",
801
+ "type": "uint256"
802
+ },
803
+ {
804
+ "internalType": "uint256",
805
+ "name": "reward",
783
806
  "type": "uint256"
784
807
  }
785
808
  ],
@@ -787,20 +810,34 @@
787
810
  "type": "function"
788
811
  },
789
812
  {
790
- "inputs": [],
791
- "name": "renounceOwnership",
792
- "outputs": [],
793
- "stateMutability": "nonpayable",
794
- "type": "function"
795
- },
796
- {
797
- "inputs": [],
798
- "name": "revertIfTooLow",
813
+ "inputs": [
814
+ {
815
+ "internalType": "address",
816
+ "name": "fromToken",
817
+ "type": "address"
818
+ },
819
+ {
820
+ "internalType": "address",
821
+ "name": "toToken",
822
+ "type": "address"
823
+ },
824
+ {
825
+ "internalType": "int256",
826
+ "name": "fromAmount",
827
+ "type": "int256"
828
+ }
829
+ ],
830
+ "name": "quotePotentialSwap",
799
831
  "outputs": [
800
832
  {
801
- "internalType": "bool",
802
- "name": "",
803
- "type": "bool"
833
+ "internalType": "uint256",
834
+ "name": "potentialOutcome",
835
+ "type": "uint256"
836
+ },
837
+ {
838
+ "internalType": "uint256",
839
+ "name": "haircut",
840
+ "type": "uint256"
804
841
  }
805
842
  ],
806
843
  "stateMutability": "view",
@@ -809,90 +846,108 @@
809
846
  {
810
847
  "inputs": [
811
848
  {
812
- "internalType": "bool",
813
- "name": "_allowed",
814
- "type": "bool"
849
+ "internalType": "address",
850
+ "name": "token",
851
+ "type": "address"
852
+ },
853
+ {
854
+ "internalType": "uint256",
855
+ "name": "liquidity",
856
+ "type": "uint256"
815
857
  }
816
858
  ],
817
- "name": "setAllowAAWithdraw",
818
- "outputs": [],
819
- "stateMutability": "nonpayable",
820
- "type": "function"
821
- },
822
- {
823
- "inputs": [
859
+ "name": "quotePotentialWithdraw",
860
+ "outputs": [
824
861
  {
825
- "internalType": "bool",
826
- "name": "_allowed",
827
- "type": "bool"
862
+ "internalType": "uint256",
863
+ "name": "amount",
864
+ "type": "uint256"
865
+ },
866
+ {
867
+ "internalType": "uint256",
868
+ "name": "fee",
869
+ "type": "uint256"
828
870
  }
829
871
  ],
830
- "name": "setAllowBBWithdraw",
831
- "outputs": [],
832
- "stateMutability": "nonpayable",
872
+ "stateMutability": "view",
833
873
  "type": "function"
834
874
  },
835
875
  {
836
876
  "inputs": [
877
+ {
878
+ "internalType": "address",
879
+ "name": "fromToken",
880
+ "type": "address"
881
+ },
882
+ {
883
+ "internalType": "address",
884
+ "name": "toToken",
885
+ "type": "address"
886
+ },
837
887
  {
838
888
  "internalType": "uint256",
839
- "name": "_fee",
889
+ "name": "liquidity",
840
890
  "type": "uint256"
841
891
  }
842
892
  ],
843
- "name": "setFee",
844
- "outputs": [],
845
- "stateMutability": "nonpayable",
893
+ "name": "quotePotentialWithdrawFromOtherAsset",
894
+ "outputs": [
895
+ {
896
+ "internalType": "uint256",
897
+ "name": "amount",
898
+ "type": "uint256"
899
+ },
900
+ {
901
+ "internalType": "uint256",
902
+ "name": "withdrewAmount",
903
+ "type": "uint256"
904
+ }
905
+ ],
906
+ "stateMutability": "view",
846
907
  "type": "function"
847
908
  },
848
909
  {
849
910
  "inputs": [
850
911
  {
851
912
  "internalType": "address",
852
- "name": "_feeReceiver",
913
+ "name": "token",
853
914
  "type": "address"
854
915
  }
855
916
  ],
856
- "name": "setFeeReceiver",
917
+ "name": "removeAsset",
857
918
  "outputs": [],
858
919
  "stateMutability": "nonpayable",
859
920
  "type": "function"
860
921
  },
861
922
  {
862
- "inputs": [
863
- {
864
- "internalType": "address",
865
- "name": "_guardian",
866
- "type": "address"
867
- }
868
- ],
869
- "name": "setGuardian",
923
+ "inputs": [],
924
+ "name": "renounceOwnership",
870
925
  "outputs": [],
871
926
  "stateMutability": "nonpayable",
872
927
  "type": "function"
873
928
  },
874
929
  {
875
- "inputs": [
930
+ "inputs": [],
931
+ "name": "retentionRatio",
932
+ "outputs": [
876
933
  {
877
934
  "internalType": "uint256",
878
- "name": "_idealRange",
935
+ "name": "",
879
936
  "type": "uint256"
880
937
  }
881
938
  ],
882
- "name": "setIdealRange",
883
- "outputs": [],
884
- "stateMutability": "nonpayable",
939
+ "stateMutability": "view",
885
940
  "type": "function"
886
941
  },
887
942
  {
888
943
  "inputs": [
889
944
  {
890
- "internalType": "address[]",
891
- "name": "_incentiveTokens",
892
- "type": "address[]"
945
+ "internalType": "uint256",
946
+ "name": "ampFactor_",
947
+ "type": "uint256"
893
948
  }
894
949
  ],
895
- "name": "setIncentiveTokens",
950
+ "name": "setAmpFactor",
896
951
  "outputs": [],
897
952
  "stateMutability": "nonpayable",
898
953
  "type": "function"
@@ -900,12 +955,17 @@
900
955
  {
901
956
  "inputs": [
902
957
  {
903
- "internalType": "bool",
904
- "name": "_isStkAAVEActive",
905
- "type": "bool"
958
+ "internalType": "uint128",
959
+ "name": "startCovRatio_",
960
+ "type": "uint128"
961
+ },
962
+ {
963
+ "internalType": "uint128",
964
+ "name": "endCovRatio_",
965
+ "type": "uint128"
906
966
  }
907
967
  ],
908
- "name": "setIsStkAAVEActive",
968
+ "name": "setCovRatioFeeParam",
909
969
  "outputs": [],
910
970
  "stateMutability": "nonpayable",
911
971
  "type": "function"
@@ -914,11 +974,11 @@
914
974
  "inputs": [
915
975
  {
916
976
  "internalType": "address",
917
- "name": "_rebalancer",
977
+ "name": "dev_",
918
978
  "type": "address"
919
979
  }
920
980
  ],
921
- "name": "setRebalancer",
981
+ "name": "setDev",
922
982
  "outputs": [],
923
983
  "stateMutability": "nonpayable",
924
984
  "type": "function"
@@ -927,24 +987,16 @@
927
987
  "inputs": [
928
988
  {
929
989
  "internalType": "uint256",
930
- "name": "_releaseBlocksPeriod",
990
+ "name": "lpDividendRatio_",
931
991
  "type": "uint256"
932
- }
933
- ],
934
- "name": "setReleaseBlocksPeriod",
935
- "outputs": [],
936
- "stateMutability": "nonpayable",
937
- "type": "function"
938
- },
939
- {
940
- "inputs": [
992
+ },
941
993
  {
942
- "internalType": "bool",
943
- "name": "_allowed",
944
- "type": "bool"
994
+ "internalType": "uint256",
995
+ "name": "retentionRatio_",
996
+ "type": "uint256"
945
997
  }
946
998
  ],
947
- "name": "setRevertIfTooLow",
999
+ "name": "setFee",
948
1000
  "outputs": [],
949
1001
  "stateMutability": "nonpayable",
950
1002
  "type": "function"
@@ -952,12 +1004,12 @@
952
1004
  {
953
1005
  "inputs": [
954
1006
  {
955
- "internalType": "bool",
956
- "name": "_allowed",
957
- "type": "bool"
1007
+ "internalType": "address",
1008
+ "name": "feeTo_",
1009
+ "type": "address"
958
1010
  }
959
1011
  ],
960
- "name": "setSkipDefaultCheck",
1012
+ "name": "setFeeTo",
961
1013
  "outputs": [],
962
1014
  "stateMutability": "nonpayable",
963
1015
  "type": "function"
@@ -965,17 +1017,12 @@
965
1017
  {
966
1018
  "inputs": [
967
1019
  {
968
- "internalType": "address",
969
- "name": "_AAStaking",
970
- "type": "address"
971
- },
972
- {
973
- "internalType": "address",
974
- "name": "_BBStaking",
975
- "type": "address"
1020
+ "internalType": "uint256",
1021
+ "name": "haircutRate_",
1022
+ "type": "uint256"
976
1023
  }
977
1024
  ],
978
- "name": "setStakingRewards",
1025
+ "name": "setHaircutRate",
979
1026
  "outputs": [],
980
1027
  "stateMutability": "nonpayable",
981
1028
  "type": "function"
@@ -984,16 +1031,11 @@
984
1031
  "inputs": [
985
1032
  {
986
1033
  "internalType": "address",
987
- "name": "_strategy",
1034
+ "name": "masterWombat_",
988
1035
  "type": "address"
989
- },
990
- {
991
- "internalType": "address[]",
992
- "name": "_incentiveTokens",
993
- "type": "address[]"
994
1036
  }
995
1037
  ],
996
- "name": "setStrategy",
1038
+ "name": "setMasterWombat",
997
1039
  "outputs": [],
998
1040
  "stateMutability": "nonpayable",
999
1041
  "type": "function"
@@ -1002,106 +1044,90 @@
1002
1044
  "inputs": [
1003
1045
  {
1004
1046
  "internalType": "uint256",
1005
- "name": "_unlentPerc",
1047
+ "name": "mintFeeThreshold_",
1006
1048
  "type": "uint256"
1007
1049
  }
1008
1050
  ],
1009
- "name": "setUnlentPerc",
1051
+ "name": "setMintFeeThreshold",
1010
1052
  "outputs": [],
1011
1053
  "stateMutability": "nonpayable",
1012
1054
  "type": "function"
1013
1055
  },
1014
1056
  {
1015
1057
  "inputs": [],
1016
- "name": "skipDefaultCheck",
1058
+ "name": "startCovRatio",
1017
1059
  "outputs": [
1018
1060
  {
1019
- "internalType": "bool",
1061
+ "internalType": "uint128",
1020
1062
  "name": "",
1021
- "type": "bool"
1063
+ "type": "uint128"
1022
1064
  }
1023
1065
  ],
1024
1066
  "stateMutability": "view",
1025
1067
  "type": "function"
1026
1068
  },
1027
1069
  {
1028
- "inputs": [],
1029
- "name": "strategy",
1030
- "outputs": [
1070
+ "inputs": [
1031
1071
  {
1032
1072
  "internalType": "address",
1033
- "name": "",
1073
+ "name": "fromToken",
1034
1074
  "type": "address"
1035
- }
1036
- ],
1037
- "stateMutability": "view",
1038
- "type": "function"
1039
- },
1040
- {
1041
- "inputs": [],
1042
- "name": "strategyToken",
1043
- "outputs": [
1075
+ },
1044
1076
  {
1045
1077
  "internalType": "address",
1046
- "name": "",
1078
+ "name": "toToken",
1047
1079
  "type": "address"
1048
- }
1049
- ],
1050
- "stateMutability": "view",
1051
- "type": "function"
1052
- },
1053
- {
1054
- "inputs": [],
1055
- "name": "token",
1056
- "outputs": [
1080
+ },
1081
+ {
1082
+ "internalType": "uint256",
1083
+ "name": "fromAmount",
1084
+ "type": "uint256"
1085
+ },
1086
+ {
1087
+ "internalType": "uint256",
1088
+ "name": "minimumToAmount",
1089
+ "type": "uint256"
1090
+ },
1057
1091
  {
1058
1092
  "internalType": "address",
1059
- "name": "",
1093
+ "name": "to",
1060
1094
  "type": "address"
1061
- }
1062
- ],
1063
- "stateMutability": "view",
1064
- "type": "function"
1065
- },
1066
- {
1067
- "inputs": [],
1068
- "name": "trancheAPRSplitRatio",
1069
- "outputs": [
1095
+ },
1070
1096
  {
1071
1097
  "internalType": "uint256",
1072
- "name": "",
1098
+ "name": "deadline",
1073
1099
  "type": "uint256"
1074
1100
  }
1075
1101
  ],
1076
- "stateMutability": "view",
1077
- "type": "function"
1078
- },
1079
- {
1080
- "inputs": [],
1081
- "name": "trancheIdealWeightRatio",
1102
+ "name": "swap",
1082
1103
  "outputs": [
1083
1104
  {
1084
1105
  "internalType": "uint256",
1085
- "name": "",
1106
+ "name": "actualToAmount",
1107
+ "type": "uint256"
1108
+ },
1109
+ {
1110
+ "internalType": "uint256",
1111
+ "name": "haircut",
1086
1112
  "type": "uint256"
1087
1113
  }
1088
1114
  ],
1089
- "stateMutability": "view",
1115
+ "stateMutability": "nonpayable",
1090
1116
  "type": "function"
1091
1117
  },
1092
1118
  {
1093
1119
  "inputs": [
1094
1120
  {
1095
1121
  "internalType": "address",
1096
- "name": "_tranche",
1122
+ "name": "token",
1097
1123
  "type": "address"
1098
1124
  }
1099
1125
  ],
1100
- "name": "tranchePrice",
1126
+ "name": "tipBucketBalance",
1101
1127
  "outputs": [
1102
1128
  {
1103
1129
  "internalType": "uint256",
1104
- "name": "",
1130
+ "name": "balance",
1105
1131
  "type": "uint256"
1106
1132
  }
1107
1133
  ],
@@ -1125,49 +1151,41 @@
1125
1151
  "inputs": [
1126
1152
  {
1127
1153
  "internalType": "address",
1128
- "name": "_token",
1154
+ "name": "token",
1129
1155
  "type": "address"
1130
1156
  },
1131
1157
  {
1132
1158
  "internalType": "uint256",
1133
- "name": "_value",
1159
+ "name": "amount",
1134
1160
  "type": "uint256"
1161
+ },
1162
+ {
1163
+ "internalType": "address",
1164
+ "name": "to",
1165
+ "type": "address"
1135
1166
  }
1136
1167
  ],
1137
- "name": "transferToken",
1168
+ "name": "transferTipBucket",
1138
1169
  "outputs": [],
1139
1170
  "stateMutability": "nonpayable",
1140
1171
  "type": "function"
1141
1172
  },
1142
1173
  {
1143
1174
  "inputs": [],
1144
- "name": "unclaimedFees",
1145
- "outputs": [
1146
- {
1147
- "internalType": "uint256",
1148
- "name": "",
1149
- "type": "uint256"
1150
- }
1151
- ],
1152
- "stateMutability": "view",
1175
+ "name": "unpause",
1176
+ "outputs": [],
1177
+ "stateMutability": "nonpayable",
1153
1178
  "type": "function"
1154
1179
  },
1155
1180
  {
1156
- "inputs": [],
1157
- "name": "unlentPerc",
1158
- "outputs": [
1181
+ "inputs": [
1159
1182
  {
1160
- "internalType": "uint256",
1161
- "name": "",
1162
- "type": "uint256"
1183
+ "internalType": "address",
1184
+ "name": "token",
1185
+ "type": "address"
1163
1186
  }
1164
1187
  ],
1165
- "stateMutability": "view",
1166
- "type": "function"
1167
- },
1168
- {
1169
- "inputs": [],
1170
- "name": "unpause",
1188
+ "name": "unpauseAsset",
1171
1189
  "outputs": [],
1172
1190
  "stateMutability": "nonpayable",
1173
1191
  "type": "function"
@@ -1176,47 +1194,35 @@
1176
1194
  "inputs": [
1177
1195
  {
1178
1196
  "internalType": "address",
1179
- "name": "_tranche",
1197
+ "name": "token",
1180
1198
  "type": "address"
1181
- }
1182
- ],
1183
- "name": "virtualPrice",
1184
- "outputs": [
1199
+ },
1185
1200
  {
1186
1201
  "internalType": "uint256",
1187
- "name": "_virtualPrice",
1202
+ "name": "liquidity",
1188
1203
  "type": "uint256"
1189
- }
1190
- ],
1191
- "stateMutability": "view",
1192
- "type": "function"
1193
- },
1194
- {
1195
- "inputs": [],
1196
- "name": "weth",
1197
- "outputs": [
1204
+ },
1205
+ {
1206
+ "internalType": "uint256",
1207
+ "name": "minimumAmount",
1208
+ "type": "uint256"
1209
+ },
1198
1210
  {
1199
1211
  "internalType": "address",
1200
- "name": "",
1212
+ "name": "to",
1201
1213
  "type": "address"
1202
- }
1203
- ],
1204
- "stateMutability": "view",
1205
- "type": "function"
1206
- },
1207
- {
1208
- "inputs": [
1214
+ },
1209
1215
  {
1210
1216
  "internalType": "uint256",
1211
- "name": "_amount",
1217
+ "name": "deadline",
1212
1218
  "type": "uint256"
1213
1219
  }
1214
1220
  ],
1215
- "name": "withdrawAA",
1221
+ "name": "withdraw",
1216
1222
  "outputs": [
1217
1223
  {
1218
1224
  "internalType": "uint256",
1219
- "name": "",
1225
+ "name": "amount",
1220
1226
  "type": "uint256"
1221
1227
  }
1222
1228
  ],
@@ -1225,21 +1231,59 @@
1225
1231
  },
1226
1232
  {
1227
1233
  "inputs": [
1234
+ {
1235
+ "internalType": "address",
1236
+ "name": "fromToken",
1237
+ "type": "address"
1238
+ },
1239
+ {
1240
+ "internalType": "address",
1241
+ "name": "toToken",
1242
+ "type": "address"
1243
+ },
1244
+ {
1245
+ "internalType": "uint256",
1246
+ "name": "liquidity",
1247
+ "type": "uint256"
1248
+ },
1249
+ {
1250
+ "internalType": "uint256",
1251
+ "name": "minimumAmount",
1252
+ "type": "uint256"
1253
+ },
1254
+ {
1255
+ "internalType": "address",
1256
+ "name": "to",
1257
+ "type": "address"
1258
+ },
1228
1259
  {
1229
1260
  "internalType": "uint256",
1230
- "name": "_amount",
1261
+ "name": "deadline",
1231
1262
  "type": "uint256"
1232
1263
  }
1233
1264
  ],
1234
- "name": "withdrawBB",
1265
+ "name": "withdrawFromOtherAsset",
1235
1266
  "outputs": [
1236
1267
  {
1237
1268
  "internalType": "uint256",
1238
- "name": "",
1269
+ "name": "toAmount",
1239
1270
  "type": "uint256"
1240
1271
  }
1241
1272
  ],
1242
1273
  "stateMutability": "nonpayable",
1243
1274
  "type": "function"
1275
+ },
1276
+ {
1277
+ "inputs": [],
1278
+ "name": "creditForTokensHaircut",
1279
+ "outputs": [
1280
+ {
1281
+ "internalType": "uint128",
1282
+ "name": "",
1283
+ "type": "uint128"
1284
+ }
1285
+ ],
1286
+ "stateMutability": "view",
1287
+ "type": "function"
1244
1288
  }
1245
1289
  ]