@curvefi/api 2.4.1 → 2.5.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 (33) hide show
  1. package/lib/constants/abis/factory-v2/DepositZapFantom.json +164 -0
  2. package/lib/constants/abis/factory-v2/DepositZapMetaUsd2Fantom.json +197 -0
  3. package/lib/constants/abis/factory-v2/MetaUSDGeist.json +932 -0
  4. package/lib/constants/abis/fusdt/swap.json +1221 -0
  5. package/lib/constants/abis/fusdt/zap.json +215 -0
  6. package/lib/constants/abis/gauge_child.json +0 -100
  7. package/lib/constants/abis/gauge_rewards_only.json +649 -0
  8. package/lib/constants/abis/ren-fantom/swap.json +868 -0
  9. package/lib/constants/abis/tricrypto/swapNoZap.json +1250 -0
  10. package/lib/constants/aliases.d.ts +1 -0
  11. package/lib/constants/aliases.js +14 -2
  12. package/lib/constants/coins/fantom.d.ts +7 -0
  13. package/lib/constants/coins/fantom.js +36 -0
  14. package/lib/constants/pools/fantom.d.ts +4 -0
  15. package/lib/constants/pools/fantom.js +191 -0
  16. package/lib/constants/pools/index.d.ts +2 -1
  17. package/lib/constants/pools/index.js +3 -1
  18. package/lib/curve.js +31 -10
  19. package/lib/factory/common.js +19 -0
  20. package/lib/factory/constants.d.ts +11 -2
  21. package/lib/factory/constants.js +58 -3
  22. package/lib/factory/factory-api.js +4 -3
  23. package/lib/factory/factory-crypto.js +14 -10
  24. package/lib/factory/factory.js +3 -0
  25. package/lib/pools/PoolTemplate.d.ts +1 -2
  26. package/lib/pools/PoolTemplate.js +44 -166
  27. package/lib/pools/mixins/depositBonusMixins.js +52 -26
  28. package/lib/pools/mixins/withdrawBonusMixins.d.ts +7 -0
  29. package/lib/pools/mixins/withdrawBonusMixins.js +216 -0
  30. package/lib/pools/poolConstructor.js +20 -2
  31. package/lib/router.js +6 -6
  32. package/lib/utils.js +3 -0
  33. package/package.json +1 -1
@@ -0,0 +1,1250 @@
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[3]",
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[3]",
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": "CommitNewAdmin",
112
+ "inputs": [
113
+ {
114
+ "name": "deadline",
115
+ "type": "uint256",
116
+ "indexed": true
117
+ },
118
+ {
119
+ "name": "admin",
120
+ "type": "address",
121
+ "indexed": true
122
+ }
123
+ ],
124
+ "anonymous": false,
125
+ "type": "event"
126
+ },
127
+ {
128
+ "name": "NewAdmin",
129
+ "inputs": [
130
+ {
131
+ "name": "admin",
132
+ "type": "address",
133
+ "indexed": true
134
+ }
135
+ ],
136
+ "anonymous": false,
137
+ "type": "event"
138
+ },
139
+ {
140
+ "name": "CommitNewParameters",
141
+ "inputs": [
142
+ {
143
+ "name": "deadline",
144
+ "type": "uint256",
145
+ "indexed": true
146
+ },
147
+ {
148
+ "name": "admin_fee",
149
+ "type": "uint256",
150
+ "indexed": false
151
+ },
152
+ {
153
+ "name": "mid_fee",
154
+ "type": "uint256",
155
+ "indexed": false
156
+ },
157
+ {
158
+ "name": "out_fee",
159
+ "type": "uint256",
160
+ "indexed": false
161
+ },
162
+ {
163
+ "name": "fee_gamma",
164
+ "type": "uint256",
165
+ "indexed": false
166
+ },
167
+ {
168
+ "name": "allowed_extra_profit",
169
+ "type": "uint256",
170
+ "indexed": false
171
+ },
172
+ {
173
+ "name": "adjustment_step",
174
+ "type": "uint256",
175
+ "indexed": false
176
+ },
177
+ {
178
+ "name": "ma_half_time",
179
+ "type": "uint256",
180
+ "indexed": false
181
+ }
182
+ ],
183
+ "anonymous": false,
184
+ "type": "event"
185
+ },
186
+ {
187
+ "name": "NewParameters",
188
+ "inputs": [
189
+ {
190
+ "name": "admin_fee",
191
+ "type": "uint256",
192
+ "indexed": false
193
+ },
194
+ {
195
+ "name": "mid_fee",
196
+ "type": "uint256",
197
+ "indexed": false
198
+ },
199
+ {
200
+ "name": "out_fee",
201
+ "type": "uint256",
202
+ "indexed": false
203
+ },
204
+ {
205
+ "name": "fee_gamma",
206
+ "type": "uint256",
207
+ "indexed": false
208
+ },
209
+ {
210
+ "name": "allowed_extra_profit",
211
+ "type": "uint256",
212
+ "indexed": false
213
+ },
214
+ {
215
+ "name": "adjustment_step",
216
+ "type": "uint256",
217
+ "indexed": false
218
+ },
219
+ {
220
+ "name": "ma_half_time",
221
+ "type": "uint256",
222
+ "indexed": false
223
+ }
224
+ ],
225
+ "anonymous": false,
226
+ "type": "event"
227
+ },
228
+ {
229
+ "name": "RampAgamma",
230
+ "inputs": [
231
+ {
232
+ "name": "initial_A",
233
+ "type": "uint256",
234
+ "indexed": false
235
+ },
236
+ {
237
+ "name": "future_A",
238
+ "type": "uint256",
239
+ "indexed": false
240
+ },
241
+ {
242
+ "name": "initial_gamma",
243
+ "type": "uint256",
244
+ "indexed": false
245
+ },
246
+ {
247
+ "name": "future_gamma",
248
+ "type": "uint256",
249
+ "indexed": false
250
+ },
251
+ {
252
+ "name": "initial_time",
253
+ "type": "uint256",
254
+ "indexed": false
255
+ },
256
+ {
257
+ "name": "future_time",
258
+ "type": "uint256",
259
+ "indexed": false
260
+ }
261
+ ],
262
+ "anonymous": false,
263
+ "type": "event"
264
+ },
265
+ {
266
+ "name": "StopRampA",
267
+ "inputs": [
268
+ {
269
+ "name": "current_A",
270
+ "type": "uint256",
271
+ "indexed": false
272
+ },
273
+ {
274
+ "name": "current_gamma",
275
+ "type": "uint256",
276
+ "indexed": false
277
+ },
278
+ {
279
+ "name": "time",
280
+ "type": "uint256",
281
+ "indexed": false
282
+ }
283
+ ],
284
+ "anonymous": false,
285
+ "type": "event"
286
+ },
287
+ {
288
+ "name": "ClaimAdminFee",
289
+ "inputs": [
290
+ {
291
+ "name": "admin",
292
+ "type": "address",
293
+ "indexed": true
294
+ },
295
+ {
296
+ "name": "tokens",
297
+ "type": "uint256",
298
+ "indexed": false
299
+ }
300
+ ],
301
+ "anonymous": false,
302
+ "type": "event"
303
+ },
304
+ {
305
+ "stateMutability": "nonpayable",
306
+ "type": "constructor",
307
+ "inputs": [
308
+ {
309
+ "name": "owner",
310
+ "type": "address"
311
+ },
312
+ {
313
+ "name": "admin_fee_receiver",
314
+ "type": "address"
315
+ },
316
+ {
317
+ "name": "A",
318
+ "type": "uint256"
319
+ },
320
+ {
321
+ "name": "gamma",
322
+ "type": "uint256"
323
+ },
324
+ {
325
+ "name": "mid_fee",
326
+ "type": "uint256"
327
+ },
328
+ {
329
+ "name": "out_fee",
330
+ "type": "uint256"
331
+ },
332
+ {
333
+ "name": "allowed_extra_profit",
334
+ "type": "uint256"
335
+ },
336
+ {
337
+ "name": "fee_gamma",
338
+ "type": "uint256"
339
+ },
340
+ {
341
+ "name": "adjustment_step",
342
+ "type": "uint256"
343
+ },
344
+ {
345
+ "name": "admin_fee",
346
+ "type": "uint256"
347
+ },
348
+ {
349
+ "name": "ma_half_time",
350
+ "type": "uint256"
351
+ },
352
+ {
353
+ "name": "initial_prices",
354
+ "type": "uint256[2]"
355
+ }
356
+ ],
357
+ "outputs": []
358
+ },
359
+ {
360
+ "stateMutability": "payable",
361
+ "type": "fallback"
362
+ },
363
+ {
364
+ "stateMutability": "view",
365
+ "type": "function",
366
+ "name": "price_oracle",
367
+ "inputs": [
368
+ {
369
+ "name": "k",
370
+ "type": "uint256"
371
+ }
372
+ ],
373
+ "outputs": [
374
+ {
375
+ "name": "",
376
+ "type": "uint256"
377
+ }
378
+ ],
379
+ "gas": 3361
380
+ },
381
+ {
382
+ "stateMutability": "view",
383
+ "type": "function",
384
+ "name": "price_scale",
385
+ "inputs": [
386
+ {
387
+ "name": "k",
388
+ "type": "uint256"
389
+ }
390
+ ],
391
+ "outputs": [
392
+ {
393
+ "name": "",
394
+ "type": "uint256"
395
+ }
396
+ ],
397
+ "gas": 3391
398
+ },
399
+ {
400
+ "stateMutability": "view",
401
+ "type": "function",
402
+ "name": "last_prices",
403
+ "inputs": [
404
+ {
405
+ "name": "k",
406
+ "type": "uint256"
407
+ }
408
+ ],
409
+ "outputs": [
410
+ {
411
+ "name": "",
412
+ "type": "uint256"
413
+ }
414
+ ],
415
+ "gas": 3421
416
+ },
417
+ {
418
+ "stateMutability": "view",
419
+ "type": "function",
420
+ "name": "token",
421
+ "inputs": [],
422
+ "outputs": [
423
+ {
424
+ "name": "",
425
+ "type": "address"
426
+ }
427
+ ],
428
+ "gas": 468
429
+ },
430
+ {
431
+ "stateMutability": "view",
432
+ "type": "function",
433
+ "name": "coins",
434
+ "inputs": [
435
+ {
436
+ "name": "i",
437
+ "type": "uint256"
438
+ }
439
+ ],
440
+ "outputs": [
441
+ {
442
+ "name": "",
443
+ "type": "address"
444
+ }
445
+ ],
446
+ "gas": 582
447
+ },
448
+ {
449
+ "stateMutability": "view",
450
+ "type": "function",
451
+ "name": "A",
452
+ "inputs": [],
453
+ "outputs": [
454
+ {
455
+ "name": "",
456
+ "type": "uint256"
457
+ }
458
+ ],
459
+ "gas": 597
460
+ },
461
+ {
462
+ "stateMutability": "view",
463
+ "type": "function",
464
+ "name": "gamma",
465
+ "inputs": [],
466
+ "outputs": [
467
+ {
468
+ "name": "",
469
+ "type": "uint256"
470
+ }
471
+ ],
472
+ "gas": 11991
473
+ },
474
+ {
475
+ "stateMutability": "view",
476
+ "type": "function",
477
+ "name": "fee",
478
+ "inputs": [],
479
+ "outputs": [
480
+ {
481
+ "name": "",
482
+ "type": "uint256"
483
+ }
484
+ ],
485
+ "gas": 21481
486
+ },
487
+ {
488
+ "stateMutability": "view",
489
+ "type": "function",
490
+ "name": "fee_calc",
491
+ "inputs": [
492
+ {
493
+ "name": "xp",
494
+ "type": "uint256[3]"
495
+ }
496
+ ],
497
+ "outputs": [
498
+ {
499
+ "name": "",
500
+ "type": "uint256"
501
+ }
502
+ ],
503
+ "gas": 11096
504
+ },
505
+ {
506
+ "stateMutability": "view",
507
+ "type": "function",
508
+ "name": "get_virtual_price",
509
+ "inputs": [],
510
+ "outputs": [
511
+ {
512
+ "name": "",
513
+ "type": "uint256"
514
+ }
515
+ ],
516
+ "gas": 11582
517
+ },
518
+ {
519
+ "stateMutability": "payable",
520
+ "type": "function",
521
+ "name": "exchange",
522
+ "inputs": [
523
+ {
524
+ "name": "i",
525
+ "type": "uint256"
526
+ },
527
+ {
528
+ "name": "j",
529
+ "type": "uint256"
530
+ },
531
+ {
532
+ "name": "dx",
533
+ "type": "uint256"
534
+ },
535
+ {
536
+ "name": "min_dy",
537
+ "type": "uint256"
538
+ }
539
+ ],
540
+ "outputs": [
541
+ {
542
+ "name": "",
543
+ "type": "uint256"
544
+ }
545
+ ]
546
+ },
547
+ {
548
+ "stateMutability": "view",
549
+ "type": "function",
550
+ "name": "get_dy",
551
+ "inputs": [
552
+ {
553
+ "name": "i",
554
+ "type": "uint256"
555
+ },
556
+ {
557
+ "name": "j",
558
+ "type": "uint256"
559
+ },
560
+ {
561
+ "name": "dx",
562
+ "type": "uint256"
563
+ }
564
+ ],
565
+ "outputs": [
566
+ {
567
+ "name": "",
568
+ "type": "uint256"
569
+ }
570
+ ],
571
+ "gas": 3122
572
+ },
573
+ {
574
+ "stateMutability": "view",
575
+ "type": "function",
576
+ "name": "calc_token_fee",
577
+ "inputs": [
578
+ {
579
+ "name": "amounts",
580
+ "type": "uint256[3]"
581
+ },
582
+ {
583
+ "name": "xp",
584
+ "type": "uint256[3]"
585
+ }
586
+ ],
587
+ "outputs": [
588
+ {
589
+ "name": "",
590
+ "type": "uint256"
591
+ }
592
+ ],
593
+ "gas": 26582
594
+ },
595
+ {
596
+ "stateMutability": "nonpayable",
597
+ "type": "function",
598
+ "name": "add_liquidity",
599
+ "inputs": [
600
+ {
601
+ "name": "amounts",
602
+ "type": "uint256[3]"
603
+ },
604
+ {
605
+ "name": "min_mint_amount",
606
+ "type": "uint256"
607
+ }
608
+ ],
609
+ "outputs": [],
610
+ "gas": 1400833
611
+ },
612
+ {
613
+ "stateMutability": "nonpayable",
614
+ "type": "function",
615
+ "name": "remove_liquidity",
616
+ "inputs": [
617
+ {
618
+ "name": "_amount",
619
+ "type": "uint256"
620
+ },
621
+ {
622
+ "name": "min_amounts",
623
+ "type": "uint256[3]"
624
+ }
625
+ ],
626
+ "outputs": [],
627
+ "gas": 233573
628
+ },
629
+ {
630
+ "stateMutability": "view",
631
+ "type": "function",
632
+ "name": "calc_token_amount",
633
+ "inputs": [
634
+ {
635
+ "name": "amounts",
636
+ "type": "uint256[3]"
637
+ },
638
+ {
639
+ "name": "deposit",
640
+ "type": "bool"
641
+ }
642
+ ],
643
+ "outputs": [
644
+ {
645
+ "name": "",
646
+ "type": "uint256"
647
+ }
648
+ ],
649
+ "gas": 3429
650
+ },
651
+ {
652
+ "stateMutability": "view",
653
+ "type": "function",
654
+ "name": "calc_withdraw_one_coin",
655
+ "inputs": [
656
+ {
657
+ "name": "token_amount",
658
+ "type": "uint256"
659
+ },
660
+ {
661
+ "name": "i",
662
+ "type": "uint256"
663
+ }
664
+ ],
665
+ "outputs": [
666
+ {
667
+ "name": "",
668
+ "type": "uint256"
669
+ }
670
+ ],
671
+ "gas": 13432
672
+ },
673
+ {
674
+ "stateMutability": "nonpayable",
675
+ "type": "function",
676
+ "name": "remove_liquidity_one_coin",
677
+ "inputs": [
678
+ {
679
+ "name": "token_amount",
680
+ "type": "uint256"
681
+ },
682
+ {
683
+ "name": "i",
684
+ "type": "uint256"
685
+ },
686
+ {
687
+ "name": "min_amount",
688
+ "type": "uint256"
689
+ }
690
+ ],
691
+ "outputs": [],
692
+ "gas": 1310913
693
+ },
694
+ {
695
+ "stateMutability": "nonpayable",
696
+ "type": "function",
697
+ "name": "claim_admin_fees",
698
+ "inputs": [],
699
+ "outputs": [],
700
+ "gas": 389296
701
+ },
702
+ {
703
+ "stateMutability": "nonpayable",
704
+ "type": "function",
705
+ "name": "ramp_A_gamma",
706
+ "inputs": [
707
+ {
708
+ "name": "future_A",
709
+ "type": "uint256"
710
+ },
711
+ {
712
+ "name": "future_gamma",
713
+ "type": "uint256"
714
+ },
715
+ {
716
+ "name": "future_time",
717
+ "type": "uint256"
718
+ }
719
+ ],
720
+ "outputs": [],
721
+ "gas": 163102
722
+ },
723
+ {
724
+ "stateMutability": "nonpayable",
725
+ "type": "function",
726
+ "name": "stop_ramp_A_gamma",
727
+ "inputs": [],
728
+ "outputs": [],
729
+ "gas": 157247
730
+ },
731
+ {
732
+ "stateMutability": "nonpayable",
733
+ "type": "function",
734
+ "name": "commit_new_parameters",
735
+ "inputs": [
736
+ {
737
+ "name": "_new_mid_fee",
738
+ "type": "uint256"
739
+ },
740
+ {
741
+ "name": "_new_out_fee",
742
+ "type": "uint256"
743
+ },
744
+ {
745
+ "name": "_new_admin_fee",
746
+ "type": "uint256"
747
+ },
748
+ {
749
+ "name": "_new_fee_gamma",
750
+ "type": "uint256"
751
+ },
752
+ {
753
+ "name": "_new_allowed_extra_profit",
754
+ "type": "uint256"
755
+ },
756
+ {
757
+ "name": "_new_adjustment_step",
758
+ "type": "uint256"
759
+ },
760
+ {
761
+ "name": "_new_ma_half_time",
762
+ "type": "uint256"
763
+ }
764
+ ],
765
+ "outputs": [],
766
+ "gas": 306190
767
+ },
768
+ {
769
+ "stateMutability": "nonpayable",
770
+ "type": "function",
771
+ "name": "apply_new_parameters",
772
+ "inputs": [],
773
+ "outputs": [],
774
+ "gas": 682926
775
+ },
776
+ {
777
+ "stateMutability": "nonpayable",
778
+ "type": "function",
779
+ "name": "revert_new_parameters",
780
+ "inputs": [],
781
+ "outputs": [],
782
+ "gas": 23222
783
+ },
784
+ {
785
+ "stateMutability": "nonpayable",
786
+ "type": "function",
787
+ "name": "commit_transfer_ownership",
788
+ "inputs": [
789
+ {
790
+ "name": "_owner",
791
+ "type": "address"
792
+ }
793
+ ],
794
+ "outputs": [],
795
+ "gas": 77260
796
+ },
797
+ {
798
+ "stateMutability": "nonpayable",
799
+ "type": "function",
800
+ "name": "apply_transfer_ownership",
801
+ "inputs": [],
802
+ "outputs": [],
803
+ "gas": 65937
804
+ },
805
+ {
806
+ "stateMutability": "nonpayable",
807
+ "type": "function",
808
+ "name": "revert_transfer_ownership",
809
+ "inputs": [],
810
+ "outputs": [],
811
+ "gas": 23312
812
+ },
813
+ {
814
+ "stateMutability": "nonpayable",
815
+ "type": "function",
816
+ "name": "kill_me",
817
+ "inputs": [],
818
+ "outputs": [],
819
+ "gas": 40535
820
+ },
821
+ {
822
+ "stateMutability": "nonpayable",
823
+ "type": "function",
824
+ "name": "unkill_me",
825
+ "inputs": [],
826
+ "outputs": [],
827
+ "gas": 23372
828
+ },
829
+ {
830
+ "stateMutability": "nonpayable",
831
+ "type": "function",
832
+ "name": "set_admin_fee_receiver",
833
+ "inputs": [
834
+ {
835
+ "name": "_admin_fee_receiver",
836
+ "type": "address"
837
+ }
838
+ ],
839
+ "outputs": [],
840
+ "gas": 38505
841
+ },
842
+ {
843
+ "stateMutability": "view",
844
+ "type": "function",
845
+ "name": "last_prices_timestamp",
846
+ "inputs": [],
847
+ "outputs": [
848
+ {
849
+ "name": "",
850
+ "type": "uint256"
851
+ }
852
+ ],
853
+ "gas": 3378
854
+ },
855
+ {
856
+ "stateMutability": "view",
857
+ "type": "function",
858
+ "name": "initial_A_gamma",
859
+ "inputs": [],
860
+ "outputs": [
861
+ {
862
+ "name": "",
863
+ "type": "uint256"
864
+ }
865
+ ],
866
+ "gas": 3408
867
+ },
868
+ {
869
+ "stateMutability": "view",
870
+ "type": "function",
871
+ "name": "future_A_gamma",
872
+ "inputs": [],
873
+ "outputs": [
874
+ {
875
+ "name": "",
876
+ "type": "uint256"
877
+ }
878
+ ],
879
+ "gas": 3438
880
+ },
881
+ {
882
+ "stateMutability": "view",
883
+ "type": "function",
884
+ "name": "initial_A_gamma_time",
885
+ "inputs": [],
886
+ "outputs": [
887
+ {
888
+ "name": "",
889
+ "type": "uint256"
890
+ }
891
+ ],
892
+ "gas": 3468
893
+ },
894
+ {
895
+ "stateMutability": "view",
896
+ "type": "function",
897
+ "name": "future_A_gamma_time",
898
+ "inputs": [],
899
+ "outputs": [
900
+ {
901
+ "name": "",
902
+ "type": "uint256"
903
+ }
904
+ ],
905
+ "gas": 3498
906
+ },
907
+ {
908
+ "stateMutability": "view",
909
+ "type": "function",
910
+ "name": "allowed_extra_profit",
911
+ "inputs": [],
912
+ "outputs": [
913
+ {
914
+ "name": "",
915
+ "type": "uint256"
916
+ }
917
+ ],
918
+ "gas": 3528
919
+ },
920
+ {
921
+ "stateMutability": "view",
922
+ "type": "function",
923
+ "name": "future_allowed_extra_profit",
924
+ "inputs": [],
925
+ "outputs": [
926
+ {
927
+ "name": "",
928
+ "type": "uint256"
929
+ }
930
+ ],
931
+ "gas": 3558
932
+ },
933
+ {
934
+ "stateMutability": "view",
935
+ "type": "function",
936
+ "name": "fee_gamma",
937
+ "inputs": [],
938
+ "outputs": [
939
+ {
940
+ "name": "",
941
+ "type": "uint256"
942
+ }
943
+ ],
944
+ "gas": 3588
945
+ },
946
+ {
947
+ "stateMutability": "view",
948
+ "type": "function",
949
+ "name": "future_fee_gamma",
950
+ "inputs": [],
951
+ "outputs": [
952
+ {
953
+ "name": "",
954
+ "type": "uint256"
955
+ }
956
+ ],
957
+ "gas": 3618
958
+ },
959
+ {
960
+ "stateMutability": "view",
961
+ "type": "function",
962
+ "name": "adjustment_step",
963
+ "inputs": [],
964
+ "outputs": [
965
+ {
966
+ "name": "",
967
+ "type": "uint256"
968
+ }
969
+ ],
970
+ "gas": 3648
971
+ },
972
+ {
973
+ "stateMutability": "view",
974
+ "type": "function",
975
+ "name": "future_adjustment_step",
976
+ "inputs": [],
977
+ "outputs": [
978
+ {
979
+ "name": "",
980
+ "type": "uint256"
981
+ }
982
+ ],
983
+ "gas": 3678
984
+ },
985
+ {
986
+ "stateMutability": "view",
987
+ "type": "function",
988
+ "name": "ma_half_time",
989
+ "inputs": [],
990
+ "outputs": [
991
+ {
992
+ "name": "",
993
+ "type": "uint256"
994
+ }
995
+ ],
996
+ "gas": 3708
997
+ },
998
+ {
999
+ "stateMutability": "view",
1000
+ "type": "function",
1001
+ "name": "future_ma_half_time",
1002
+ "inputs": [],
1003
+ "outputs": [
1004
+ {
1005
+ "name": "",
1006
+ "type": "uint256"
1007
+ }
1008
+ ],
1009
+ "gas": 3738
1010
+ },
1011
+ {
1012
+ "stateMutability": "view",
1013
+ "type": "function",
1014
+ "name": "mid_fee",
1015
+ "inputs": [],
1016
+ "outputs": [
1017
+ {
1018
+ "name": "",
1019
+ "type": "uint256"
1020
+ }
1021
+ ],
1022
+ "gas": 3768
1023
+ },
1024
+ {
1025
+ "stateMutability": "view",
1026
+ "type": "function",
1027
+ "name": "out_fee",
1028
+ "inputs": [],
1029
+ "outputs": [
1030
+ {
1031
+ "name": "",
1032
+ "type": "uint256"
1033
+ }
1034
+ ],
1035
+ "gas": 3798
1036
+ },
1037
+ {
1038
+ "stateMutability": "view",
1039
+ "type": "function",
1040
+ "name": "admin_fee",
1041
+ "inputs": [],
1042
+ "outputs": [
1043
+ {
1044
+ "name": "",
1045
+ "type": "uint256"
1046
+ }
1047
+ ],
1048
+ "gas": 3828
1049
+ },
1050
+ {
1051
+ "stateMutability": "view",
1052
+ "type": "function",
1053
+ "name": "future_mid_fee",
1054
+ "inputs": [],
1055
+ "outputs": [
1056
+ {
1057
+ "name": "",
1058
+ "type": "uint256"
1059
+ }
1060
+ ],
1061
+ "gas": 3858
1062
+ },
1063
+ {
1064
+ "stateMutability": "view",
1065
+ "type": "function",
1066
+ "name": "future_out_fee",
1067
+ "inputs": [],
1068
+ "outputs": [
1069
+ {
1070
+ "name": "",
1071
+ "type": "uint256"
1072
+ }
1073
+ ],
1074
+ "gas": 3888
1075
+ },
1076
+ {
1077
+ "stateMutability": "view",
1078
+ "type": "function",
1079
+ "name": "future_admin_fee",
1080
+ "inputs": [],
1081
+ "outputs": [
1082
+ {
1083
+ "name": "",
1084
+ "type": "uint256"
1085
+ }
1086
+ ],
1087
+ "gas": 3918
1088
+ },
1089
+ {
1090
+ "stateMutability": "view",
1091
+ "type": "function",
1092
+ "name": "balances",
1093
+ "inputs": [
1094
+ {
1095
+ "name": "arg0",
1096
+ "type": "uint256"
1097
+ }
1098
+ ],
1099
+ "outputs": [
1100
+ {
1101
+ "name": "",
1102
+ "type": "uint256"
1103
+ }
1104
+ ],
1105
+ "gas": 3993
1106
+ },
1107
+ {
1108
+ "stateMutability": "view",
1109
+ "type": "function",
1110
+ "name": "D",
1111
+ "inputs": [],
1112
+ "outputs": [
1113
+ {
1114
+ "name": "",
1115
+ "type": "uint256"
1116
+ }
1117
+ ],
1118
+ "gas": 3978
1119
+ },
1120
+ {
1121
+ "stateMutability": "view",
1122
+ "type": "function",
1123
+ "name": "owner",
1124
+ "inputs": [],
1125
+ "outputs": [
1126
+ {
1127
+ "name": "",
1128
+ "type": "address"
1129
+ }
1130
+ ],
1131
+ "gas": 4008
1132
+ },
1133
+ {
1134
+ "stateMutability": "view",
1135
+ "type": "function",
1136
+ "name": "future_owner",
1137
+ "inputs": [],
1138
+ "outputs": [
1139
+ {
1140
+ "name": "",
1141
+ "type": "address"
1142
+ }
1143
+ ],
1144
+ "gas": 4038
1145
+ },
1146
+ {
1147
+ "stateMutability": "view",
1148
+ "type": "function",
1149
+ "name": "xcp_profit",
1150
+ "inputs": [],
1151
+ "outputs": [
1152
+ {
1153
+ "name": "",
1154
+ "type": "uint256"
1155
+ }
1156
+ ],
1157
+ "gas": 4068
1158
+ },
1159
+ {
1160
+ "stateMutability": "view",
1161
+ "type": "function",
1162
+ "name": "xcp_profit_a",
1163
+ "inputs": [],
1164
+ "outputs": [
1165
+ {
1166
+ "name": "",
1167
+ "type": "uint256"
1168
+ }
1169
+ ],
1170
+ "gas": 4098
1171
+ },
1172
+ {
1173
+ "stateMutability": "view",
1174
+ "type": "function",
1175
+ "name": "virtual_price",
1176
+ "inputs": [],
1177
+ "outputs": [
1178
+ {
1179
+ "name": "",
1180
+ "type": "uint256"
1181
+ }
1182
+ ],
1183
+ "gas": 4128
1184
+ },
1185
+ {
1186
+ "stateMutability": "view",
1187
+ "type": "function",
1188
+ "name": "is_killed",
1189
+ "inputs": [],
1190
+ "outputs": [
1191
+ {
1192
+ "name": "",
1193
+ "type": "bool"
1194
+ }
1195
+ ],
1196
+ "gas": 4158
1197
+ },
1198
+ {
1199
+ "stateMutability": "view",
1200
+ "type": "function",
1201
+ "name": "kill_deadline",
1202
+ "inputs": [],
1203
+ "outputs": [
1204
+ {
1205
+ "name": "",
1206
+ "type": "uint256"
1207
+ }
1208
+ ],
1209
+ "gas": 4188
1210
+ },
1211
+ {
1212
+ "stateMutability": "view",
1213
+ "type": "function",
1214
+ "name": "transfer_ownership_deadline",
1215
+ "inputs": [],
1216
+ "outputs": [
1217
+ {
1218
+ "name": "",
1219
+ "type": "uint256"
1220
+ }
1221
+ ],
1222
+ "gas": 4218
1223
+ },
1224
+ {
1225
+ "stateMutability": "view",
1226
+ "type": "function",
1227
+ "name": "admin_actions_deadline",
1228
+ "inputs": [],
1229
+ "outputs": [
1230
+ {
1231
+ "name": "",
1232
+ "type": "uint256"
1233
+ }
1234
+ ],
1235
+ "gas": 4248
1236
+ },
1237
+ {
1238
+ "stateMutability": "view",
1239
+ "type": "function",
1240
+ "name": "admin_fee_receiver",
1241
+ "inputs": [],
1242
+ "outputs": [
1243
+ {
1244
+ "name": "",
1245
+ "type": "address"
1246
+ }
1247
+ ],
1248
+ "gas": 4278
1249
+ }
1250
+ ]