@paraswap/dex-lib 5.1.33-1 → 5.1.33
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.
- package/build/abi/curve-v1/StableSwapAcryptos4Pool.json +490 -0
- package/build/dex/curve-v1/forks/curve-forks/curve-forks.js +7 -0
- package/build/dex/curve-v1/forks/curve-forks/curve-forks.js.map +1 -1
- package/build/dex/curve-v1/pools/acryptos-4pool.d.ts +7 -0
- package/build/dex/curve-v1/pools/acryptos-4pool.js +28 -0
- package/build/dex/curve-v1/pools/acryptos-4pool.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "TokenExchange",
|
|
4
|
+
"type": "event",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{ "name": "buyer", "type": "address", "indexed": true },
|
|
7
|
+
{ "name": "sold_id", "type": "int128", "indexed": false },
|
|
8
|
+
{ "name": "tokens_sold", "type": "uint256", "indexed": false },
|
|
9
|
+
{ "name": "bought_id", "type": "int128", "indexed": false },
|
|
10
|
+
{ "name": "tokens_bought", "type": "uint256", "indexed": false }
|
|
11
|
+
],
|
|
12
|
+
"anonymous": false
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "AddLiquidity",
|
|
16
|
+
"type": "event",
|
|
17
|
+
"inputs": [
|
|
18
|
+
{ "name": "provider", "type": "address", "indexed": true },
|
|
19
|
+
{ "name": "token_amounts", "type": "uint256[4]", "indexed": false },
|
|
20
|
+
{ "name": "fees", "type": "uint256[4]", "indexed": false },
|
|
21
|
+
{ "name": "invariant", "type": "uint256", "indexed": false },
|
|
22
|
+
{ "name": "token_supply", "type": "uint256", "indexed": false }
|
|
23
|
+
],
|
|
24
|
+
"anonymous": false
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "RemoveLiquidity",
|
|
28
|
+
"type": "event",
|
|
29
|
+
"inputs": [
|
|
30
|
+
{ "name": "provider", "type": "address", "indexed": true },
|
|
31
|
+
{ "name": "token_amounts", "type": "uint256[4]", "indexed": false },
|
|
32
|
+
{ "name": "fees", "type": "uint256[4]", "indexed": false },
|
|
33
|
+
{ "name": "token_supply", "type": "uint256", "indexed": false }
|
|
34
|
+
],
|
|
35
|
+
"anonymous": false
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "RemoveLiquidityOne",
|
|
39
|
+
"type": "event",
|
|
40
|
+
"inputs": [
|
|
41
|
+
{ "name": "provider", "type": "address", "indexed": true },
|
|
42
|
+
{ "name": "token_amount", "type": "uint256", "indexed": false },
|
|
43
|
+
{ "name": "coin_amount", "type": "uint256", "indexed": false },
|
|
44
|
+
{ "name": "token_supply", "type": "uint256", "indexed": false }
|
|
45
|
+
],
|
|
46
|
+
"anonymous": false
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "RemoveLiquidityImbalance",
|
|
50
|
+
"type": "event",
|
|
51
|
+
"inputs": [
|
|
52
|
+
{ "name": "provider", "type": "address", "indexed": true },
|
|
53
|
+
{ "name": "token_amounts", "type": "uint256[4]", "indexed": false },
|
|
54
|
+
{ "name": "fees", "type": "uint256[4]", "indexed": false },
|
|
55
|
+
{ "name": "invariant", "type": "uint256", "indexed": false },
|
|
56
|
+
{ "name": "token_supply", "type": "uint256", "indexed": false }
|
|
57
|
+
],
|
|
58
|
+
"anonymous": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "CommitNewAdmin",
|
|
62
|
+
"type": "event",
|
|
63
|
+
"inputs": [
|
|
64
|
+
{ "name": "deadline", "type": "uint256", "indexed": true },
|
|
65
|
+
{ "name": "admin", "type": "address", "indexed": true }
|
|
66
|
+
],
|
|
67
|
+
"anonymous": false
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "NewAdmin",
|
|
71
|
+
"type": "event",
|
|
72
|
+
"inputs": [{ "name": "admin", "type": "address", "indexed": true }],
|
|
73
|
+
"anonymous": false
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "CommitNewFee",
|
|
77
|
+
"type": "event",
|
|
78
|
+
"inputs": [
|
|
79
|
+
{ "name": "deadline", "type": "uint256", "indexed": true },
|
|
80
|
+
{ "name": "fee", "type": "uint256", "indexed": false },
|
|
81
|
+
{ "name": "admin_fee", "type": "uint256", "indexed": false }
|
|
82
|
+
],
|
|
83
|
+
"anonymous": false
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "NewFee",
|
|
87
|
+
"type": "event",
|
|
88
|
+
"inputs": [
|
|
89
|
+
{ "name": "fee", "type": "uint256", "indexed": false },
|
|
90
|
+
{ "name": "admin_fee", "type": "uint256", "indexed": false }
|
|
91
|
+
],
|
|
92
|
+
"anonymous": false
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "RampA",
|
|
96
|
+
"type": "event",
|
|
97
|
+
"inputs": [
|
|
98
|
+
{ "name": "old_A", "type": "uint256", "indexed": false },
|
|
99
|
+
{ "name": "new_A", "type": "uint256", "indexed": false },
|
|
100
|
+
{ "name": "initial_time", "type": "uint256", "indexed": false },
|
|
101
|
+
{ "name": "future_time", "type": "uint256", "indexed": false }
|
|
102
|
+
],
|
|
103
|
+
"anonymous": false
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "StopRampA",
|
|
107
|
+
"type": "event",
|
|
108
|
+
"inputs": [
|
|
109
|
+
{ "name": "A", "type": "uint256", "indexed": false },
|
|
110
|
+
{ "name": "t", "type": "uint256", "indexed": false }
|
|
111
|
+
],
|
|
112
|
+
"anonymous": false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "constructor",
|
|
116
|
+
"inputs": [
|
|
117
|
+
{ "name": "_owner", "type": "address" },
|
|
118
|
+
{ "name": "_coins", "type": "address[4]" },
|
|
119
|
+
{ "name": "_pool_token", "type": "address" },
|
|
120
|
+
{ "name": "_A", "type": "uint256" },
|
|
121
|
+
{ "name": "_fee", "type": "uint256" },
|
|
122
|
+
{ "name": "_admin_fee", "type": "uint256" },
|
|
123
|
+
{ "name": "_admin_fee_address", "type": "address" }
|
|
124
|
+
],
|
|
125
|
+
"outputs": [],
|
|
126
|
+
"stateMutability": "nonpayable"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"gas": 5199,
|
|
130
|
+
"name": "A",
|
|
131
|
+
"type": "function",
|
|
132
|
+
"inputs": [],
|
|
133
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
134
|
+
"stateMutability": "view"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"gas": 5161,
|
|
138
|
+
"name": "A_precise",
|
|
139
|
+
"type": "function",
|
|
140
|
+
"inputs": [],
|
|
141
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
142
|
+
"stateMutability": "view"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"gas": 1346183,
|
|
146
|
+
"name": "get_virtual_price",
|
|
147
|
+
"type": "function",
|
|
148
|
+
"inputs": [],
|
|
149
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
150
|
+
"stateMutability": "view"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"gas": 5357629,
|
|
154
|
+
"name": "calc_token_amount",
|
|
155
|
+
"type": "function",
|
|
156
|
+
"inputs": [
|
|
157
|
+
{ "name": "amounts", "type": "uint256[4]" },
|
|
158
|
+
{ "name": "is_deposit", "type": "bool" }
|
|
159
|
+
],
|
|
160
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
161
|
+
"stateMutability": "view"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"gas": 8287631,
|
|
165
|
+
"name": "add_liquidity",
|
|
166
|
+
"type": "function",
|
|
167
|
+
"inputs": [
|
|
168
|
+
{ "name": "amounts", "type": "uint256[4]" },
|
|
169
|
+
{ "name": "min_mint_amount", "type": "uint256" }
|
|
170
|
+
],
|
|
171
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
172
|
+
"stateMutability": "nonpayable"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"gas": 3099381,
|
|
176
|
+
"name": "get_dy",
|
|
177
|
+
"type": "function",
|
|
178
|
+
"inputs": [
|
|
179
|
+
{ "name": "i", "type": "int128" },
|
|
180
|
+
{ "name": "j", "type": "int128" },
|
|
181
|
+
{ "name": "dx", "type": "uint256" }
|
|
182
|
+
],
|
|
183
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
184
|
+
"stateMutability": "view"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"gas": 3262485,
|
|
188
|
+
"name": "exchange",
|
|
189
|
+
"type": "function",
|
|
190
|
+
"inputs": [
|
|
191
|
+
{ "name": "i", "type": "int128" },
|
|
192
|
+
{ "name": "j", "type": "int128" },
|
|
193
|
+
{ "name": "dx", "type": "uint256" },
|
|
194
|
+
{ "name": "min_dy", "type": "uint256" }
|
|
195
|
+
],
|
|
196
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
197
|
+
"stateMutability": "nonpayable"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"gas": 255557,
|
|
201
|
+
"name": "remove_liquidity",
|
|
202
|
+
"type": "function",
|
|
203
|
+
"inputs": [
|
|
204
|
+
{ "name": "_amount", "type": "uint256" },
|
|
205
|
+
{ "name": "min_amounts", "type": "uint256[4]" }
|
|
206
|
+
],
|
|
207
|
+
"outputs": [{ "name": "", "type": "uint256[4]" }],
|
|
208
|
+
"stateMutability": "nonpayable"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"gas": 8286723,
|
|
212
|
+
"name": "remove_liquidity_imbalance",
|
|
213
|
+
"type": "function",
|
|
214
|
+
"inputs": [
|
|
215
|
+
{ "name": "amounts", "type": "uint256[4]" },
|
|
216
|
+
{ "name": "max_burn_amount", "type": "uint256" }
|
|
217
|
+
],
|
|
218
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
219
|
+
"stateMutability": "nonpayable"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"gas": 1489,
|
|
223
|
+
"name": "calc_withdraw_one_coin",
|
|
224
|
+
"type": "function",
|
|
225
|
+
"inputs": [
|
|
226
|
+
{ "name": "_token_amount", "type": "uint256" },
|
|
227
|
+
{ "name": "i", "type": "int128" }
|
|
228
|
+
],
|
|
229
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
230
|
+
"stateMutability": "view"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"gas": 4478633,
|
|
234
|
+
"name": "remove_liquidity_one_coin",
|
|
235
|
+
"type": "function",
|
|
236
|
+
"inputs": [
|
|
237
|
+
{ "name": "_token_amount", "type": "uint256" },
|
|
238
|
+
{ "name": "i", "type": "int128" },
|
|
239
|
+
{ "name": "_min_amount", "type": "uint256" }
|
|
240
|
+
],
|
|
241
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
242
|
+
"stateMutability": "nonpayable"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"gas": 151774,
|
|
246
|
+
"name": "ramp_A",
|
|
247
|
+
"type": "function",
|
|
248
|
+
"inputs": [
|
|
249
|
+
{ "name": "_future_A", "type": "uint256" },
|
|
250
|
+
{ "name": "_future_time", "type": "uint256" }
|
|
251
|
+
],
|
|
252
|
+
"outputs": [],
|
|
253
|
+
"stateMutability": "nonpayable"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"gas": 148535,
|
|
257
|
+
"name": "stop_ramp_A",
|
|
258
|
+
"type": "function",
|
|
259
|
+
"inputs": [],
|
|
260
|
+
"outputs": [],
|
|
261
|
+
"stateMutability": "nonpayable"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"gas": 110371,
|
|
265
|
+
"name": "commit_new_fee",
|
|
266
|
+
"type": "function",
|
|
267
|
+
"inputs": [
|
|
268
|
+
{ "name": "new_fee", "type": "uint256" },
|
|
269
|
+
{ "name": "new_admin_fee", "type": "uint256" }
|
|
270
|
+
],
|
|
271
|
+
"outputs": [],
|
|
272
|
+
"stateMutability": "nonpayable"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"gas": 97152,
|
|
276
|
+
"name": "apply_new_fee",
|
|
277
|
+
"type": "function",
|
|
278
|
+
"inputs": [],
|
|
279
|
+
"outputs": [],
|
|
280
|
+
"stateMutability": "nonpayable"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"gas": 21805,
|
|
284
|
+
"name": "revert_new_parameters",
|
|
285
|
+
"type": "function",
|
|
286
|
+
"inputs": [],
|
|
287
|
+
"outputs": [],
|
|
288
|
+
"stateMutability": "nonpayable"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"gas": 74543,
|
|
292
|
+
"name": "commit_transfer_ownership",
|
|
293
|
+
"type": "function",
|
|
294
|
+
"inputs": [{ "name": "_owner", "type": "address" }],
|
|
295
|
+
"outputs": [],
|
|
296
|
+
"stateMutability": "nonpayable"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"gas": 60620,
|
|
300
|
+
"name": "apply_transfer_ownership",
|
|
301
|
+
"type": "function",
|
|
302
|
+
"inputs": [],
|
|
303
|
+
"outputs": [],
|
|
304
|
+
"stateMutability": "nonpayable"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"gas": 21895,
|
|
308
|
+
"name": "revert_transfer_ownership",
|
|
309
|
+
"type": "function",
|
|
310
|
+
"inputs": [],
|
|
311
|
+
"outputs": [],
|
|
312
|
+
"stateMutability": "nonpayable"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"gas": 3391,
|
|
316
|
+
"name": "admin_balances",
|
|
317
|
+
"type": "function",
|
|
318
|
+
"inputs": [{ "name": "i", "type": "uint256" }],
|
|
319
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
320
|
+
"stateMutability": "view"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"gas": 31898,
|
|
324
|
+
"name": "withdraw_admin_fees",
|
|
325
|
+
"type": "function",
|
|
326
|
+
"inputs": [],
|
|
327
|
+
"outputs": [],
|
|
328
|
+
"stateMutability": "nonpayable"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"gas": 147723,
|
|
332
|
+
"name": "donate_admin_fees",
|
|
333
|
+
"type": "function",
|
|
334
|
+
"inputs": [],
|
|
335
|
+
"outputs": [],
|
|
336
|
+
"stateMutability": "nonpayable"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"gas": 37908,
|
|
340
|
+
"name": "kill_me",
|
|
341
|
+
"type": "function",
|
|
342
|
+
"inputs": [],
|
|
343
|
+
"outputs": [],
|
|
344
|
+
"stateMutability": "nonpayable"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"gas": 22045,
|
|
348
|
+
"name": "unkill_me",
|
|
349
|
+
"type": "function",
|
|
350
|
+
"inputs": [],
|
|
351
|
+
"outputs": [],
|
|
352
|
+
"stateMutability": "nonpayable"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"gas": 37178,
|
|
356
|
+
"name": "set_admin_fee_address",
|
|
357
|
+
"type": "function",
|
|
358
|
+
"inputs": [{ "name": "_admin_fee_address", "type": "address" }],
|
|
359
|
+
"outputs": [],
|
|
360
|
+
"stateMutability": "nonpayable"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"gas": 2160,
|
|
364
|
+
"name": "coins",
|
|
365
|
+
"type": "function",
|
|
366
|
+
"inputs": [{ "name": "arg0", "type": "uint256" }],
|
|
367
|
+
"outputs": [{ "name": "", "type": "address" }],
|
|
368
|
+
"stateMutability": "view"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"gas": 2190,
|
|
372
|
+
"name": "balances",
|
|
373
|
+
"type": "function",
|
|
374
|
+
"inputs": [{ "name": "arg0", "type": "uint256" }],
|
|
375
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
376
|
+
"stateMutability": "view"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"gas": 2111,
|
|
380
|
+
"name": "fee",
|
|
381
|
+
"type": "function",
|
|
382
|
+
"inputs": [],
|
|
383
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
384
|
+
"stateMutability": "view"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"gas": 2141,
|
|
388
|
+
"name": "admin_fee",
|
|
389
|
+
"type": "function",
|
|
390
|
+
"inputs": [],
|
|
391
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
392
|
+
"stateMutability": "view"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"gas": 2171,
|
|
396
|
+
"name": "admin_fee_address",
|
|
397
|
+
"type": "function",
|
|
398
|
+
"inputs": [],
|
|
399
|
+
"outputs": [{ "name": "", "type": "address" }],
|
|
400
|
+
"stateMutability": "view"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"gas": 2201,
|
|
404
|
+
"name": "owner",
|
|
405
|
+
"type": "function",
|
|
406
|
+
"inputs": [],
|
|
407
|
+
"outputs": [{ "name": "", "type": "address" }],
|
|
408
|
+
"stateMutability": "view"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"gas": 2231,
|
|
412
|
+
"name": "lp_token",
|
|
413
|
+
"type": "function",
|
|
414
|
+
"inputs": [],
|
|
415
|
+
"outputs": [{ "name": "", "type": "address" }],
|
|
416
|
+
"stateMutability": "view"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"gas": 2261,
|
|
420
|
+
"name": "initial_A",
|
|
421
|
+
"type": "function",
|
|
422
|
+
"inputs": [],
|
|
423
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
424
|
+
"stateMutability": "view"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"gas": 2291,
|
|
428
|
+
"name": "future_A",
|
|
429
|
+
"type": "function",
|
|
430
|
+
"inputs": [],
|
|
431
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
432
|
+
"stateMutability": "view"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"gas": 2321,
|
|
436
|
+
"name": "initial_A_time",
|
|
437
|
+
"type": "function",
|
|
438
|
+
"inputs": [],
|
|
439
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
440
|
+
"stateMutability": "view"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"gas": 2351,
|
|
444
|
+
"name": "future_A_time",
|
|
445
|
+
"type": "function",
|
|
446
|
+
"inputs": [],
|
|
447
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
448
|
+
"stateMutability": "view"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"gas": 2381,
|
|
452
|
+
"name": "admin_actions_deadline",
|
|
453
|
+
"type": "function",
|
|
454
|
+
"inputs": [],
|
|
455
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
456
|
+
"stateMutability": "view"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"gas": 2411,
|
|
460
|
+
"name": "transfer_ownership_deadline",
|
|
461
|
+
"type": "function",
|
|
462
|
+
"inputs": [],
|
|
463
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
464
|
+
"stateMutability": "view"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"gas": 2441,
|
|
468
|
+
"name": "future_fee",
|
|
469
|
+
"type": "function",
|
|
470
|
+
"inputs": [],
|
|
471
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
472
|
+
"stateMutability": "view"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"gas": 2471,
|
|
476
|
+
"name": "future_admin_fee",
|
|
477
|
+
"type": "function",
|
|
478
|
+
"inputs": [],
|
|
479
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
|
480
|
+
"stateMutability": "view"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"gas": 2501,
|
|
484
|
+
"name": "future_owner",
|
|
485
|
+
"type": "function",
|
|
486
|
+
"inputs": [],
|
|
487
|
+
"outputs": [{ "name": "", "type": "address" }],
|
|
488
|
+
"stateMutability": "view"
|
|
489
|
+
}
|
|
490
|
+
]
|
|
@@ -7,7 +7,9 @@ exports.CurveFork = void 0;
|
|
|
7
7
|
const utils_1 = require("../../../../utils");
|
|
8
8
|
const curve_v1_1 = require("../../curve-v1");
|
|
9
9
|
const _3pool_1 = require("../../pools/3pool");
|
|
10
|
+
const acryptos_4pool_1 = require("../../pools/acryptos-4pool");
|
|
10
11
|
const StableSwap3Pool_json_1 = __importDefault(require("../../../../abi/curve-v1/StableSwap3Pool.json"));
|
|
12
|
+
const constants_1 = require("../../../../constants");
|
|
11
13
|
const config_1 = require("./config");
|
|
12
14
|
class CurveFork extends curve_v1_1.CurveV1 {
|
|
13
15
|
network;
|
|
@@ -20,6 +22,11 @@ class CurveFork extends curve_v1_1.CurveV1 {
|
|
|
20
22
|
this.network = network;
|
|
21
23
|
}
|
|
22
24
|
getEventPoolInstance(poolAddress) {
|
|
25
|
+
// ACS4USD emits 4-coin events that the generic 3pool ABI below can't decode
|
|
26
|
+
if (this.network === constants_1.Network.BSC &&
|
|
27
|
+
poolAddress.toLowerCase() === acryptos_4pool_1.address) {
|
|
28
|
+
return new acryptos_4pool_1.Acryptos4Pool(this.dexKey, this.dexHelper);
|
|
29
|
+
}
|
|
23
30
|
const config = Object.values(this.pools).find(c => c.address.toLowerCase() === poolAddress.toLowerCase());
|
|
24
31
|
if (!config)
|
|
25
32
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curve-forks.js","sourceRoot":"","sources":["../../../../../src/dex/curve-v1/forks/curve-forks/curve-forks.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAwE;AACxE,6CAAyC;AACzC,8CAA8C;AAE9C,yGAA4E;
|
|
1
|
+
{"version":3,"file":"curve-forks.js","sourceRoot":"","sources":["../../../../../src/dex/curve-v1/forks/curve-forks/curve-forks.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAwE;AACxE,6CAAyC;AACzC,8CAA8C;AAE9C,+DAGoC;AACpC,yGAA4E;AAC5E,qDAAgD;AAEhD,qCAAsD;AAEtD,MAAa,SAAU,SAAQ,kBAAO;IASxB;IARZ,wEAAwE;IACxE,6CAA6C;IACnC,YAAY,GAAG,IAAI,CAAC;IAEvB,MAAM,CAAC,kBAAkB,GAC9B,IAAA,6BAAqB,EAAC,yBAAgB,CAAC,CAAC;IAE1C,YACY,OAAgB,EAC1B,MAAc,EACd,SAAqB,EACrB,SAAS,GAAG,yBAAgB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAC7C,QAAQ,GAAG,iBAAQ,CAAC,OAAO,CAAC;QAE5B,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;QAN7C,YAAO,GAAP,OAAO,CAAS;IAO5B,CAAC;IAED,oBAAoB,CAAC,WAAmB;QACtC,4EAA4E;QAC5E,IACE,IAAI,CAAC,OAAO,KAAK,mBAAO,CAAC,GAAG;YAC5B,WAAW,CAAC,WAAW,EAAE,KAAK,wBAAoB,EAClD,CAAC;YACD,OAAO,IAAI,8BAAa,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAC3C,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,WAAW,CAAC,WAAW,EAAE,CAC3D,CAAC;QACF,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QACzB,+DAA+D;QAC/D,0BAA0B;QAC1B,6CAA6C;QAC7C,wEAAwE;QACxE,+BAA+B;QAC/B,wBAAwB;QACxB,qBAAqB;QACrB,yBAAyB;QACzB,oBAAoB;QACpB,mBAAmB;QACnB,sBAAsB;QACtB,2BAA2B;QAC3B,yBAAyB;QACzB,qBAAqB;QACrB,2BAA2B;QAC3B,6CAA6C;QAC7C,yBAAyB;QACzB,oBAAoB;QACpB,eAAe;QACf,MAAM;QACN,IAAI;QACJ,IACE,MAAM,CAAC,YAAY,KAAK,SAAS;YACjC,MAAM,CAAC,YAAY,KAAK,SAAS;YACjC,MAAM,CAAC,UAAU,KAAK,SAAS;YAC/B,MAAM,CAAC,UAAU,KAAK,SAAS,EAC/B,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACjD,CAAC;QAED,OAAO,IAAI,kBAAS,CAClB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,SAAS,EACd,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,YAAY,EACnB,MAAM,CAAC,UAAU,EACjB,8BAAe,EACf,MAAM,CAAC,KAAK,CAAC,MAAM,EACnB,MAAM,CAAC,YAAa,CAAC,GAAG,CAAC,oBAAY,CAAC,EACtC,MAAM,CAAC,UAAU,EACjB,MAAM,CAAC,KAAK,CACb,CAAC;IACJ,CAAC;;AA1EH,8BA2EC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Address } from '../../../types';
|
|
2
|
+
import { SidechainPool } from './sidechain-pool';
|
|
3
|
+
import { IDexHelper } from '../../../dex-helper';
|
|
4
|
+
export declare const address: Address;
|
|
5
|
+
export declare class Acryptos4Pool extends SidechainPool {
|
|
6
|
+
constructor(parentName: string, dexHelper: IDexHelper);
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Acryptos4Pool = exports.address = void 0;
|
|
7
|
+
const sidechain_pool_1 = require("./sidechain-pool");
|
|
8
|
+
const StableSwapAcryptos4Pool_json_1 = __importDefault(require("../../../abi/curve-v1/StableSwapAcryptos4Pool.json"));
|
|
9
|
+
const utils_1 = require("../../../utils");
|
|
10
|
+
// ACS4USD on BSC
|
|
11
|
+
const pool = 'acryptos4pool';
|
|
12
|
+
exports.address = '0xb3F0C9ea1F05e312093Fdb031E789A756659B0AC'.toLowerCase();
|
|
13
|
+
const tokenAddress = '0x83D69Ef5c9837E21E2389D47d791714F5771F29b';
|
|
14
|
+
const N_COINS = 4;
|
|
15
|
+
const PRECISION_MUL = ['1', '1', '1', '1'].map(utils_1.bigNumberify);
|
|
16
|
+
const COINS = [
|
|
17
|
+
'0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56',
|
|
18
|
+
'0x55d398326f99059fF775485246999027B3197955',
|
|
19
|
+
'0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3',
|
|
20
|
+
'0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d',
|
|
21
|
+
];
|
|
22
|
+
class Acryptos4Pool extends sidechain_pool_1.SidechainPool {
|
|
23
|
+
constructor(parentName, dexHelper) {
|
|
24
|
+
super(parentName, dexHelper, pool, exports.address, tokenAddress, StableSwapAcryptos4Pool_json_1.default, N_COINS, PRECISION_MUL, COINS, 'Acryptos4Pool');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Acryptos4Pool = Acryptos4Pool;
|
|
28
|
+
//# sourceMappingURL=acryptos-4pool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acryptos-4pool.js","sourceRoot":"","sources":["../../../../src/dex/curve-v1/pools/acryptos-4pool.ts"],"names":[],"mappings":";;;;;;AACA,qDAAiD;AACjD,sHAAyF;AAEzF,0CAA8C;AAE9C,iBAAiB;AACjB,MAAM,IAAI,GAAG,eAAe,CAAC;AAChB,QAAA,OAAO,GAClB,4CAA4C,CAAC,WAAW,EAAE,CAAC;AAC7D,MAAM,YAAY,GAAY,4CAA4C,CAAC;AAC3E,MAAM,OAAO,GAAW,CAAC,CAAC;AAC1B,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,oBAAY,CAAC,CAAC;AAC7D,MAAM,KAAK,GAAG;IACZ,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;CAC7C,CAAC;AAEF,MAAa,aAAc,SAAQ,8BAAa;IAC9C,YAAY,UAAkB,EAAE,SAAqB;QACnD,KAAK,CACH,UAAU,EACV,SAAS,EACT,IAAI,EACJ,eAAO,EACP,YAAY,EACZ,sCAAuB,EACvB,OAAO,EACP,aAAa,EACb,KAAK,EACL,eAAe,CAChB,CAAC;IACJ,CAAC;CACF;AAfD,sCAeC"}
|