@curvefi/api 2.68.6 → 2.68.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1853 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": false,
7
+ "name": "views",
8
+ "type": "address"
9
+ },
10
+ {
11
+ "indexed": false,
12
+ "name": "math",
13
+ "type": "address"
14
+ }
15
+ ],
16
+ "name": "SetPeriphery",
17
+ "type": "event"
18
+ },
19
+ {
20
+ "anonymous": false,
21
+ "inputs": [
22
+ {
23
+ "indexed": true,
24
+ "name": "sender",
25
+ "type": "address"
26
+ },
27
+ {
28
+ "indexed": true,
29
+ "name": "receiver",
30
+ "type": "address"
31
+ },
32
+ {
33
+ "indexed": false,
34
+ "name": "value",
35
+ "type": "uint256"
36
+ }
37
+ ],
38
+ "name": "Transfer",
39
+ "type": "event"
40
+ },
41
+ {
42
+ "anonymous": false,
43
+ "inputs": [
44
+ {
45
+ "indexed": true,
46
+ "name": "owner",
47
+ "type": "address"
48
+ },
49
+ {
50
+ "indexed": true,
51
+ "name": "spender",
52
+ "type": "address"
53
+ },
54
+ {
55
+ "indexed": false,
56
+ "name": "value",
57
+ "type": "uint256"
58
+ }
59
+ ],
60
+ "name": "Approval",
61
+ "type": "event"
62
+ },
63
+ {
64
+ "anonymous": false,
65
+ "inputs": [
66
+ {
67
+ "indexed": true,
68
+ "name": "buyer",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "indexed": false,
73
+ "name": "sold_id",
74
+ "type": "uint256"
75
+ },
76
+ {
77
+ "indexed": false,
78
+ "name": "tokens_sold",
79
+ "type": "uint256"
80
+ },
81
+ {
82
+ "indexed": false,
83
+ "name": "bought_id",
84
+ "type": "uint256"
85
+ },
86
+ {
87
+ "indexed": false,
88
+ "name": "tokens_bought",
89
+ "type": "uint256"
90
+ },
91
+ {
92
+ "indexed": false,
93
+ "name": "fee",
94
+ "type": "uint256"
95
+ },
96
+ {
97
+ "indexed": false,
98
+ "name": "price_scale",
99
+ "type": "uint256"
100
+ }
101
+ ],
102
+ "name": "TokenExchange",
103
+ "type": "event"
104
+ },
105
+ {
106
+ "anonymous": false,
107
+ "inputs": [
108
+ {
109
+ "indexed": true,
110
+ "name": "provider",
111
+ "type": "address"
112
+ },
113
+ {
114
+ "indexed": true,
115
+ "name": "receiver",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "indexed": false,
120
+ "name": "token_amounts",
121
+ "type": "uint256[2]"
122
+ },
123
+ {
124
+ "indexed": false,
125
+ "name": "fee",
126
+ "type": "uint256"
127
+ },
128
+ {
129
+ "indexed": false,
130
+ "name": "token_supply",
131
+ "type": "uint256"
132
+ },
133
+ {
134
+ "indexed": false,
135
+ "name": "price_scale",
136
+ "type": "uint256"
137
+ }
138
+ ],
139
+ "name": "AddLiquidity",
140
+ "type": "event"
141
+ },
142
+ {
143
+ "anonymous": false,
144
+ "inputs": [
145
+ {
146
+ "indexed": true,
147
+ "name": "donor",
148
+ "type": "address"
149
+ },
150
+ {
151
+ "indexed": false,
152
+ "name": "token_amounts",
153
+ "type": "uint256[2]"
154
+ }
155
+ ],
156
+ "name": "Donation",
157
+ "type": "event"
158
+ },
159
+ {
160
+ "anonymous": false,
161
+ "inputs": [
162
+ {
163
+ "indexed": true,
164
+ "name": "provider",
165
+ "type": "address"
166
+ },
167
+ {
168
+ "indexed": false,
169
+ "name": "token_amounts",
170
+ "type": "uint256[2]"
171
+ },
172
+ {
173
+ "indexed": false,
174
+ "name": "token_supply",
175
+ "type": "uint256"
176
+ }
177
+ ],
178
+ "name": "RemoveLiquidity",
179
+ "type": "event"
180
+ },
181
+ {
182
+ "anonymous": false,
183
+ "inputs": [
184
+ {
185
+ "indexed": true,
186
+ "name": "provider",
187
+ "type": "address"
188
+ },
189
+ {
190
+ "indexed": false,
191
+ "name": "token_amount",
192
+ "type": "uint256"
193
+ },
194
+ {
195
+ "indexed": false,
196
+ "name": "coin_index",
197
+ "type": "uint256"
198
+ },
199
+ {
200
+ "indexed": false,
201
+ "name": "coin_amount",
202
+ "type": "uint256"
203
+ },
204
+ {
205
+ "indexed": false,
206
+ "name": "approx_fee",
207
+ "type": "uint256"
208
+ },
209
+ {
210
+ "indexed": false,
211
+ "name": "packed_price_scale",
212
+ "type": "uint256"
213
+ }
214
+ ],
215
+ "name": "RemoveLiquidityOne",
216
+ "type": "event"
217
+ },
218
+ {
219
+ "anonymous": false,
220
+ "inputs": [
221
+ {
222
+ "indexed": true,
223
+ "name": "provider",
224
+ "type": "address"
225
+ },
226
+ {
227
+ "indexed": false,
228
+ "name": "lp_token_amount",
229
+ "type": "uint256"
230
+ },
231
+ {
232
+ "indexed": false,
233
+ "name": "token_amounts",
234
+ "type": "uint256[2]"
235
+ },
236
+ {
237
+ "indexed": false,
238
+ "name": "approx_fee",
239
+ "type": "uint256"
240
+ },
241
+ {
242
+ "indexed": false,
243
+ "name": "price_scale",
244
+ "type": "uint256"
245
+ }
246
+ ],
247
+ "name": "RemoveLiquidityImbalance",
248
+ "type": "event"
249
+ },
250
+ {
251
+ "anonymous": false,
252
+ "inputs": [
253
+ {
254
+ "indexed": false,
255
+ "name": "mid_fee",
256
+ "type": "uint256"
257
+ },
258
+ {
259
+ "indexed": false,
260
+ "name": "out_fee",
261
+ "type": "uint256"
262
+ },
263
+ {
264
+ "indexed": false,
265
+ "name": "fee_gamma",
266
+ "type": "uint256"
267
+ },
268
+ {
269
+ "indexed": false,
270
+ "name": "allowed_extra_profit",
271
+ "type": "uint256"
272
+ },
273
+ {
274
+ "indexed": false,
275
+ "name": "adjustment_step",
276
+ "type": "uint256"
277
+ },
278
+ {
279
+ "indexed": false,
280
+ "name": "ma_time",
281
+ "type": "uint256"
282
+ }
283
+ ],
284
+ "name": "NewParameters",
285
+ "type": "event"
286
+ },
287
+ {
288
+ "anonymous": false,
289
+ "inputs": [
290
+ {
291
+ "indexed": false,
292
+ "name": "initial_A",
293
+ "type": "uint256"
294
+ },
295
+ {
296
+ "indexed": false,
297
+ "name": "future_A",
298
+ "type": "uint256"
299
+ },
300
+ {
301
+ "indexed": false,
302
+ "name": "initial_gamma",
303
+ "type": "uint256"
304
+ },
305
+ {
306
+ "indexed": false,
307
+ "name": "future_gamma",
308
+ "type": "uint256"
309
+ },
310
+ {
311
+ "indexed": false,
312
+ "name": "initial_time",
313
+ "type": "uint256"
314
+ },
315
+ {
316
+ "indexed": false,
317
+ "name": "future_time",
318
+ "type": "uint256"
319
+ }
320
+ ],
321
+ "name": "RampAgamma",
322
+ "type": "event"
323
+ },
324
+ {
325
+ "anonymous": false,
326
+ "inputs": [
327
+ {
328
+ "indexed": false,
329
+ "name": "current_A",
330
+ "type": "uint256"
331
+ },
332
+ {
333
+ "indexed": false,
334
+ "name": "current_gamma",
335
+ "type": "uint256"
336
+ },
337
+ {
338
+ "indexed": false,
339
+ "name": "time",
340
+ "type": "uint256"
341
+ }
342
+ ],
343
+ "name": "StopRampA",
344
+ "type": "event"
345
+ },
346
+ {
347
+ "anonymous": false,
348
+ "inputs": [
349
+ {
350
+ "indexed": true,
351
+ "name": "admin",
352
+ "type": "address"
353
+ },
354
+ {
355
+ "indexed": false,
356
+ "name": "tokens",
357
+ "type": "uint256[2]"
358
+ }
359
+ ],
360
+ "name": "ClaimAdminFee",
361
+ "type": "event"
362
+ },
363
+ {
364
+ "anonymous": false,
365
+ "inputs": [
366
+ {
367
+ "indexed": false,
368
+ "name": "duration",
369
+ "type": "uint256"
370
+ }
371
+ ],
372
+ "name": "SetDonationDuration",
373
+ "type": "event"
374
+ },
375
+ {
376
+ "anonymous": false,
377
+ "inputs": [
378
+ {
379
+ "indexed": false,
380
+ "name": "donation_protection_period",
381
+ "type": "uint256"
382
+ },
383
+ {
384
+ "indexed": false,
385
+ "name": "donation_protection_lp_threshold",
386
+ "type": "uint256"
387
+ },
388
+ {
389
+ "indexed": false,
390
+ "name": "donation_shares_max_ratio",
391
+ "type": "uint256"
392
+ }
393
+ ],
394
+ "name": "SetDonationProtection",
395
+ "type": "event"
396
+ },
397
+ {
398
+ "anonymous": false,
399
+ "inputs": [
400
+ {
401
+ "indexed": false,
402
+ "name": "admin_fee",
403
+ "type": "uint256"
404
+ }
405
+ ],
406
+ "name": "SetAdminFee",
407
+ "type": "event"
408
+ },
409
+ {
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
+ "name": "exchange",
429
+ "outputs": [
430
+ {
431
+ "name": "",
432
+ "type": "uint256"
433
+ }
434
+ ],
435
+ "stateMutability": "nonpayable",
436
+ "type": "function"
437
+ },
438
+ {
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
+ "name": "receiver",
458
+ "type": "address"
459
+ }
460
+ ],
461
+ "name": "exchange",
462
+ "outputs": [
463
+ {
464
+ "name": "",
465
+ "type": "uint256"
466
+ }
467
+ ],
468
+ "stateMutability": "nonpayable",
469
+ "type": "function"
470
+ },
471
+ {
472
+ "inputs": [
473
+ {
474
+ "name": "i",
475
+ "type": "uint256"
476
+ },
477
+ {
478
+ "name": "j",
479
+ "type": "uint256"
480
+ },
481
+ {
482
+ "name": "dx",
483
+ "type": "uint256"
484
+ },
485
+ {
486
+ "name": "min_dy",
487
+ "type": "uint256"
488
+ }
489
+ ],
490
+ "name": "exchange_received",
491
+ "outputs": [
492
+ {
493
+ "name": "",
494
+ "type": "uint256"
495
+ }
496
+ ],
497
+ "stateMutability": "nonpayable",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [
502
+ {
503
+ "name": "i",
504
+ "type": "uint256"
505
+ },
506
+ {
507
+ "name": "j",
508
+ "type": "uint256"
509
+ },
510
+ {
511
+ "name": "dx",
512
+ "type": "uint256"
513
+ },
514
+ {
515
+ "name": "min_dy",
516
+ "type": "uint256"
517
+ },
518
+ {
519
+ "name": "receiver",
520
+ "type": "address"
521
+ }
522
+ ],
523
+ "name": "exchange_received",
524
+ "outputs": [
525
+ {
526
+ "name": "",
527
+ "type": "uint256"
528
+ }
529
+ ],
530
+ "stateMutability": "nonpayable",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "name": "amounts",
537
+ "type": "uint256[2]"
538
+ },
539
+ {
540
+ "name": "min_mint_amount",
541
+ "type": "uint256"
542
+ }
543
+ ],
544
+ "name": "add_liquidity",
545
+ "outputs": [
546
+ {
547
+ "name": "",
548
+ "type": "uint256"
549
+ }
550
+ ],
551
+ "stateMutability": "nonpayable",
552
+ "type": "function"
553
+ },
554
+ {
555
+ "inputs": [
556
+ {
557
+ "name": "amounts",
558
+ "type": "uint256[2]"
559
+ },
560
+ {
561
+ "name": "min_mint_amount",
562
+ "type": "uint256"
563
+ },
564
+ {
565
+ "name": "receiver",
566
+ "type": "address"
567
+ }
568
+ ],
569
+ "name": "add_liquidity",
570
+ "outputs": [
571
+ {
572
+ "name": "",
573
+ "type": "uint256"
574
+ }
575
+ ],
576
+ "stateMutability": "nonpayable",
577
+ "type": "function"
578
+ },
579
+ {
580
+ "inputs": [
581
+ {
582
+ "name": "amounts",
583
+ "type": "uint256[2]"
584
+ },
585
+ {
586
+ "name": "min_mint_amount",
587
+ "type": "uint256"
588
+ },
589
+ {
590
+ "name": "receiver",
591
+ "type": "address"
592
+ },
593
+ {
594
+ "name": "donation",
595
+ "type": "bool"
596
+ }
597
+ ],
598
+ "name": "add_liquidity",
599
+ "outputs": [
600
+ {
601
+ "name": "",
602
+ "type": "uint256"
603
+ }
604
+ ],
605
+ "stateMutability": "nonpayable",
606
+ "type": "function"
607
+ },
608
+ {
609
+ "inputs": [
610
+ {
611
+ "name": "amount",
612
+ "type": "uint256"
613
+ },
614
+ {
615
+ "name": "min_amounts",
616
+ "type": "uint256[2]"
617
+ }
618
+ ],
619
+ "name": "remove_liquidity",
620
+ "outputs": [
621
+ {
622
+ "name": "",
623
+ "type": "uint256[2]"
624
+ }
625
+ ],
626
+ "stateMutability": "nonpayable",
627
+ "type": "function"
628
+ },
629
+ {
630
+ "inputs": [
631
+ {
632
+ "name": "amount",
633
+ "type": "uint256"
634
+ },
635
+ {
636
+ "name": "min_amounts",
637
+ "type": "uint256[2]"
638
+ },
639
+ {
640
+ "name": "receiver",
641
+ "type": "address"
642
+ }
643
+ ],
644
+ "name": "remove_liquidity",
645
+ "outputs": [
646
+ {
647
+ "name": "",
648
+ "type": "uint256[2]"
649
+ }
650
+ ],
651
+ "stateMutability": "nonpayable",
652
+ "type": "function"
653
+ },
654
+ {
655
+ "inputs": [
656
+ {
657
+ "name": "token_amount",
658
+ "type": "uint256"
659
+ },
660
+ {
661
+ "name": "i",
662
+ "type": "uint256"
663
+ },
664
+ {
665
+ "name": "amount_i",
666
+ "type": "uint256"
667
+ },
668
+ {
669
+ "name": "min_amount_j",
670
+ "type": "uint256"
671
+ }
672
+ ],
673
+ "name": "remove_liquidity_fixed_out",
674
+ "outputs": [
675
+ {
676
+ "name": "",
677
+ "type": "uint256"
678
+ }
679
+ ],
680
+ "stateMutability": "nonpayable",
681
+ "type": "function"
682
+ },
683
+ {
684
+ "inputs": [
685
+ {
686
+ "name": "token_amount",
687
+ "type": "uint256"
688
+ },
689
+ {
690
+ "name": "i",
691
+ "type": "uint256"
692
+ },
693
+ {
694
+ "name": "amount_i",
695
+ "type": "uint256"
696
+ },
697
+ {
698
+ "name": "min_amount_j",
699
+ "type": "uint256"
700
+ },
701
+ {
702
+ "name": "receiver",
703
+ "type": "address"
704
+ }
705
+ ],
706
+ "name": "remove_liquidity_fixed_out",
707
+ "outputs": [
708
+ {
709
+ "name": "",
710
+ "type": "uint256"
711
+ }
712
+ ],
713
+ "stateMutability": "nonpayable",
714
+ "type": "function"
715
+ },
716
+ {
717
+ "inputs": [
718
+ {
719
+ "name": "lp_token_amount",
720
+ "type": "uint256"
721
+ },
722
+ {
723
+ "name": "i",
724
+ "type": "uint256"
725
+ },
726
+ {
727
+ "name": "min_amount",
728
+ "type": "uint256"
729
+ }
730
+ ],
731
+ "name": "remove_liquidity_one_coin",
732
+ "outputs": [
733
+ {
734
+ "name": "",
735
+ "type": "uint256"
736
+ }
737
+ ],
738
+ "stateMutability": "nonpayable",
739
+ "type": "function"
740
+ },
741
+ {
742
+ "inputs": [
743
+ {
744
+ "name": "lp_token_amount",
745
+ "type": "uint256"
746
+ },
747
+ {
748
+ "name": "i",
749
+ "type": "uint256"
750
+ },
751
+ {
752
+ "name": "min_amount",
753
+ "type": "uint256"
754
+ },
755
+ {
756
+ "name": "receiver",
757
+ "type": "address"
758
+ }
759
+ ],
760
+ "name": "remove_liquidity_one_coin",
761
+ "outputs": [
762
+ {
763
+ "name": "",
764
+ "type": "uint256"
765
+ }
766
+ ],
767
+ "stateMutability": "nonpayable",
768
+ "type": "function"
769
+ },
770
+ {
771
+ "inputs": [],
772
+ "name": "user_supply",
773
+ "outputs": [
774
+ {
775
+ "name": "",
776
+ "type": "uint256"
777
+ }
778
+ ],
779
+ "stateMutability": "view",
780
+ "type": "function"
781
+ },
782
+ {
783
+ "inputs": [
784
+ {
785
+ "name": "lp_token_amount",
786
+ "type": "uint256"
787
+ },
788
+ {
789
+ "name": "i",
790
+ "type": "uint256"
791
+ },
792
+ {
793
+ "name": "amount_i",
794
+ "type": "uint256"
795
+ }
796
+ ],
797
+ "name": "calc_withdraw_fixed_out",
798
+ "outputs": [
799
+ {
800
+ "name": "",
801
+ "type": "uint256"
802
+ }
803
+ ],
804
+ "stateMutability": "view",
805
+ "type": "function"
806
+ },
807
+ {
808
+ "inputs": [
809
+ {
810
+ "name": "lp_token_amount",
811
+ "type": "uint256"
812
+ },
813
+ {
814
+ "name": "i",
815
+ "type": "uint256"
816
+ }
817
+ ],
818
+ "name": "calc_withdraw_one_coin",
819
+ "outputs": [
820
+ {
821
+ "name": "",
822
+ "type": "uint256"
823
+ }
824
+ ],
825
+ "stateMutability": "view",
826
+ "type": "function"
827
+ },
828
+ {
829
+ "inputs": [
830
+ {
831
+ "name": "_from",
832
+ "type": "address"
833
+ },
834
+ {
835
+ "name": "_to",
836
+ "type": "address"
837
+ },
838
+ {
839
+ "name": "_value",
840
+ "type": "uint256"
841
+ }
842
+ ],
843
+ "name": "transferFrom",
844
+ "outputs": [
845
+ {
846
+ "name": "",
847
+ "type": "bool"
848
+ }
849
+ ],
850
+ "stateMutability": "nonpayable",
851
+ "type": "function"
852
+ },
853
+ {
854
+ "inputs": [
855
+ {
856
+ "name": "_to",
857
+ "type": "address"
858
+ },
859
+ {
860
+ "name": "_value",
861
+ "type": "uint256"
862
+ }
863
+ ],
864
+ "name": "transfer",
865
+ "outputs": [
866
+ {
867
+ "name": "",
868
+ "type": "bool"
869
+ }
870
+ ],
871
+ "stateMutability": "nonpayable",
872
+ "type": "function"
873
+ },
874
+ {
875
+ "inputs": [
876
+ {
877
+ "name": "_spender",
878
+ "type": "address"
879
+ },
880
+ {
881
+ "name": "_value",
882
+ "type": "uint256"
883
+ }
884
+ ],
885
+ "name": "approve",
886
+ "outputs": [
887
+ {
888
+ "name": "",
889
+ "type": "bool"
890
+ }
891
+ ],
892
+ "stateMutability": "nonpayable",
893
+ "type": "function"
894
+ },
895
+ {
896
+ "inputs": [],
897
+ "name": "fee_receiver",
898
+ "outputs": [
899
+ {
900
+ "name": "",
901
+ "type": "address"
902
+ }
903
+ ],
904
+ "stateMutability": "view",
905
+ "type": "function"
906
+ },
907
+ {
908
+ "inputs": [],
909
+ "name": "admin",
910
+ "outputs": [
911
+ {
912
+ "name": "",
913
+ "type": "address"
914
+ }
915
+ ],
916
+ "stateMutability": "view",
917
+ "type": "function"
918
+ },
919
+ {
920
+ "inputs": [
921
+ {
922
+ "name": "amounts",
923
+ "type": "uint256[2]"
924
+ },
925
+ {
926
+ "name": "deposit",
927
+ "type": "bool"
928
+ }
929
+ ],
930
+ "name": "calc_token_amount",
931
+ "outputs": [
932
+ {
933
+ "name": "",
934
+ "type": "uint256"
935
+ }
936
+ ],
937
+ "stateMutability": "view",
938
+ "type": "function"
939
+ },
940
+ {
941
+ "inputs": [
942
+ {
943
+ "name": "i",
944
+ "type": "uint256"
945
+ },
946
+ {
947
+ "name": "j",
948
+ "type": "uint256"
949
+ },
950
+ {
951
+ "name": "dx",
952
+ "type": "uint256"
953
+ }
954
+ ],
955
+ "name": "get_dy",
956
+ "outputs": [
957
+ {
958
+ "name": "",
959
+ "type": "uint256"
960
+ }
961
+ ],
962
+ "stateMutability": "view",
963
+ "type": "function"
964
+ },
965
+ {
966
+ "inputs": [
967
+ {
968
+ "name": "i",
969
+ "type": "uint256"
970
+ },
971
+ {
972
+ "name": "j",
973
+ "type": "uint256"
974
+ },
975
+ {
976
+ "name": "dy",
977
+ "type": "uint256"
978
+ }
979
+ ],
980
+ "name": "get_dx",
981
+ "outputs": [
982
+ {
983
+ "name": "",
984
+ "type": "uint256"
985
+ }
986
+ ],
987
+ "stateMutability": "view",
988
+ "type": "function"
989
+ },
990
+ {
991
+ "inputs": [
992
+ {
993
+ "name": "i",
994
+ "type": "uint256"
995
+ },
996
+ {
997
+ "name": "j",
998
+ "type": "uint256"
999
+ },
1000
+ {
1001
+ "name": "dy",
1002
+ "type": "uint256"
1003
+ },
1004
+ {
1005
+ "name": "n_iter",
1006
+ "type": "uint256"
1007
+ }
1008
+ ],
1009
+ "name": "get_dx",
1010
+ "outputs": [
1011
+ {
1012
+ "name": "",
1013
+ "type": "uint256"
1014
+ }
1015
+ ],
1016
+ "stateMutability": "view",
1017
+ "type": "function"
1018
+ },
1019
+ {
1020
+ "inputs": [],
1021
+ "name": "lp_price",
1022
+ "outputs": [
1023
+ {
1024
+ "name": "",
1025
+ "type": "uint256"
1026
+ }
1027
+ ],
1028
+ "stateMutability": "view",
1029
+ "type": "function"
1030
+ },
1031
+ {
1032
+ "inputs": [],
1033
+ "name": "get_virtual_price",
1034
+ "outputs": [
1035
+ {
1036
+ "name": "",
1037
+ "type": "uint256"
1038
+ }
1039
+ ],
1040
+ "stateMutability": "view",
1041
+ "type": "function"
1042
+ },
1043
+ {
1044
+ "inputs": [],
1045
+ "name": "price_oracle",
1046
+ "outputs": [
1047
+ {
1048
+ "name": "",
1049
+ "type": "uint256"
1050
+ }
1051
+ ],
1052
+ "stateMutability": "view",
1053
+ "type": "function"
1054
+ },
1055
+ {
1056
+ "inputs": [],
1057
+ "name": "price_scale",
1058
+ "outputs": [
1059
+ {
1060
+ "name": "",
1061
+ "type": "uint256"
1062
+ }
1063
+ ],
1064
+ "stateMutability": "view",
1065
+ "type": "function"
1066
+ },
1067
+ {
1068
+ "inputs": [],
1069
+ "name": "fee",
1070
+ "outputs": [
1071
+ {
1072
+ "name": "",
1073
+ "type": "uint256"
1074
+ }
1075
+ ],
1076
+ "stateMutability": "view",
1077
+ "type": "function"
1078
+ },
1079
+ {
1080
+ "inputs": [
1081
+ {
1082
+ "name": "amounts",
1083
+ "type": "uint256[2]"
1084
+ },
1085
+ {
1086
+ "name": "xp",
1087
+ "type": "uint256[2]"
1088
+ }
1089
+ ],
1090
+ "name": "calc_token_fee",
1091
+ "outputs": [
1092
+ {
1093
+ "name": "",
1094
+ "type": "uint256"
1095
+ }
1096
+ ],
1097
+ "stateMutability": "view",
1098
+ "type": "function"
1099
+ },
1100
+ {
1101
+ "inputs": [
1102
+ {
1103
+ "name": "amounts",
1104
+ "type": "uint256[2]"
1105
+ },
1106
+ {
1107
+ "name": "xp",
1108
+ "type": "uint256[2]"
1109
+ },
1110
+ {
1111
+ "name": "donation",
1112
+ "type": "bool"
1113
+ }
1114
+ ],
1115
+ "name": "calc_token_fee",
1116
+ "outputs": [
1117
+ {
1118
+ "name": "",
1119
+ "type": "uint256"
1120
+ }
1121
+ ],
1122
+ "stateMutability": "view",
1123
+ "type": "function"
1124
+ },
1125
+ {
1126
+ "inputs": [
1127
+ {
1128
+ "name": "amounts",
1129
+ "type": "uint256[2]"
1130
+ },
1131
+ {
1132
+ "name": "xp",
1133
+ "type": "uint256[2]"
1134
+ },
1135
+ {
1136
+ "name": "donation",
1137
+ "type": "bool"
1138
+ },
1139
+ {
1140
+ "name": "deposit",
1141
+ "type": "bool"
1142
+ }
1143
+ ],
1144
+ "name": "calc_token_fee",
1145
+ "outputs": [
1146
+ {
1147
+ "name": "",
1148
+ "type": "uint256"
1149
+ }
1150
+ ],
1151
+ "stateMutability": "view",
1152
+ "type": "function"
1153
+ },
1154
+ {
1155
+ "inputs": [],
1156
+ "name": "A",
1157
+ "outputs": [
1158
+ {
1159
+ "name": "",
1160
+ "type": "uint256"
1161
+ }
1162
+ ],
1163
+ "stateMutability": "view",
1164
+ "type": "function"
1165
+ },
1166
+ {
1167
+ "inputs": [],
1168
+ "name": "gamma",
1169
+ "outputs": [
1170
+ {
1171
+ "name": "",
1172
+ "type": "uint256"
1173
+ }
1174
+ ],
1175
+ "stateMutability": "view",
1176
+ "type": "function"
1177
+ },
1178
+ {
1179
+ "inputs": [],
1180
+ "name": "mid_fee",
1181
+ "outputs": [
1182
+ {
1183
+ "name": "",
1184
+ "type": "uint256"
1185
+ }
1186
+ ],
1187
+ "stateMutability": "view",
1188
+ "type": "function"
1189
+ },
1190
+ {
1191
+ "inputs": [],
1192
+ "name": "out_fee",
1193
+ "outputs": [
1194
+ {
1195
+ "name": "",
1196
+ "type": "uint256"
1197
+ }
1198
+ ],
1199
+ "stateMutability": "view",
1200
+ "type": "function"
1201
+ },
1202
+ {
1203
+ "inputs": [],
1204
+ "name": "fee_gamma",
1205
+ "outputs": [
1206
+ {
1207
+ "name": "",
1208
+ "type": "uint256"
1209
+ }
1210
+ ],
1211
+ "stateMutability": "view",
1212
+ "type": "function"
1213
+ },
1214
+ {
1215
+ "inputs": [],
1216
+ "name": "allowed_extra_profit",
1217
+ "outputs": [
1218
+ {
1219
+ "name": "",
1220
+ "type": "uint256"
1221
+ }
1222
+ ],
1223
+ "stateMutability": "view",
1224
+ "type": "function"
1225
+ },
1226
+ {
1227
+ "inputs": [],
1228
+ "name": "adjustment_step",
1229
+ "outputs": [
1230
+ {
1231
+ "name": "",
1232
+ "type": "uint256"
1233
+ }
1234
+ ],
1235
+ "stateMutability": "view",
1236
+ "type": "function"
1237
+ },
1238
+ {
1239
+ "inputs": [],
1240
+ "name": "ma_time",
1241
+ "outputs": [
1242
+ {
1243
+ "name": "",
1244
+ "type": "uint256"
1245
+ }
1246
+ ],
1247
+ "stateMutability": "view",
1248
+ "type": "function"
1249
+ },
1250
+ {
1251
+ "inputs": [],
1252
+ "name": "precisions",
1253
+ "outputs": [
1254
+ {
1255
+ "name": "",
1256
+ "type": "uint256[2]"
1257
+ }
1258
+ ],
1259
+ "stateMutability": "view",
1260
+ "type": "function"
1261
+ },
1262
+ {
1263
+ "inputs": [
1264
+ {
1265
+ "name": "xp",
1266
+ "type": "uint256[2]"
1267
+ }
1268
+ ],
1269
+ "name": "fee_calc",
1270
+ "outputs": [
1271
+ {
1272
+ "name": "",
1273
+ "type": "uint256"
1274
+ }
1275
+ ],
1276
+ "stateMutability": "view",
1277
+ "type": "function"
1278
+ },
1279
+ {
1280
+ "inputs": [
1281
+ {
1282
+ "name": "future_A",
1283
+ "type": "uint256"
1284
+ },
1285
+ {
1286
+ "name": "future_gamma",
1287
+ "type": "uint256"
1288
+ },
1289
+ {
1290
+ "name": "future_time",
1291
+ "type": "uint256"
1292
+ }
1293
+ ],
1294
+ "name": "ramp_A_gamma",
1295
+ "outputs": [],
1296
+ "stateMutability": "nonpayable",
1297
+ "type": "function"
1298
+ },
1299
+ {
1300
+ "inputs": [],
1301
+ "name": "stop_ramp_A_gamma",
1302
+ "outputs": [],
1303
+ "stateMutability": "nonpayable",
1304
+ "type": "function"
1305
+ },
1306
+ {
1307
+ "inputs": [
1308
+ {
1309
+ "name": "_new_mid_fee",
1310
+ "type": "uint256"
1311
+ },
1312
+ {
1313
+ "name": "_new_out_fee",
1314
+ "type": "uint256"
1315
+ },
1316
+ {
1317
+ "name": "_new_fee_gamma",
1318
+ "type": "uint256"
1319
+ },
1320
+ {
1321
+ "name": "_new_allowed_extra_profit",
1322
+ "type": "uint256"
1323
+ },
1324
+ {
1325
+ "name": "_new_adjustment_step",
1326
+ "type": "uint256"
1327
+ },
1328
+ {
1329
+ "name": "_new_ma_time",
1330
+ "type": "uint256"
1331
+ }
1332
+ ],
1333
+ "name": "apply_new_parameters",
1334
+ "outputs": [],
1335
+ "stateMutability": "nonpayable",
1336
+ "type": "function"
1337
+ },
1338
+ {
1339
+ "inputs": [
1340
+ {
1341
+ "name": "duration",
1342
+ "type": "uint256"
1343
+ }
1344
+ ],
1345
+ "name": "set_donation_duration",
1346
+ "outputs": [],
1347
+ "stateMutability": "nonpayable",
1348
+ "type": "function"
1349
+ },
1350
+ {
1351
+ "inputs": [
1352
+ {
1353
+ "name": "_period",
1354
+ "type": "uint256"
1355
+ },
1356
+ {
1357
+ "name": "_threshold",
1358
+ "type": "uint256"
1359
+ },
1360
+ {
1361
+ "name": "_max_shares_ratio",
1362
+ "type": "uint256"
1363
+ }
1364
+ ],
1365
+ "name": "set_donation_protection_params",
1366
+ "outputs": [],
1367
+ "stateMutability": "nonpayable",
1368
+ "type": "function"
1369
+ },
1370
+ {
1371
+ "inputs": [
1372
+ {
1373
+ "name": "admin_fee",
1374
+ "type": "uint256"
1375
+ }
1376
+ ],
1377
+ "name": "set_admin_fee",
1378
+ "outputs": [],
1379
+ "stateMutability": "nonpayable",
1380
+ "type": "function"
1381
+ },
1382
+ {
1383
+ "inputs": [
1384
+ {
1385
+ "name": "views",
1386
+ "type": "address"
1387
+ },
1388
+ {
1389
+ "name": "math",
1390
+ "type": "address"
1391
+ }
1392
+ ],
1393
+ "name": "set_periphery",
1394
+ "outputs": [],
1395
+ "stateMutability": "nonpayable",
1396
+ "type": "function"
1397
+ },
1398
+ {
1399
+ "inputs": [],
1400
+ "name": "MATH",
1401
+ "outputs": [
1402
+ {
1403
+ "name": "",
1404
+ "type": "address"
1405
+ }
1406
+ ],
1407
+ "stateMutability": "view",
1408
+ "type": "function"
1409
+ },
1410
+ {
1411
+ "inputs": [],
1412
+ "name": "VIEW",
1413
+ "outputs": [
1414
+ {
1415
+ "name": "",
1416
+ "type": "address"
1417
+ }
1418
+ ],
1419
+ "stateMutability": "view",
1420
+ "type": "function"
1421
+ },
1422
+ {
1423
+ "inputs": [
1424
+ {
1425
+ "name": "arg0",
1426
+ "type": "uint256"
1427
+ }
1428
+ ],
1429
+ "name": "coins",
1430
+ "outputs": [
1431
+ {
1432
+ "name": "",
1433
+ "type": "address"
1434
+ }
1435
+ ],
1436
+ "stateMutability": "view",
1437
+ "type": "function"
1438
+ },
1439
+ {
1440
+ "inputs": [],
1441
+ "name": "factory",
1442
+ "outputs": [
1443
+ {
1444
+ "name": "",
1445
+ "type": "address"
1446
+ }
1447
+ ],
1448
+ "stateMutability": "view",
1449
+ "type": "function"
1450
+ },
1451
+ {
1452
+ "inputs": [],
1453
+ "name": "last_prices",
1454
+ "outputs": [
1455
+ {
1456
+ "name": "",
1457
+ "type": "uint256"
1458
+ }
1459
+ ],
1460
+ "stateMutability": "view",
1461
+ "type": "function"
1462
+ },
1463
+ {
1464
+ "inputs": [],
1465
+ "name": "last_timestamp",
1466
+ "outputs": [
1467
+ {
1468
+ "name": "",
1469
+ "type": "uint256"
1470
+ }
1471
+ ],
1472
+ "stateMutability": "view",
1473
+ "type": "function"
1474
+ },
1475
+ {
1476
+ "inputs": [],
1477
+ "name": "initial_A_gamma",
1478
+ "outputs": [
1479
+ {
1480
+ "name": "",
1481
+ "type": "uint256"
1482
+ }
1483
+ ],
1484
+ "stateMutability": "view",
1485
+ "type": "function"
1486
+ },
1487
+ {
1488
+ "inputs": [],
1489
+ "name": "initial_A_gamma_time",
1490
+ "outputs": [
1491
+ {
1492
+ "name": "",
1493
+ "type": "uint256"
1494
+ }
1495
+ ],
1496
+ "stateMutability": "view",
1497
+ "type": "function"
1498
+ },
1499
+ {
1500
+ "inputs": [],
1501
+ "name": "future_A_gamma",
1502
+ "outputs": [
1503
+ {
1504
+ "name": "",
1505
+ "type": "uint256"
1506
+ }
1507
+ ],
1508
+ "stateMutability": "view",
1509
+ "type": "function"
1510
+ },
1511
+ {
1512
+ "inputs": [],
1513
+ "name": "future_A_gamma_time",
1514
+ "outputs": [
1515
+ {
1516
+ "name": "",
1517
+ "type": "uint256"
1518
+ }
1519
+ ],
1520
+ "stateMutability": "view",
1521
+ "type": "function"
1522
+ },
1523
+ {
1524
+ "inputs": [],
1525
+ "name": "donation_shares",
1526
+ "outputs": [
1527
+ {
1528
+ "name": "",
1529
+ "type": "uint256"
1530
+ }
1531
+ ],
1532
+ "stateMutability": "view",
1533
+ "type": "function"
1534
+ },
1535
+ {
1536
+ "inputs": [],
1537
+ "name": "donation_shares_max_ratio",
1538
+ "outputs": [
1539
+ {
1540
+ "name": "",
1541
+ "type": "uint256"
1542
+ }
1543
+ ],
1544
+ "stateMutability": "view",
1545
+ "type": "function"
1546
+ },
1547
+ {
1548
+ "inputs": [],
1549
+ "name": "donation_duration",
1550
+ "outputs": [
1551
+ {
1552
+ "name": "",
1553
+ "type": "uint256"
1554
+ }
1555
+ ],
1556
+ "stateMutability": "view",
1557
+ "type": "function"
1558
+ },
1559
+ {
1560
+ "inputs": [],
1561
+ "name": "last_donation_release_ts",
1562
+ "outputs": [
1563
+ {
1564
+ "name": "",
1565
+ "type": "uint256"
1566
+ }
1567
+ ],
1568
+ "stateMutability": "view",
1569
+ "type": "function"
1570
+ },
1571
+ {
1572
+ "inputs": [],
1573
+ "name": "donation_protection_expiry_ts",
1574
+ "outputs": [
1575
+ {
1576
+ "name": "",
1577
+ "type": "uint256"
1578
+ }
1579
+ ],
1580
+ "stateMutability": "view",
1581
+ "type": "function"
1582
+ },
1583
+ {
1584
+ "inputs": [],
1585
+ "name": "donation_protection_period",
1586
+ "outputs": [
1587
+ {
1588
+ "name": "",
1589
+ "type": "uint256"
1590
+ }
1591
+ ],
1592
+ "stateMutability": "view",
1593
+ "type": "function"
1594
+ },
1595
+ {
1596
+ "inputs": [],
1597
+ "name": "donation_protection_lp_threshold",
1598
+ "outputs": [
1599
+ {
1600
+ "name": "",
1601
+ "type": "uint256"
1602
+ }
1603
+ ],
1604
+ "stateMutability": "view",
1605
+ "type": "function"
1606
+ },
1607
+ {
1608
+ "inputs": [
1609
+ {
1610
+ "name": "arg0",
1611
+ "type": "uint256"
1612
+ }
1613
+ ],
1614
+ "name": "balances",
1615
+ "outputs": [
1616
+ {
1617
+ "name": "",
1618
+ "type": "uint256"
1619
+ }
1620
+ ],
1621
+ "stateMutability": "view",
1622
+ "type": "function"
1623
+ },
1624
+ {
1625
+ "inputs": [],
1626
+ "name": "D",
1627
+ "outputs": [
1628
+ {
1629
+ "name": "",
1630
+ "type": "uint256"
1631
+ }
1632
+ ],
1633
+ "stateMutability": "view",
1634
+ "type": "function"
1635
+ },
1636
+ {
1637
+ "inputs": [],
1638
+ "name": "xcp_profit",
1639
+ "outputs": [
1640
+ {
1641
+ "name": "",
1642
+ "type": "uint256"
1643
+ }
1644
+ ],
1645
+ "stateMutability": "view",
1646
+ "type": "function"
1647
+ },
1648
+ {
1649
+ "inputs": [],
1650
+ "name": "xcp_profit_a",
1651
+ "outputs": [
1652
+ {
1653
+ "name": "",
1654
+ "type": "uint256"
1655
+ }
1656
+ ],
1657
+ "stateMutability": "view",
1658
+ "type": "function"
1659
+ },
1660
+ {
1661
+ "inputs": [],
1662
+ "name": "virtual_price",
1663
+ "outputs": [
1664
+ {
1665
+ "name": "",
1666
+ "type": "uint256"
1667
+ }
1668
+ ],
1669
+ "stateMutability": "view",
1670
+ "type": "function"
1671
+ },
1672
+ {
1673
+ "inputs": [],
1674
+ "name": "packed_rebalancing_params",
1675
+ "outputs": [
1676
+ {
1677
+ "name": "",
1678
+ "type": "uint256"
1679
+ }
1680
+ ],
1681
+ "stateMutability": "view",
1682
+ "type": "function"
1683
+ },
1684
+ {
1685
+ "inputs": [],
1686
+ "name": "packed_fee_params",
1687
+ "outputs": [
1688
+ {
1689
+ "name": "",
1690
+ "type": "uint256"
1691
+ }
1692
+ ],
1693
+ "stateMutability": "view",
1694
+ "type": "function"
1695
+ },
1696
+ {
1697
+ "inputs": [],
1698
+ "name": "admin_fee",
1699
+ "outputs": [
1700
+ {
1701
+ "name": "",
1702
+ "type": "uint256"
1703
+ }
1704
+ ],
1705
+ "stateMutability": "view",
1706
+ "type": "function"
1707
+ },
1708
+ {
1709
+ "inputs": [],
1710
+ "name": "name",
1711
+ "outputs": [
1712
+ {
1713
+ "name": "",
1714
+ "type": "string"
1715
+ }
1716
+ ],
1717
+ "stateMutability": "view",
1718
+ "type": "function"
1719
+ },
1720
+ {
1721
+ "inputs": [],
1722
+ "name": "symbol",
1723
+ "outputs": [
1724
+ {
1725
+ "name": "",
1726
+ "type": "string"
1727
+ }
1728
+ ],
1729
+ "stateMutability": "view",
1730
+ "type": "function"
1731
+ },
1732
+ {
1733
+ "inputs": [],
1734
+ "name": "decimals",
1735
+ "outputs": [
1736
+ {
1737
+ "name": "",
1738
+ "type": "uint8"
1739
+ }
1740
+ ],
1741
+ "stateMutability": "view",
1742
+ "type": "function"
1743
+ },
1744
+ {
1745
+ "inputs": [],
1746
+ "name": "version",
1747
+ "outputs": [
1748
+ {
1749
+ "name": "",
1750
+ "type": "string"
1751
+ }
1752
+ ],
1753
+ "stateMutability": "view",
1754
+ "type": "function"
1755
+ },
1756
+ {
1757
+ "inputs": [
1758
+ {
1759
+ "name": "arg0",
1760
+ "type": "address"
1761
+ }
1762
+ ],
1763
+ "name": "balanceOf",
1764
+ "outputs": [
1765
+ {
1766
+ "name": "",
1767
+ "type": "uint256"
1768
+ }
1769
+ ],
1770
+ "stateMutability": "view",
1771
+ "type": "function"
1772
+ },
1773
+ {
1774
+ "inputs": [
1775
+ {
1776
+ "name": "arg0",
1777
+ "type": "address"
1778
+ },
1779
+ {
1780
+ "name": "arg1",
1781
+ "type": "address"
1782
+ }
1783
+ ],
1784
+ "name": "allowance",
1785
+ "outputs": [
1786
+ {
1787
+ "name": "",
1788
+ "type": "uint256"
1789
+ }
1790
+ ],
1791
+ "stateMutability": "view",
1792
+ "type": "function"
1793
+ },
1794
+ {
1795
+ "inputs": [],
1796
+ "name": "totalSupply",
1797
+ "outputs": [
1798
+ {
1799
+ "name": "",
1800
+ "type": "uint256"
1801
+ }
1802
+ ],
1803
+ "stateMutability": "view",
1804
+ "type": "function"
1805
+ },
1806
+ {
1807
+ "inputs": [
1808
+ {
1809
+ "name": "_name",
1810
+ "type": "string"
1811
+ },
1812
+ {
1813
+ "name": "_symbol",
1814
+ "type": "string"
1815
+ },
1816
+ {
1817
+ "name": "_coins",
1818
+ "type": "address[2]"
1819
+ },
1820
+ {
1821
+ "name": "_math",
1822
+ "type": "address"
1823
+ },
1824
+ {
1825
+ "name": "_salt",
1826
+ "type": "bytes32"
1827
+ },
1828
+ {
1829
+ "name": "packed_precisions",
1830
+ "type": "uint256"
1831
+ },
1832
+ {
1833
+ "name": "packed_gamma_A",
1834
+ "type": "uint256"
1835
+ },
1836
+ {
1837
+ "name": "packed_fee_params",
1838
+ "type": "uint256"
1839
+ },
1840
+ {
1841
+ "name": "packed_rebalancing_params",
1842
+ "type": "uint256"
1843
+ },
1844
+ {
1845
+ "name": "initial_price",
1846
+ "type": "uint256"
1847
+ }
1848
+ ],
1849
+ "outputs": [],
1850
+ "stateMutability": "nonpayable",
1851
+ "type": "constructor"
1852
+ }
1853
+ ]