@curvefi/api 2.38.0 → 2.40.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.
@@ -0,0 +1,1502 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": true,
7
+ "name": "sender",
8
+ "type": "address"
9
+ },
10
+ {
11
+ "indexed": true,
12
+ "name": "receiver",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "name": "value",
18
+ "type": "uint256"
19
+ }
20
+ ],
21
+ "name": "Transfer",
22
+ "type": "event"
23
+ },
24
+ {
25
+ "anonymous": false,
26
+ "inputs": [
27
+ {
28
+ "indexed": true,
29
+ "name": "owner",
30
+ "type": "address"
31
+ },
32
+ {
33
+ "indexed": true,
34
+ "name": "spender",
35
+ "type": "address"
36
+ },
37
+ {
38
+ "indexed": false,
39
+ "name": "value",
40
+ "type": "uint256"
41
+ }
42
+ ],
43
+ "name": "Approval",
44
+ "type": "event"
45
+ },
46
+ {
47
+ "anonymous": false,
48
+ "inputs": [
49
+ {
50
+ "indexed": true,
51
+ "name": "buyer",
52
+ "type": "address"
53
+ },
54
+ {
55
+ "indexed": false,
56
+ "name": "sold_id",
57
+ "type": "uint256"
58
+ },
59
+ {
60
+ "indexed": false,
61
+ "name": "tokens_sold",
62
+ "type": "uint256"
63
+ },
64
+ {
65
+ "indexed": false,
66
+ "name": "bought_id",
67
+ "type": "uint256"
68
+ },
69
+ {
70
+ "indexed": false,
71
+ "name": "tokens_bought",
72
+ "type": "uint256"
73
+ },
74
+ {
75
+ "indexed": false,
76
+ "name": "fee",
77
+ "type": "uint256"
78
+ },
79
+ {
80
+ "indexed": false,
81
+ "name": "packed_price_scale",
82
+ "type": "uint256"
83
+ }
84
+ ],
85
+ "name": "TokenExchange",
86
+ "type": "event"
87
+ },
88
+ {
89
+ "anonymous": false,
90
+ "inputs": [
91
+ {
92
+ "indexed": true,
93
+ "name": "provider",
94
+ "type": "address"
95
+ },
96
+ {
97
+ "indexed": false,
98
+ "name": "token_amounts",
99
+ "type": "uint256[3]"
100
+ },
101
+ {
102
+ "indexed": false,
103
+ "name": "fee",
104
+ "type": "uint256"
105
+ },
106
+ {
107
+ "indexed": false,
108
+ "name": "token_supply",
109
+ "type": "uint256"
110
+ },
111
+ {
112
+ "indexed": false,
113
+ "name": "packed_price_scale",
114
+ "type": "uint256"
115
+ }
116
+ ],
117
+ "name": "AddLiquidity",
118
+ "type": "event"
119
+ },
120
+ {
121
+ "anonymous": false,
122
+ "inputs": [
123
+ {
124
+ "indexed": true,
125
+ "name": "provider",
126
+ "type": "address"
127
+ },
128
+ {
129
+ "indexed": false,
130
+ "name": "token_amounts",
131
+ "type": "uint256[3]"
132
+ },
133
+ {
134
+ "indexed": false,
135
+ "name": "token_supply",
136
+ "type": "uint256"
137
+ }
138
+ ],
139
+ "name": "RemoveLiquidity",
140
+ "type": "event"
141
+ },
142
+ {
143
+ "anonymous": false,
144
+ "inputs": [
145
+ {
146
+ "indexed": true,
147
+ "name": "provider",
148
+ "type": "address"
149
+ },
150
+ {
151
+ "indexed": false,
152
+ "name": "token_amount",
153
+ "type": "uint256"
154
+ },
155
+ {
156
+ "indexed": false,
157
+ "name": "coin_index",
158
+ "type": "uint256"
159
+ },
160
+ {
161
+ "indexed": false,
162
+ "name": "coin_amount",
163
+ "type": "uint256"
164
+ },
165
+ {
166
+ "indexed": false,
167
+ "name": "approx_fee",
168
+ "type": "uint256"
169
+ },
170
+ {
171
+ "indexed": false,
172
+ "name": "packed_price_scale",
173
+ "type": "uint256"
174
+ }
175
+ ],
176
+ "name": "RemoveLiquidityOne",
177
+ "type": "event"
178
+ },
179
+ {
180
+ "anonymous": false,
181
+ "inputs": [
182
+ {
183
+ "indexed": true,
184
+ "name": "deadline",
185
+ "type": "uint256"
186
+ },
187
+ {
188
+ "indexed": false,
189
+ "name": "mid_fee",
190
+ "type": "uint256"
191
+ },
192
+ {
193
+ "indexed": false,
194
+ "name": "out_fee",
195
+ "type": "uint256"
196
+ },
197
+ {
198
+ "indexed": false,
199
+ "name": "fee_gamma",
200
+ "type": "uint256"
201
+ },
202
+ {
203
+ "indexed": false,
204
+ "name": "allowed_extra_profit",
205
+ "type": "uint256"
206
+ },
207
+ {
208
+ "indexed": false,
209
+ "name": "adjustment_step",
210
+ "type": "uint256"
211
+ },
212
+ {
213
+ "indexed": false,
214
+ "name": "ma_time",
215
+ "type": "uint256"
216
+ }
217
+ ],
218
+ "name": "CommitNewParameters",
219
+ "type": "event"
220
+ },
221
+ {
222
+ "anonymous": false,
223
+ "inputs": [
224
+ {
225
+ "indexed": false,
226
+ "name": "mid_fee",
227
+ "type": "uint256"
228
+ },
229
+ {
230
+ "indexed": false,
231
+ "name": "out_fee",
232
+ "type": "uint256"
233
+ },
234
+ {
235
+ "indexed": false,
236
+ "name": "fee_gamma",
237
+ "type": "uint256"
238
+ },
239
+ {
240
+ "indexed": false,
241
+ "name": "allowed_extra_profit",
242
+ "type": "uint256"
243
+ },
244
+ {
245
+ "indexed": false,
246
+ "name": "adjustment_step",
247
+ "type": "uint256"
248
+ },
249
+ {
250
+ "indexed": false,
251
+ "name": "ma_time",
252
+ "type": "uint256"
253
+ }
254
+ ],
255
+ "name": "NewParameters",
256
+ "type": "event"
257
+ },
258
+ {
259
+ "anonymous": false,
260
+ "inputs": [
261
+ {
262
+ "indexed": false,
263
+ "name": "initial_A",
264
+ "type": "uint256"
265
+ },
266
+ {
267
+ "indexed": false,
268
+ "name": "future_A",
269
+ "type": "uint256"
270
+ },
271
+ {
272
+ "indexed": false,
273
+ "name": "initial_gamma",
274
+ "type": "uint256"
275
+ },
276
+ {
277
+ "indexed": false,
278
+ "name": "future_gamma",
279
+ "type": "uint256"
280
+ },
281
+ {
282
+ "indexed": false,
283
+ "name": "initial_time",
284
+ "type": "uint256"
285
+ },
286
+ {
287
+ "indexed": false,
288
+ "name": "future_time",
289
+ "type": "uint256"
290
+ }
291
+ ],
292
+ "name": "RampAgamma",
293
+ "type": "event"
294
+ },
295
+ {
296
+ "anonymous": false,
297
+ "inputs": [
298
+ {
299
+ "indexed": false,
300
+ "name": "current_A",
301
+ "type": "uint256"
302
+ },
303
+ {
304
+ "indexed": false,
305
+ "name": "current_gamma",
306
+ "type": "uint256"
307
+ },
308
+ {
309
+ "indexed": false,
310
+ "name": "time",
311
+ "type": "uint256"
312
+ }
313
+ ],
314
+ "name": "StopRampA",
315
+ "type": "event"
316
+ },
317
+ {
318
+ "anonymous": false,
319
+ "inputs": [
320
+ {
321
+ "indexed": true,
322
+ "name": "admin",
323
+ "type": "address"
324
+ },
325
+ {
326
+ "indexed": false,
327
+ "name": "tokens",
328
+ "type": "uint256"
329
+ }
330
+ ],
331
+ "name": "ClaimAdminFee",
332
+ "type": "event"
333
+ },
334
+ {
335
+ "inputs": [
336
+ {
337
+ "name": "_name",
338
+ "type": "string"
339
+ },
340
+ {
341
+ "name": "_symbol",
342
+ "type": "string"
343
+ },
344
+ {
345
+ "name": "_coins",
346
+ "type": "address[3]"
347
+ },
348
+ {
349
+ "name": "_math",
350
+ "type": "address"
351
+ },
352
+ {
353
+ "name": "_weth",
354
+ "type": "address"
355
+ },
356
+ {
357
+ "name": "_salt",
358
+ "type": "bytes32"
359
+ },
360
+ {
361
+ "name": "packed_precisions",
362
+ "type": "uint256"
363
+ },
364
+ {
365
+ "name": "packed_A_gamma",
366
+ "type": "uint256"
367
+ },
368
+ {
369
+ "name": "packed_fee_params",
370
+ "type": "uint256"
371
+ },
372
+ {
373
+ "name": "packed_rebalancing_params",
374
+ "type": "uint256"
375
+ },
376
+ {
377
+ "name": "packed_prices",
378
+ "type": "uint256"
379
+ }
380
+ ],
381
+ "stateMutability": "nonpayable",
382
+ "type": "constructor"
383
+ },
384
+ {
385
+ "stateMutability": "payable",
386
+ "type": "fallback"
387
+ },
388
+ {
389
+ "inputs": [
390
+ {
391
+ "name": "i",
392
+ "type": "uint256"
393
+ },
394
+ {
395
+ "name": "j",
396
+ "type": "uint256"
397
+ },
398
+ {
399
+ "name": "dx",
400
+ "type": "uint256"
401
+ },
402
+ {
403
+ "name": "min_dy",
404
+ "type": "uint256"
405
+ }
406
+ ],
407
+ "name": "exchange",
408
+ "outputs": [
409
+ {
410
+ "name": "",
411
+ "type": "uint256"
412
+ }
413
+ ],
414
+ "stateMutability": "payable",
415
+ "type": "function"
416
+ },
417
+ {
418
+ "inputs": [
419
+ {
420
+ "name": "i",
421
+ "type": "uint256"
422
+ },
423
+ {
424
+ "name": "j",
425
+ "type": "uint256"
426
+ },
427
+ {
428
+ "name": "dx",
429
+ "type": "uint256"
430
+ },
431
+ {
432
+ "name": "min_dy",
433
+ "type": "uint256"
434
+ }
435
+ ],
436
+ "name": "exchange_underlying",
437
+ "outputs": [
438
+ {
439
+ "name": "",
440
+ "type": "uint256"
441
+ }
442
+ ],
443
+ "stateMutability": "payable",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "inputs": [
448
+ {
449
+ "name": "i",
450
+ "type": "uint256"
451
+ },
452
+ {
453
+ "name": "j",
454
+ "type": "uint256"
455
+ },
456
+ {
457
+ "name": "dx",
458
+ "type": "uint256"
459
+ },
460
+ {
461
+ "name": "min_dy",
462
+ "type": "uint256"
463
+ },
464
+ {
465
+ "name": "use_eth",
466
+ "type": "bool"
467
+ },
468
+ {
469
+ "name": "sender",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "name": "receiver",
474
+ "type": "address"
475
+ },
476
+ {
477
+ "name": "cb",
478
+ "type": "bytes32"
479
+ }
480
+ ],
481
+ "name": "exchange_extended",
482
+ "outputs": [
483
+ {
484
+ "name": "",
485
+ "type": "uint256"
486
+ }
487
+ ],
488
+ "stateMutability": "nonpayable",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ {
494
+ "name": "amounts",
495
+ "type": "uint256[3]"
496
+ },
497
+ {
498
+ "name": "min_mint_amount",
499
+ "type": "uint256"
500
+ },
501
+ {
502
+ "name": "use_eth",
503
+ "type": "bool"
504
+ }
505
+ ],
506
+ "name": "add_liquidity",
507
+ "outputs": [
508
+ {
509
+ "name": "",
510
+ "type": "uint256"
511
+ }
512
+ ],
513
+ "stateMutability": "payable",
514
+ "type": "function"
515
+ },
516
+ {
517
+ "inputs": [
518
+ {
519
+ "name": "_amount",
520
+ "type": "uint256"
521
+ },
522
+ {
523
+ "name": "min_amounts",
524
+ "type": "uint256[3]"
525
+ },
526
+ {
527
+ "name": "use_eth",
528
+ "type": "bool"
529
+ }
530
+ ],
531
+ "name": "remove_liquidity",
532
+ "outputs": [
533
+ {
534
+ "name": "",
535
+ "type": "uint256[3]"
536
+ }
537
+ ],
538
+ "stateMutability": "nonpayable",
539
+ "type": "function"
540
+ },
541
+ {
542
+ "inputs": [
543
+ {
544
+ "name": "token_amount",
545
+ "type": "uint256"
546
+ },
547
+ {
548
+ "name": "i",
549
+ "type": "uint256"
550
+ },
551
+ {
552
+ "name": "min_amount",
553
+ "type": "uint256"
554
+ },
555
+ {
556
+ "name": "use_eth",
557
+ "type": "bool"
558
+ }
559
+ ],
560
+ "name": "remove_liquidity_one_coin",
561
+ "outputs": [
562
+ {
563
+ "name": "",
564
+ "type": "uint256"
565
+ }
566
+ ],
567
+ "stateMutability": "nonpayable",
568
+ "type": "function"
569
+ },
570
+ {
571
+ "inputs": [],
572
+ "name": "claim_admin_fees",
573
+ "outputs": [],
574
+ "stateMutability": "nonpayable",
575
+ "type": "function"
576
+ },
577
+ {
578
+ "inputs": [
579
+ {
580
+ "name": "_from",
581
+ "type": "address"
582
+ },
583
+ {
584
+ "name": "_to",
585
+ "type": "address"
586
+ },
587
+ {
588
+ "name": "_value",
589
+ "type": "uint256"
590
+ }
591
+ ],
592
+ "name": "transferFrom",
593
+ "outputs": [
594
+ {
595
+ "name": "",
596
+ "type": "bool"
597
+ }
598
+ ],
599
+ "stateMutability": "nonpayable",
600
+ "type": "function"
601
+ },
602
+ {
603
+ "inputs": [
604
+ {
605
+ "name": "_to",
606
+ "type": "address"
607
+ },
608
+ {
609
+ "name": "_value",
610
+ "type": "uint256"
611
+ }
612
+ ],
613
+ "name": "transfer",
614
+ "outputs": [
615
+ {
616
+ "name": "",
617
+ "type": "bool"
618
+ }
619
+ ],
620
+ "stateMutability": "nonpayable",
621
+ "type": "function"
622
+ },
623
+ {
624
+ "inputs": [
625
+ {
626
+ "name": "_spender",
627
+ "type": "address"
628
+ },
629
+ {
630
+ "name": "_value",
631
+ "type": "uint256"
632
+ }
633
+ ],
634
+ "name": "approve",
635
+ "outputs": [
636
+ {
637
+ "name": "",
638
+ "type": "bool"
639
+ }
640
+ ],
641
+ "stateMutability": "nonpayable",
642
+ "type": "function"
643
+ },
644
+ {
645
+ "inputs": [
646
+ {
647
+ "name": "_spender",
648
+ "type": "address"
649
+ },
650
+ {
651
+ "name": "_add_value",
652
+ "type": "uint256"
653
+ }
654
+ ],
655
+ "name": "increaseAllowance",
656
+ "outputs": [
657
+ {
658
+ "name": "",
659
+ "type": "bool"
660
+ }
661
+ ],
662
+ "stateMutability": "nonpayable",
663
+ "type": "function"
664
+ },
665
+ {
666
+ "inputs": [
667
+ {
668
+ "name": "_spender",
669
+ "type": "address"
670
+ },
671
+ {
672
+ "name": "_sub_value",
673
+ "type": "uint256"
674
+ }
675
+ ],
676
+ "name": "decreaseAllowance",
677
+ "outputs": [
678
+ {
679
+ "name": "",
680
+ "type": "bool"
681
+ }
682
+ ],
683
+ "stateMutability": "nonpayable",
684
+ "type": "function"
685
+ },
686
+ {
687
+ "inputs": [
688
+ {
689
+ "name": "_owner",
690
+ "type": "address"
691
+ },
692
+ {
693
+ "name": "_spender",
694
+ "type": "address"
695
+ },
696
+ {
697
+ "name": "_value",
698
+ "type": "uint256"
699
+ },
700
+ {
701
+ "name": "_deadline",
702
+ "type": "uint256"
703
+ },
704
+ {
705
+ "name": "_v",
706
+ "type": "uint8"
707
+ },
708
+ {
709
+ "name": "_r",
710
+ "type": "bytes32"
711
+ },
712
+ {
713
+ "name": "_s",
714
+ "type": "bytes32"
715
+ }
716
+ ],
717
+ "name": "permit",
718
+ "outputs": [
719
+ {
720
+ "name": "",
721
+ "type": "bool"
722
+ }
723
+ ],
724
+ "stateMutability": "nonpayable",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [],
729
+ "name": "fee_receiver",
730
+ "outputs": [
731
+ {
732
+ "name": "",
733
+ "type": "address"
734
+ }
735
+ ],
736
+ "stateMutability": "view",
737
+ "type": "function"
738
+ },
739
+ {
740
+ "inputs": [
741
+ {
742
+ "name": "amounts",
743
+ "type": "uint256[3]"
744
+ },
745
+ {
746
+ "name": "deposit",
747
+ "type": "bool"
748
+ }
749
+ ],
750
+ "name": "calc_token_amount",
751
+ "outputs": [
752
+ {
753
+ "name": "",
754
+ "type": "uint256"
755
+ }
756
+ ],
757
+ "stateMutability": "view",
758
+ "type": "function"
759
+ },
760
+ {
761
+ "inputs": [
762
+ {
763
+ "name": "i",
764
+ "type": "uint256"
765
+ },
766
+ {
767
+ "name": "j",
768
+ "type": "uint256"
769
+ },
770
+ {
771
+ "name": "dx",
772
+ "type": "uint256"
773
+ }
774
+ ],
775
+ "name": "get_dy",
776
+ "outputs": [
777
+ {
778
+ "name": "",
779
+ "type": "uint256"
780
+ }
781
+ ],
782
+ "stateMutability": "view",
783
+ "type": "function"
784
+ },
785
+ {
786
+ "inputs": [
787
+ {
788
+ "name": "i",
789
+ "type": "uint256"
790
+ },
791
+ {
792
+ "name": "j",
793
+ "type": "uint256"
794
+ },
795
+ {
796
+ "name": "dy",
797
+ "type": "uint256"
798
+ }
799
+ ],
800
+ "name": "get_dx",
801
+ "outputs": [
802
+ {
803
+ "name": "",
804
+ "type": "uint256"
805
+ }
806
+ ],
807
+ "stateMutability": "view",
808
+ "type": "function"
809
+ },
810
+ {
811
+ "inputs": [],
812
+ "name": "lp_price",
813
+ "outputs": [
814
+ {
815
+ "name": "",
816
+ "type": "uint256"
817
+ }
818
+ ],
819
+ "stateMutability": "view",
820
+ "type": "function"
821
+ },
822
+ {
823
+ "inputs": [],
824
+ "name": "get_virtual_price",
825
+ "outputs": [
826
+ {
827
+ "name": "",
828
+ "type": "uint256"
829
+ }
830
+ ],
831
+ "stateMutability": "view",
832
+ "type": "function"
833
+ },
834
+ {
835
+ "inputs": [
836
+ {
837
+ "name": "k",
838
+ "type": "uint256"
839
+ }
840
+ ],
841
+ "name": "price_oracle",
842
+ "outputs": [
843
+ {
844
+ "name": "",
845
+ "type": "uint256"
846
+ }
847
+ ],
848
+ "stateMutability": "view",
849
+ "type": "function"
850
+ },
851
+ {
852
+ "inputs": [
853
+ {
854
+ "name": "k",
855
+ "type": "uint256"
856
+ }
857
+ ],
858
+ "name": "last_prices",
859
+ "outputs": [
860
+ {
861
+ "name": "",
862
+ "type": "uint256"
863
+ }
864
+ ],
865
+ "stateMutability": "view",
866
+ "type": "function"
867
+ },
868
+ {
869
+ "inputs": [
870
+ {
871
+ "name": "k",
872
+ "type": "uint256"
873
+ }
874
+ ],
875
+ "name": "price_scale",
876
+ "outputs": [
877
+ {
878
+ "name": "",
879
+ "type": "uint256"
880
+ }
881
+ ],
882
+ "stateMutability": "view",
883
+ "type": "function"
884
+ },
885
+ {
886
+ "inputs": [],
887
+ "name": "fee",
888
+ "outputs": [
889
+ {
890
+ "name": "",
891
+ "type": "uint256"
892
+ }
893
+ ],
894
+ "stateMutability": "view",
895
+ "type": "function"
896
+ },
897
+ {
898
+ "inputs": [
899
+ {
900
+ "name": "token_amount",
901
+ "type": "uint256"
902
+ },
903
+ {
904
+ "name": "i",
905
+ "type": "uint256"
906
+ }
907
+ ],
908
+ "name": "calc_withdraw_one_coin",
909
+ "outputs": [
910
+ {
911
+ "name": "",
912
+ "type": "uint256"
913
+ }
914
+ ],
915
+ "stateMutability": "view",
916
+ "type": "function"
917
+ },
918
+ {
919
+ "inputs": [
920
+ {
921
+ "name": "amounts",
922
+ "type": "uint256[3]"
923
+ },
924
+ {
925
+ "name": "xp",
926
+ "type": "uint256[3]"
927
+ }
928
+ ],
929
+ "name": "calc_token_fee",
930
+ "outputs": [
931
+ {
932
+ "name": "",
933
+ "type": "uint256"
934
+ }
935
+ ],
936
+ "stateMutability": "view",
937
+ "type": "function"
938
+ },
939
+ {
940
+ "inputs": [],
941
+ "name": "A",
942
+ "outputs": [
943
+ {
944
+ "name": "",
945
+ "type": "uint256"
946
+ }
947
+ ],
948
+ "stateMutability": "view",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [],
953
+ "name": "gamma",
954
+ "outputs": [
955
+ {
956
+ "name": "",
957
+ "type": "uint256"
958
+ }
959
+ ],
960
+ "stateMutability": "view",
961
+ "type": "function"
962
+ },
963
+ {
964
+ "inputs": [],
965
+ "name": "mid_fee",
966
+ "outputs": [
967
+ {
968
+ "name": "",
969
+ "type": "uint256"
970
+ }
971
+ ],
972
+ "stateMutability": "view",
973
+ "type": "function"
974
+ },
975
+ {
976
+ "inputs": [],
977
+ "name": "out_fee",
978
+ "outputs": [
979
+ {
980
+ "name": "",
981
+ "type": "uint256"
982
+ }
983
+ ],
984
+ "stateMutability": "view",
985
+ "type": "function"
986
+ },
987
+ {
988
+ "inputs": [],
989
+ "name": "fee_gamma",
990
+ "outputs": [
991
+ {
992
+ "name": "",
993
+ "type": "uint256"
994
+ }
995
+ ],
996
+ "stateMutability": "view",
997
+ "type": "function"
998
+ },
999
+ {
1000
+ "inputs": [],
1001
+ "name": "allowed_extra_profit",
1002
+ "outputs": [
1003
+ {
1004
+ "name": "",
1005
+ "type": "uint256"
1006
+ }
1007
+ ],
1008
+ "stateMutability": "view",
1009
+ "type": "function"
1010
+ },
1011
+ {
1012
+ "inputs": [],
1013
+ "name": "adjustment_step",
1014
+ "outputs": [
1015
+ {
1016
+ "name": "",
1017
+ "type": "uint256"
1018
+ }
1019
+ ],
1020
+ "stateMutability": "view",
1021
+ "type": "function"
1022
+ },
1023
+ {
1024
+ "inputs": [],
1025
+ "name": "ma_time",
1026
+ "outputs": [
1027
+ {
1028
+ "name": "",
1029
+ "type": "uint256"
1030
+ }
1031
+ ],
1032
+ "stateMutability": "view",
1033
+ "type": "function"
1034
+ },
1035
+ {
1036
+ "inputs": [],
1037
+ "name": "precisions",
1038
+ "outputs": [
1039
+ {
1040
+ "name": "",
1041
+ "type": "uint256[3]"
1042
+ }
1043
+ ],
1044
+ "stateMutability": "view",
1045
+ "type": "function"
1046
+ },
1047
+ {
1048
+ "inputs": [
1049
+ {
1050
+ "name": "xp",
1051
+ "type": "uint256[3]"
1052
+ }
1053
+ ],
1054
+ "name": "fee_calc",
1055
+ "outputs": [
1056
+ {
1057
+ "name": "",
1058
+ "type": "uint256"
1059
+ }
1060
+ ],
1061
+ "stateMutability": "view",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [],
1066
+ "name": "DOMAIN_SEPARATOR",
1067
+ "outputs": [
1068
+ {
1069
+ "name": "",
1070
+ "type": "bytes32"
1071
+ }
1072
+ ],
1073
+ "stateMutability": "view",
1074
+ "type": "function"
1075
+ },
1076
+ {
1077
+ "inputs": [
1078
+ {
1079
+ "name": "future_A",
1080
+ "type": "uint256"
1081
+ },
1082
+ {
1083
+ "name": "future_gamma",
1084
+ "type": "uint256"
1085
+ },
1086
+ {
1087
+ "name": "future_time",
1088
+ "type": "uint256"
1089
+ }
1090
+ ],
1091
+ "name": "ramp_A_gamma",
1092
+ "outputs": [],
1093
+ "stateMutability": "nonpayable",
1094
+ "type": "function"
1095
+ },
1096
+ {
1097
+ "inputs": [],
1098
+ "name": "stop_ramp_A_gamma",
1099
+ "outputs": [],
1100
+ "stateMutability": "nonpayable",
1101
+ "type": "function"
1102
+ },
1103
+ {
1104
+ "inputs": [
1105
+ {
1106
+ "name": "_new_mid_fee",
1107
+ "type": "uint256"
1108
+ },
1109
+ {
1110
+ "name": "_new_out_fee",
1111
+ "type": "uint256"
1112
+ },
1113
+ {
1114
+ "name": "_new_fee_gamma",
1115
+ "type": "uint256"
1116
+ },
1117
+ {
1118
+ "name": "_new_allowed_extra_profit",
1119
+ "type": "uint256"
1120
+ },
1121
+ {
1122
+ "name": "_new_adjustment_step",
1123
+ "type": "uint256"
1124
+ },
1125
+ {
1126
+ "name": "_new_ma_time",
1127
+ "type": "uint256"
1128
+ }
1129
+ ],
1130
+ "name": "commit_new_parameters",
1131
+ "outputs": [],
1132
+ "stateMutability": "nonpayable",
1133
+ "type": "function"
1134
+ },
1135
+ {
1136
+ "inputs": [],
1137
+ "name": "apply_new_parameters",
1138
+ "outputs": [],
1139
+ "stateMutability": "nonpayable",
1140
+ "type": "function"
1141
+ },
1142
+ {
1143
+ "inputs": [],
1144
+ "name": "revert_new_parameters",
1145
+ "outputs": [],
1146
+ "stateMutability": "nonpayable",
1147
+ "type": "function"
1148
+ },
1149
+ {
1150
+ "inputs": [],
1151
+ "name": "WETH20",
1152
+ "outputs": [
1153
+ {
1154
+ "name": "",
1155
+ "type": "address"
1156
+ }
1157
+ ],
1158
+ "stateMutability": "view",
1159
+ "type": "function"
1160
+ },
1161
+ {
1162
+ "inputs": [],
1163
+ "name": "MATH",
1164
+ "outputs": [
1165
+ {
1166
+ "name": "",
1167
+ "type": "address"
1168
+ }
1169
+ ],
1170
+ "stateMutability": "view",
1171
+ "type": "function"
1172
+ },
1173
+ {
1174
+ "inputs": [
1175
+ {
1176
+ "name": "arg0",
1177
+ "type": "uint256"
1178
+ }
1179
+ ],
1180
+ "name": "coins",
1181
+ "outputs": [
1182
+ {
1183
+ "name": "",
1184
+ "type": "address"
1185
+ }
1186
+ ],
1187
+ "stateMutability": "view",
1188
+ "type": "function"
1189
+ },
1190
+ {
1191
+ "inputs": [],
1192
+ "name": "factory",
1193
+ "outputs": [
1194
+ {
1195
+ "name": "",
1196
+ "type": "address"
1197
+ }
1198
+ ],
1199
+ "stateMutability": "view",
1200
+ "type": "function"
1201
+ },
1202
+ {
1203
+ "inputs": [],
1204
+ "name": "last_prices_timestamp",
1205
+ "outputs": [
1206
+ {
1207
+ "name": "",
1208
+ "type": "uint256"
1209
+ }
1210
+ ],
1211
+ "stateMutability": "view",
1212
+ "type": "function"
1213
+ },
1214
+ {
1215
+ "inputs": [],
1216
+ "name": "initial_A_gamma",
1217
+ "outputs": [
1218
+ {
1219
+ "name": "",
1220
+ "type": "uint256"
1221
+ }
1222
+ ],
1223
+ "stateMutability": "view",
1224
+ "type": "function"
1225
+ },
1226
+ {
1227
+ "inputs": [],
1228
+ "name": "initial_A_gamma_time",
1229
+ "outputs": [
1230
+ {
1231
+ "name": "",
1232
+ "type": "uint256"
1233
+ }
1234
+ ],
1235
+ "stateMutability": "view",
1236
+ "type": "function"
1237
+ },
1238
+ {
1239
+ "inputs": [],
1240
+ "name": "future_A_gamma",
1241
+ "outputs": [
1242
+ {
1243
+ "name": "",
1244
+ "type": "uint256"
1245
+ }
1246
+ ],
1247
+ "stateMutability": "view",
1248
+ "type": "function"
1249
+ },
1250
+ {
1251
+ "inputs": [],
1252
+ "name": "future_A_gamma_time",
1253
+ "outputs": [
1254
+ {
1255
+ "name": "",
1256
+ "type": "uint256"
1257
+ }
1258
+ ],
1259
+ "stateMutability": "view",
1260
+ "type": "function"
1261
+ },
1262
+ {
1263
+ "inputs": [
1264
+ {
1265
+ "name": "arg0",
1266
+ "type": "uint256"
1267
+ }
1268
+ ],
1269
+ "name": "balances",
1270
+ "outputs": [
1271
+ {
1272
+ "name": "",
1273
+ "type": "uint256"
1274
+ }
1275
+ ],
1276
+ "stateMutability": "view",
1277
+ "type": "function"
1278
+ },
1279
+ {
1280
+ "inputs": [],
1281
+ "name": "D",
1282
+ "outputs": [
1283
+ {
1284
+ "name": "",
1285
+ "type": "uint256"
1286
+ }
1287
+ ],
1288
+ "stateMutability": "view",
1289
+ "type": "function"
1290
+ },
1291
+ {
1292
+ "inputs": [],
1293
+ "name": "xcp_profit",
1294
+ "outputs": [
1295
+ {
1296
+ "name": "",
1297
+ "type": "uint256"
1298
+ }
1299
+ ],
1300
+ "stateMutability": "view",
1301
+ "type": "function"
1302
+ },
1303
+ {
1304
+ "inputs": [],
1305
+ "name": "xcp_profit_a",
1306
+ "outputs": [
1307
+ {
1308
+ "name": "",
1309
+ "type": "uint256"
1310
+ }
1311
+ ],
1312
+ "stateMutability": "view",
1313
+ "type": "function"
1314
+ },
1315
+ {
1316
+ "inputs": [],
1317
+ "name": "virtual_price",
1318
+ "outputs": [
1319
+ {
1320
+ "name": "",
1321
+ "type": "uint256"
1322
+ }
1323
+ ],
1324
+ "stateMutability": "view",
1325
+ "type": "function"
1326
+ },
1327
+ {
1328
+ "inputs": [],
1329
+ "name": "packed_rebalancing_params",
1330
+ "outputs": [
1331
+ {
1332
+ "name": "",
1333
+ "type": "uint256"
1334
+ }
1335
+ ],
1336
+ "stateMutability": "view",
1337
+ "type": "function"
1338
+ },
1339
+ {
1340
+ "inputs": [],
1341
+ "name": "packed_fee_params",
1342
+ "outputs": [
1343
+ {
1344
+ "name": "",
1345
+ "type": "uint256"
1346
+ }
1347
+ ],
1348
+ "stateMutability": "view",
1349
+ "type": "function"
1350
+ },
1351
+ {
1352
+ "inputs": [],
1353
+ "name": "ADMIN_FEE",
1354
+ "outputs": [
1355
+ {
1356
+ "name": "",
1357
+ "type": "uint256"
1358
+ }
1359
+ ],
1360
+ "stateMutability": "view",
1361
+ "type": "function"
1362
+ },
1363
+ {
1364
+ "inputs": [],
1365
+ "name": "admin_actions_deadline",
1366
+ "outputs": [
1367
+ {
1368
+ "name": "",
1369
+ "type": "uint256"
1370
+ }
1371
+ ],
1372
+ "stateMutability": "view",
1373
+ "type": "function"
1374
+ },
1375
+ {
1376
+ "inputs": [],
1377
+ "name": "name",
1378
+ "outputs": [
1379
+ {
1380
+ "name": "",
1381
+ "type": "string"
1382
+ }
1383
+ ],
1384
+ "stateMutability": "view",
1385
+ "type": "function"
1386
+ },
1387
+ {
1388
+ "inputs": [],
1389
+ "name": "symbol",
1390
+ "outputs": [
1391
+ {
1392
+ "name": "",
1393
+ "type": "string"
1394
+ }
1395
+ ],
1396
+ "stateMutability": "view",
1397
+ "type": "function"
1398
+ },
1399
+ {
1400
+ "inputs": [],
1401
+ "name": "decimals",
1402
+ "outputs": [
1403
+ {
1404
+ "name": "",
1405
+ "type": "uint8"
1406
+ }
1407
+ ],
1408
+ "stateMutability": "view",
1409
+ "type": "function"
1410
+ },
1411
+ {
1412
+ "inputs": [],
1413
+ "name": "version",
1414
+ "outputs": [
1415
+ {
1416
+ "name": "",
1417
+ "type": "string"
1418
+ }
1419
+ ],
1420
+ "stateMutability": "view",
1421
+ "type": "function"
1422
+ },
1423
+ {
1424
+ "inputs": [
1425
+ {
1426
+ "name": "arg0",
1427
+ "type": "address"
1428
+ }
1429
+ ],
1430
+ "name": "balanceOf",
1431
+ "outputs": [
1432
+ {
1433
+ "name": "",
1434
+ "type": "uint256"
1435
+ }
1436
+ ],
1437
+ "stateMutability": "view",
1438
+ "type": "function"
1439
+ },
1440
+ {
1441
+ "inputs": [
1442
+ {
1443
+ "name": "arg0",
1444
+ "type": "address"
1445
+ },
1446
+ {
1447
+ "name": "arg1",
1448
+ "type": "address"
1449
+ }
1450
+ ],
1451
+ "name": "allowance",
1452
+ "outputs": [
1453
+ {
1454
+ "name": "",
1455
+ "type": "uint256"
1456
+ }
1457
+ ],
1458
+ "stateMutability": "view",
1459
+ "type": "function"
1460
+ },
1461
+ {
1462
+ "inputs": [],
1463
+ "name": "totalSupply",
1464
+ "outputs": [
1465
+ {
1466
+ "name": "",
1467
+ "type": "uint256"
1468
+ }
1469
+ ],
1470
+ "stateMutability": "view",
1471
+ "type": "function"
1472
+ },
1473
+ {
1474
+ "inputs": [
1475
+ {
1476
+ "name": "arg0",
1477
+ "type": "address"
1478
+ }
1479
+ ],
1480
+ "name": "nonces",
1481
+ "outputs": [
1482
+ {
1483
+ "name": "",
1484
+ "type": "uint256"
1485
+ }
1486
+ ],
1487
+ "stateMutability": "view",
1488
+ "type": "function"
1489
+ },
1490
+ {
1491
+ "inputs": [],
1492
+ "name": "salt",
1493
+ "outputs": [
1494
+ {
1495
+ "name": "",
1496
+ "type": "bytes32"
1497
+ }
1498
+ ],
1499
+ "stateMutability": "view",
1500
+ "type": "function"
1501
+ }
1502
+ ]