@curvefi/api 1.17.2 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +57 -0
  2. package/lib/constants/abis/abis-ethereum.js +6 -6
  3. package/lib/constants/abis/json/factory-crypto/factory-crypto-pool-2.json +1112 -0
  4. package/lib/constants/abis/json/factory-crypto.json +635 -0
  5. package/lib/constants/abis/json/factory-v2/DepositZapMetaBtcPolygon.json +197 -0
  6. package/lib/constants/abis/json/factory-v2/DepositZapMetaUsdPolygon.json +197 -0
  7. package/lib/constants/abis/json/factory-v2/MetaBTC.json +919 -0
  8. package/lib/constants/abis/json/factory-v2/MetaBTCBalances.json +932 -0
  9. package/lib/constants/abis/json/factory-v2/MetaBTCBalancesRen.json +932 -0
  10. package/lib/constants/abis/json/factory-v2/MetaBTCRen.json +919 -0
  11. package/lib/constants/abis/json/factory-v2/MetaUSD.json +919 -0
  12. package/lib/constants/abis/json/factory-v2/MetaUSDBalances.json +932 -0
  13. package/lib/constants/abis/json/factory-v2/Plain2Balances.json +845 -0
  14. package/lib/constants/abis/json/factory-v2/Plain2Basic.json +845 -0
  15. package/lib/constants/abis/json/factory-v2/Plain2ETH.json +845 -0
  16. package/lib/constants/abis/json/factory-v2/Plain2Optimized.json +844 -0
  17. package/lib/constants/abis/json/factory-v2/Plain3Balances.json +845 -0
  18. package/lib/constants/abis/json/factory-v2/Plain3Basic.json +845 -0
  19. package/lib/constants/abis/json/factory-v2/Plain3ETH.json +845 -0
  20. package/lib/constants/abis/json/factory-v2/Plain3Optimized.json +845 -0
  21. package/lib/constants/abis/json/factory-v2/Plain4Balances.json +845 -0
  22. package/lib/constants/abis/json/factory-v2/Plain4Basic.json +845 -0
  23. package/lib/constants/abis/json/factory-v2/Plain4ETH.json +845 -0
  24. package/lib/constants/abis/json/factory-v2/Plain4Optimized.json +845 -0
  25. package/lib/constants/abis/json/factory.json +1063 -0
  26. package/lib/constants/abis/json/registry_exchange.json +207 -84
  27. package/lib/constants/aliases.d.ts +4 -0
  28. package/lib/constants/aliases.js +4 -0
  29. package/lib/constants/coins-polygon.js +3 -2
  30. package/lib/curve.d.ts +5 -0
  31. package/lib/curve.js +62 -0
  32. package/lib/factory-crypto.d.ts +32 -0
  33. package/lib/factory-crypto.js +377 -0
  34. package/lib/factory.d.ts +32 -0
  35. package/lib/factory.js +607 -0
  36. package/lib/index.d.ts +7 -0
  37. package/lib/index.js +28 -0
  38. package/lib/interfaces.d.ts +28 -1
  39. package/lib/pools.d.ts +5 -0
  40. package/lib/pools.js +359 -159
  41. package/lib/utils.d.ts +8 -1
  42. package/lib/utils.js +111 -8
  43. package/package.json +4 -2
@@ -0,0 +1,1112 @@
1
+ [
2
+ {
3
+ "name": "TokenExchange",
4
+ "inputs": [
5
+ {
6
+ "name": "buyer",
7
+ "type": "address",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "name": "sold_id",
12
+ "type": "uint256",
13
+ "indexed": false
14
+ },
15
+ {
16
+ "name": "tokens_sold",
17
+ "type": "uint256",
18
+ "indexed": false
19
+ },
20
+ {
21
+ "name": "bought_id",
22
+ "type": "uint256",
23
+ "indexed": false
24
+ },
25
+ {
26
+ "name": "tokens_bought",
27
+ "type": "uint256",
28
+ "indexed": false
29
+ }
30
+ ],
31
+ "anonymous": false,
32
+ "type": "event"
33
+ },
34
+ {
35
+ "name": "AddLiquidity",
36
+ "inputs": [
37
+ {
38
+ "name": "provider",
39
+ "type": "address",
40
+ "indexed": true
41
+ },
42
+ {
43
+ "name": "token_amounts",
44
+ "type": "uint256[2]",
45
+ "indexed": false
46
+ },
47
+ {
48
+ "name": "fee",
49
+ "type": "uint256",
50
+ "indexed": false
51
+ },
52
+ {
53
+ "name": "token_supply",
54
+ "type": "uint256",
55
+ "indexed": false
56
+ }
57
+ ],
58
+ "anonymous": false,
59
+ "type": "event"
60
+ },
61
+ {
62
+ "name": "RemoveLiquidity",
63
+ "inputs": [
64
+ {
65
+ "name": "provider",
66
+ "type": "address",
67
+ "indexed": true
68
+ },
69
+ {
70
+ "name": "token_amounts",
71
+ "type": "uint256[2]",
72
+ "indexed": false
73
+ },
74
+ {
75
+ "name": "token_supply",
76
+ "type": "uint256",
77
+ "indexed": false
78
+ }
79
+ ],
80
+ "anonymous": false,
81
+ "type": "event"
82
+ },
83
+ {
84
+ "name": "RemoveLiquidityOne",
85
+ "inputs": [
86
+ {
87
+ "name": "provider",
88
+ "type": "address",
89
+ "indexed": true
90
+ },
91
+ {
92
+ "name": "token_amount",
93
+ "type": "uint256",
94
+ "indexed": false
95
+ },
96
+ {
97
+ "name": "coin_index",
98
+ "type": "uint256",
99
+ "indexed": false
100
+ },
101
+ {
102
+ "name": "coin_amount",
103
+ "type": "uint256",
104
+ "indexed": false
105
+ }
106
+ ],
107
+ "anonymous": false,
108
+ "type": "event"
109
+ },
110
+ {
111
+ "name": "CommitNewParameters",
112
+ "inputs": [
113
+ {
114
+ "name": "deadline",
115
+ "type": "uint256",
116
+ "indexed": true
117
+ },
118
+ {
119
+ "name": "admin_fee",
120
+ "type": "uint256",
121
+ "indexed": false
122
+ },
123
+ {
124
+ "name": "mid_fee",
125
+ "type": "uint256",
126
+ "indexed": false
127
+ },
128
+ {
129
+ "name": "out_fee",
130
+ "type": "uint256",
131
+ "indexed": false
132
+ },
133
+ {
134
+ "name": "fee_gamma",
135
+ "type": "uint256",
136
+ "indexed": false
137
+ },
138
+ {
139
+ "name": "allowed_extra_profit",
140
+ "type": "uint256",
141
+ "indexed": false
142
+ },
143
+ {
144
+ "name": "adjustment_step",
145
+ "type": "uint256",
146
+ "indexed": false
147
+ },
148
+ {
149
+ "name": "ma_half_time",
150
+ "type": "uint256",
151
+ "indexed": false
152
+ }
153
+ ],
154
+ "anonymous": false,
155
+ "type": "event"
156
+ },
157
+ {
158
+ "name": "NewParameters",
159
+ "inputs": [
160
+ {
161
+ "name": "admin_fee",
162
+ "type": "uint256",
163
+ "indexed": false
164
+ },
165
+ {
166
+ "name": "mid_fee",
167
+ "type": "uint256",
168
+ "indexed": false
169
+ },
170
+ {
171
+ "name": "out_fee",
172
+ "type": "uint256",
173
+ "indexed": false
174
+ },
175
+ {
176
+ "name": "fee_gamma",
177
+ "type": "uint256",
178
+ "indexed": false
179
+ },
180
+ {
181
+ "name": "allowed_extra_profit",
182
+ "type": "uint256",
183
+ "indexed": false
184
+ },
185
+ {
186
+ "name": "adjustment_step",
187
+ "type": "uint256",
188
+ "indexed": false
189
+ },
190
+ {
191
+ "name": "ma_half_time",
192
+ "type": "uint256",
193
+ "indexed": false
194
+ }
195
+ ],
196
+ "anonymous": false,
197
+ "type": "event"
198
+ },
199
+ {
200
+ "name": "RampAgamma",
201
+ "inputs": [
202
+ {
203
+ "name": "initial_A",
204
+ "type": "uint256",
205
+ "indexed": false
206
+ },
207
+ {
208
+ "name": "future_A",
209
+ "type": "uint256",
210
+ "indexed": false
211
+ },
212
+ {
213
+ "name": "initial_gamma",
214
+ "type": "uint256",
215
+ "indexed": false
216
+ },
217
+ {
218
+ "name": "future_gamma",
219
+ "type": "uint256",
220
+ "indexed": false
221
+ },
222
+ {
223
+ "name": "initial_time",
224
+ "type": "uint256",
225
+ "indexed": false
226
+ },
227
+ {
228
+ "name": "future_time",
229
+ "type": "uint256",
230
+ "indexed": false
231
+ }
232
+ ],
233
+ "anonymous": false,
234
+ "type": "event"
235
+ },
236
+ {
237
+ "name": "StopRampA",
238
+ "inputs": [
239
+ {
240
+ "name": "current_A",
241
+ "type": "uint256",
242
+ "indexed": false
243
+ },
244
+ {
245
+ "name": "current_gamma",
246
+ "type": "uint256",
247
+ "indexed": false
248
+ },
249
+ {
250
+ "name": "time",
251
+ "type": "uint256",
252
+ "indexed": false
253
+ }
254
+ ],
255
+ "anonymous": false,
256
+ "type": "event"
257
+ },
258
+ {
259
+ "name": "ClaimAdminFee",
260
+ "inputs": [
261
+ {
262
+ "name": "admin",
263
+ "type": "address",
264
+ "indexed": true
265
+ },
266
+ {
267
+ "name": "tokens",
268
+ "type": "uint256",
269
+ "indexed": false
270
+ }
271
+ ],
272
+ "anonymous": false,
273
+ "type": "event"
274
+ },
275
+ {
276
+ "stateMutability": "nonpayable",
277
+ "type": "constructor",
278
+ "inputs": [
279
+ {
280
+ "name": "_weth",
281
+ "type": "address"
282
+ }
283
+ ],
284
+ "outputs": []
285
+ },
286
+ {
287
+ "stateMutability": "nonpayable",
288
+ "type": "function",
289
+ "name": "initialize",
290
+ "inputs": [
291
+ {
292
+ "name": "A",
293
+ "type": "uint256"
294
+ },
295
+ {
296
+ "name": "gamma",
297
+ "type": "uint256"
298
+ },
299
+ {
300
+ "name": "mid_fee",
301
+ "type": "uint256"
302
+ },
303
+ {
304
+ "name": "out_fee",
305
+ "type": "uint256"
306
+ },
307
+ {
308
+ "name": "allowed_extra_profit",
309
+ "type": "uint256"
310
+ },
311
+ {
312
+ "name": "fee_gamma",
313
+ "type": "uint256"
314
+ },
315
+ {
316
+ "name": "adjustment_step",
317
+ "type": "uint256"
318
+ },
319
+ {
320
+ "name": "admin_fee",
321
+ "type": "uint256"
322
+ },
323
+ {
324
+ "name": "ma_half_time",
325
+ "type": "uint256"
326
+ },
327
+ {
328
+ "name": "initial_price",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "name": "_token",
333
+ "type": "address"
334
+ },
335
+ {
336
+ "name": "_coins",
337
+ "type": "address[2]"
338
+ }
339
+ ],
340
+ "outputs": []
341
+ },
342
+ {
343
+ "stateMutability": "payable",
344
+ "type": "fallback"
345
+ },
346
+ {
347
+ "stateMutability": "view",
348
+ "type": "function",
349
+ "name": "A",
350
+ "inputs": [],
351
+ "outputs": [
352
+ {
353
+ "name": "",
354
+ "type": "uint256"
355
+ }
356
+ ]
357
+ },
358
+ {
359
+ "stateMutability": "view",
360
+ "type": "function",
361
+ "name": "gamma",
362
+ "inputs": [],
363
+ "outputs": [
364
+ {
365
+ "name": "",
366
+ "type": "uint256"
367
+ }
368
+ ]
369
+ },
370
+ {
371
+ "stateMutability": "view",
372
+ "type": "function",
373
+ "name": "fee",
374
+ "inputs": [],
375
+ "outputs": [
376
+ {
377
+ "name": "",
378
+ "type": "uint256"
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "stateMutability": "view",
384
+ "type": "function",
385
+ "name": "get_virtual_price",
386
+ "inputs": [],
387
+ "outputs": [
388
+ {
389
+ "name": "",
390
+ "type": "uint256"
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "stateMutability": "view",
396
+ "type": "function",
397
+ "name": "price_oracle",
398
+ "inputs": [],
399
+ "outputs": [
400
+ {
401
+ "name": "",
402
+ "type": "uint256"
403
+ }
404
+ ]
405
+ },
406
+ {
407
+ "stateMutability": "payable",
408
+ "type": "function",
409
+ "name": "exchange",
410
+ "inputs": [
411
+ {
412
+ "name": "i",
413
+ "type": "uint256"
414
+ },
415
+ {
416
+ "name": "j",
417
+ "type": "uint256"
418
+ },
419
+ {
420
+ "name": "dx",
421
+ "type": "uint256"
422
+ },
423
+ {
424
+ "name": "min_dy",
425
+ "type": "uint256"
426
+ }
427
+ ],
428
+ "outputs": [
429
+ {
430
+ "name": "",
431
+ "type": "uint256"
432
+ }
433
+ ]
434
+ },
435
+ {
436
+ "stateMutability": "payable",
437
+ "type": "function",
438
+ "name": "exchange_underlying",
439
+ "inputs": [
440
+ {
441
+ "name": "i",
442
+ "type": "uint256"
443
+ },
444
+ {
445
+ "name": "j",
446
+ "type": "uint256"
447
+ },
448
+ {
449
+ "name": "dx",
450
+ "type": "uint256"
451
+ },
452
+ {
453
+ "name": "min_dy",
454
+ "type": "uint256"
455
+ }
456
+ ],
457
+ "outputs": [
458
+ {
459
+ "name": "",
460
+ "type": "uint256"
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "stateMutability": "payable",
466
+ "type": "function",
467
+ "name": "exchange_extended",
468
+ "inputs": [
469
+ {
470
+ "name": "i",
471
+ "type": "uint256"
472
+ },
473
+ {
474
+ "name": "j",
475
+ "type": "uint256"
476
+ },
477
+ {
478
+ "name": "dx",
479
+ "type": "uint256"
480
+ },
481
+ {
482
+ "name": "min_dy",
483
+ "type": "uint256"
484
+ },
485
+ {
486
+ "name": "use_eth",
487
+ "type": "bool"
488
+ },
489
+ {
490
+ "name": "sender",
491
+ "type": "address"
492
+ },
493
+ {
494
+ "name": "receiver",
495
+ "type": "address"
496
+ },
497
+ {
498
+ "name": "cb",
499
+ "type": "bytes"
500
+ }
501
+ ],
502
+ "outputs": [
503
+ {
504
+ "name": "",
505
+ "type": "uint256"
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ "stateMutability": "view",
511
+ "type": "function",
512
+ "name": "get_dy",
513
+ "inputs": [
514
+ {
515
+ "name": "i",
516
+ "type": "uint256"
517
+ },
518
+ {
519
+ "name": "j",
520
+ "type": "uint256"
521
+ },
522
+ {
523
+ "name": "dx",
524
+ "type": "uint256"
525
+ }
526
+ ],
527
+ "outputs": [
528
+ {
529
+ "name": "",
530
+ "type": "uint256"
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ "stateMutability": "payable",
536
+ "type": "function",
537
+ "name": "add_liquidity",
538
+ "inputs": [
539
+ {
540
+ "name": "amounts",
541
+ "type": "uint256[2]"
542
+ },
543
+ {
544
+ "name": "min_mint_amount",
545
+ "type": "uint256"
546
+ },
547
+ {
548
+ "name": "use_eth",
549
+ "type": "bool"
550
+ }
551
+ ],
552
+ "outputs": [
553
+ {
554
+ "name": "",
555
+ "type": "uint256"
556
+ }
557
+ ]
558
+ },
559
+ {
560
+ "stateMutability": "nonpayable",
561
+ "type": "function",
562
+ "name": "remove_liquidity",
563
+ "inputs": [
564
+ {
565
+ "name": "_amount",
566
+ "type": "uint256"
567
+ },
568
+ {
569
+ "name": "min_amounts",
570
+ "type": "uint256[2]"
571
+ },
572
+ {
573
+ "name": "use_eth",
574
+ "type": "bool"
575
+ }
576
+ ],
577
+ "outputs": []
578
+ },
579
+ {
580
+ "stateMutability": "view",
581
+ "type": "function",
582
+ "name": "calc_token_amount",
583
+ "inputs": [
584
+ {
585
+ "name": "amounts",
586
+ "type": "uint256[2]"
587
+ }
588
+ ],
589
+ "outputs": [
590
+ {
591
+ "name": "",
592
+ "type": "uint256"
593
+ }
594
+ ]
595
+ },
596
+ {
597
+ "stateMutability": "view",
598
+ "type": "function",
599
+ "name": "calc_withdraw_one_coin",
600
+ "inputs": [
601
+ {
602
+ "name": "token_amount",
603
+ "type": "uint256"
604
+ },
605
+ {
606
+ "name": "i",
607
+ "type": "uint256"
608
+ }
609
+ ],
610
+ "outputs": [
611
+ {
612
+ "name": "",
613
+ "type": "uint256"
614
+ }
615
+ ]
616
+ },
617
+ {
618
+ "stateMutability": "nonpayable",
619
+ "type": "function",
620
+ "name": "remove_liquidity_one_coin",
621
+ "inputs": [
622
+ {
623
+ "name": "token_amount",
624
+ "type": "uint256"
625
+ },
626
+ {
627
+ "name": "i",
628
+ "type": "uint256"
629
+ },
630
+ {
631
+ "name": "min_amount",
632
+ "type": "uint256"
633
+ },
634
+ {
635
+ "name": "use_eth",
636
+ "type": "bool"
637
+ }
638
+ ],
639
+ "outputs": [
640
+ {
641
+ "name": "",
642
+ "type": "uint256"
643
+ }
644
+ ]
645
+ },
646
+ {
647
+ "stateMutability": "nonpayable",
648
+ "type": "function",
649
+ "name": "claim_admin_fees",
650
+ "inputs": [],
651
+ "outputs": []
652
+ },
653
+ {
654
+ "stateMutability": "nonpayable",
655
+ "type": "function",
656
+ "name": "ramp_A_gamma",
657
+ "inputs": [
658
+ {
659
+ "name": "future_A",
660
+ "type": "uint256"
661
+ },
662
+ {
663
+ "name": "future_gamma",
664
+ "type": "uint256"
665
+ },
666
+ {
667
+ "name": "future_time",
668
+ "type": "uint256"
669
+ }
670
+ ],
671
+ "outputs": []
672
+ },
673
+ {
674
+ "stateMutability": "nonpayable",
675
+ "type": "function",
676
+ "name": "stop_ramp_A_gamma",
677
+ "inputs": [],
678
+ "outputs": []
679
+ },
680
+ {
681
+ "stateMutability": "nonpayable",
682
+ "type": "function",
683
+ "name": "commit_new_parameters",
684
+ "inputs": [
685
+ {
686
+ "name": "_new_mid_fee",
687
+ "type": "uint256"
688
+ },
689
+ {
690
+ "name": "_new_out_fee",
691
+ "type": "uint256"
692
+ },
693
+ {
694
+ "name": "_new_admin_fee",
695
+ "type": "uint256"
696
+ },
697
+ {
698
+ "name": "_new_fee_gamma",
699
+ "type": "uint256"
700
+ },
701
+ {
702
+ "name": "_new_allowed_extra_profit",
703
+ "type": "uint256"
704
+ },
705
+ {
706
+ "name": "_new_adjustment_step",
707
+ "type": "uint256"
708
+ },
709
+ {
710
+ "name": "_new_ma_half_time",
711
+ "type": "uint256"
712
+ }
713
+ ],
714
+ "outputs": []
715
+ },
716
+ {
717
+ "stateMutability": "nonpayable",
718
+ "type": "function",
719
+ "name": "apply_new_parameters",
720
+ "inputs": [],
721
+ "outputs": []
722
+ },
723
+ {
724
+ "stateMutability": "nonpayable",
725
+ "type": "function",
726
+ "name": "revert_new_parameters",
727
+ "inputs": [],
728
+ "outputs": []
729
+ },
730
+ {
731
+ "stateMutability": "view",
732
+ "type": "function",
733
+ "name": "lp_price",
734
+ "inputs": [],
735
+ "outputs": [
736
+ {
737
+ "name": "",
738
+ "type": "uint256"
739
+ }
740
+ ]
741
+ },
742
+ {
743
+ "stateMutability": "view",
744
+ "type": "function",
745
+ "name": "token",
746
+ "inputs": [],
747
+ "outputs": [
748
+ {
749
+ "name": "",
750
+ "type": "address"
751
+ }
752
+ ]
753
+ },
754
+ {
755
+ "stateMutability": "view",
756
+ "type": "function",
757
+ "name": "coins",
758
+ "inputs": [
759
+ {
760
+ "name": "arg0",
761
+ "type": "uint256"
762
+ }
763
+ ],
764
+ "outputs": [
765
+ {
766
+ "name": "",
767
+ "type": "address"
768
+ }
769
+ ]
770
+ },
771
+ {
772
+ "stateMutability": "view",
773
+ "type": "function",
774
+ "name": "price_scale",
775
+ "inputs": [],
776
+ "outputs": [
777
+ {
778
+ "name": "",
779
+ "type": "uint256"
780
+ }
781
+ ]
782
+ },
783
+ {
784
+ "stateMutability": "view",
785
+ "type": "function",
786
+ "name": "last_prices",
787
+ "inputs": [],
788
+ "outputs": [
789
+ {
790
+ "name": "",
791
+ "type": "uint256"
792
+ }
793
+ ]
794
+ },
795
+ {
796
+ "stateMutability": "view",
797
+ "type": "function",
798
+ "name": "last_prices_timestamp",
799
+ "inputs": [],
800
+ "outputs": [
801
+ {
802
+ "name": "",
803
+ "type": "uint256"
804
+ }
805
+ ]
806
+ },
807
+ {
808
+ "stateMutability": "view",
809
+ "type": "function",
810
+ "name": "initial_A_gamma",
811
+ "inputs": [],
812
+ "outputs": [
813
+ {
814
+ "name": "",
815
+ "type": "uint256"
816
+ }
817
+ ]
818
+ },
819
+ {
820
+ "stateMutability": "view",
821
+ "type": "function",
822
+ "name": "future_A_gamma",
823
+ "inputs": [],
824
+ "outputs": [
825
+ {
826
+ "name": "",
827
+ "type": "uint256"
828
+ }
829
+ ]
830
+ },
831
+ {
832
+ "stateMutability": "view",
833
+ "type": "function",
834
+ "name": "initial_A_gamma_time",
835
+ "inputs": [],
836
+ "outputs": [
837
+ {
838
+ "name": "",
839
+ "type": "uint256"
840
+ }
841
+ ]
842
+ },
843
+ {
844
+ "stateMutability": "view",
845
+ "type": "function",
846
+ "name": "future_A_gamma_time",
847
+ "inputs": [],
848
+ "outputs": [
849
+ {
850
+ "name": "",
851
+ "type": "uint256"
852
+ }
853
+ ]
854
+ },
855
+ {
856
+ "stateMutability": "view",
857
+ "type": "function",
858
+ "name": "allowed_extra_profit",
859
+ "inputs": [],
860
+ "outputs": [
861
+ {
862
+ "name": "",
863
+ "type": "uint256"
864
+ }
865
+ ]
866
+ },
867
+ {
868
+ "stateMutability": "view",
869
+ "type": "function",
870
+ "name": "future_allowed_extra_profit",
871
+ "inputs": [],
872
+ "outputs": [
873
+ {
874
+ "name": "",
875
+ "type": "uint256"
876
+ }
877
+ ]
878
+ },
879
+ {
880
+ "stateMutability": "view",
881
+ "type": "function",
882
+ "name": "fee_gamma",
883
+ "inputs": [],
884
+ "outputs": [
885
+ {
886
+ "name": "",
887
+ "type": "uint256"
888
+ }
889
+ ]
890
+ },
891
+ {
892
+ "stateMutability": "view",
893
+ "type": "function",
894
+ "name": "future_fee_gamma",
895
+ "inputs": [],
896
+ "outputs": [
897
+ {
898
+ "name": "",
899
+ "type": "uint256"
900
+ }
901
+ ]
902
+ },
903
+ {
904
+ "stateMutability": "view",
905
+ "type": "function",
906
+ "name": "adjustment_step",
907
+ "inputs": [],
908
+ "outputs": [
909
+ {
910
+ "name": "",
911
+ "type": "uint256"
912
+ }
913
+ ]
914
+ },
915
+ {
916
+ "stateMutability": "view",
917
+ "type": "function",
918
+ "name": "future_adjustment_step",
919
+ "inputs": [],
920
+ "outputs": [
921
+ {
922
+ "name": "",
923
+ "type": "uint256"
924
+ }
925
+ ]
926
+ },
927
+ {
928
+ "stateMutability": "view",
929
+ "type": "function",
930
+ "name": "ma_half_time",
931
+ "inputs": [],
932
+ "outputs": [
933
+ {
934
+ "name": "",
935
+ "type": "uint256"
936
+ }
937
+ ]
938
+ },
939
+ {
940
+ "stateMutability": "view",
941
+ "type": "function",
942
+ "name": "future_ma_half_time",
943
+ "inputs": [],
944
+ "outputs": [
945
+ {
946
+ "name": "",
947
+ "type": "uint256"
948
+ }
949
+ ]
950
+ },
951
+ {
952
+ "stateMutability": "view",
953
+ "type": "function",
954
+ "name": "mid_fee",
955
+ "inputs": [],
956
+ "outputs": [
957
+ {
958
+ "name": "",
959
+ "type": "uint256"
960
+ }
961
+ ]
962
+ },
963
+ {
964
+ "stateMutability": "view",
965
+ "type": "function",
966
+ "name": "out_fee",
967
+ "inputs": [],
968
+ "outputs": [
969
+ {
970
+ "name": "",
971
+ "type": "uint256"
972
+ }
973
+ ]
974
+ },
975
+ {
976
+ "stateMutability": "view",
977
+ "type": "function",
978
+ "name": "admin_fee",
979
+ "inputs": [],
980
+ "outputs": [
981
+ {
982
+ "name": "",
983
+ "type": "uint256"
984
+ }
985
+ ]
986
+ },
987
+ {
988
+ "stateMutability": "view",
989
+ "type": "function",
990
+ "name": "future_mid_fee",
991
+ "inputs": [],
992
+ "outputs": [
993
+ {
994
+ "name": "",
995
+ "type": "uint256"
996
+ }
997
+ ]
998
+ },
999
+ {
1000
+ "stateMutability": "view",
1001
+ "type": "function",
1002
+ "name": "future_out_fee",
1003
+ "inputs": [],
1004
+ "outputs": [
1005
+ {
1006
+ "name": "",
1007
+ "type": "uint256"
1008
+ }
1009
+ ]
1010
+ },
1011
+ {
1012
+ "stateMutability": "view",
1013
+ "type": "function",
1014
+ "name": "future_admin_fee",
1015
+ "inputs": [],
1016
+ "outputs": [
1017
+ {
1018
+ "name": "",
1019
+ "type": "uint256"
1020
+ }
1021
+ ]
1022
+ },
1023
+ {
1024
+ "stateMutability": "view",
1025
+ "type": "function",
1026
+ "name": "balances",
1027
+ "inputs": [
1028
+ {
1029
+ "name": "arg0",
1030
+ "type": "uint256"
1031
+ }
1032
+ ],
1033
+ "outputs": [
1034
+ {
1035
+ "name": "",
1036
+ "type": "uint256"
1037
+ }
1038
+ ]
1039
+ },
1040
+ {
1041
+ "stateMutability": "view",
1042
+ "type": "function",
1043
+ "name": "D",
1044
+ "inputs": [],
1045
+ "outputs": [
1046
+ {
1047
+ "name": "",
1048
+ "type": "uint256"
1049
+ }
1050
+ ]
1051
+ },
1052
+ {
1053
+ "stateMutability": "view",
1054
+ "type": "function",
1055
+ "name": "factory",
1056
+ "inputs": [],
1057
+ "outputs": [
1058
+ {
1059
+ "name": "",
1060
+ "type": "address"
1061
+ }
1062
+ ]
1063
+ },
1064
+ {
1065
+ "stateMutability": "view",
1066
+ "type": "function",
1067
+ "name": "xcp_profit",
1068
+ "inputs": [],
1069
+ "outputs": [
1070
+ {
1071
+ "name": "",
1072
+ "type": "uint256"
1073
+ }
1074
+ ]
1075
+ },
1076
+ {
1077
+ "stateMutability": "view",
1078
+ "type": "function",
1079
+ "name": "xcp_profit_a",
1080
+ "inputs": [],
1081
+ "outputs": [
1082
+ {
1083
+ "name": "",
1084
+ "type": "uint256"
1085
+ }
1086
+ ]
1087
+ },
1088
+ {
1089
+ "stateMutability": "view",
1090
+ "type": "function",
1091
+ "name": "virtual_price",
1092
+ "inputs": [],
1093
+ "outputs": [
1094
+ {
1095
+ "name": "",
1096
+ "type": "uint256"
1097
+ }
1098
+ ]
1099
+ },
1100
+ {
1101
+ "stateMutability": "view",
1102
+ "type": "function",
1103
+ "name": "admin_actions_deadline",
1104
+ "inputs": [],
1105
+ "outputs": [
1106
+ {
1107
+ "name": "",
1108
+ "type": "uint256"
1109
+ }
1110
+ ]
1111
+ }
1112
+ ]