@curvefi/api 1.10.0 → 1.14.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 +38 -0
  2. package/lib/constants/abis/abis-ethereum.d.ts +1 -1
  3. package/lib/constants/abis/abis-ethereum.js +68 -2
  4. package/lib/constants/abis/abis-polygon.d.ts +4 -0
  5. package/lib/constants/abis/abis-polygon.js +154 -0
  6. package/lib/constants/abis/json/atricrypto3/swap.json +1269 -0
  7. package/lib/constants/abis/json/atricrypto3/zap.json +239 -0
  8. package/lib/constants/abis/json/busd/deposit.json +5 -10
  9. package/lib/constants/abis/json/busd/swap.json +18 -36
  10. package/lib/constants/abis/json/compound/deposit.json +5 -10
  11. package/lib/constants/abis/json/compound/migration.json +1 -2
  12. package/lib/constants/abis/json/compound/oldSwap.json +16 -32
  13. package/lib/constants/abis/json/compound/swap.json +18 -36
  14. package/lib/constants/abis/json/iearn/deposit.json +5 -10
  15. package/lib/constants/abis/json/iearn/swap.json +18 -36
  16. package/lib/constants/abis/json/paave/rewards.json +657 -0
  17. package/lib/constants/abis/json/pax/deposit.json +5 -10
  18. package/lib/constants/abis/json/pax/swap.json +19 -38
  19. package/lib/constants/abis/json/ren/swap.json +19 -38
  20. package/lib/constants/abis/json/ren-polygon/swap.json +1112 -0
  21. package/lib/constants/abis/json/sbtc/swap.json +19 -38
  22. package/lib/constants/abis/json/streamer.json +257 -0
  23. package/lib/constants/abis/json/susdv2/deposit.json +5 -10
  24. package/lib/constants/abis/json/susdv2/swap.json +16 -32
  25. package/lib/constants/abis/json/usdt/deposit.json +5 -10
  26. package/lib/constants/abis/json/usdt/swap.json +19 -37
  27. package/lib/constants/aliases.d.ts +16 -0
  28. package/lib/constants/aliases.js +19 -0
  29. package/lib/constants/coins-ethereum.d.ts +31 -0
  30. package/lib/constants/{coins.js → coins-ethereum.js} +48 -14
  31. package/lib/constants/coins-polygon.d.ts +31 -0
  32. package/lib/constants/coins-polygon.js +74 -0
  33. package/lib/curve.d.ts +23 -7
  34. package/lib/curve.js +133 -91
  35. package/lib/index.d.ts +2 -1
  36. package/lib/index.js +3 -0
  37. package/lib/interfaces.d.ts +3 -0
  38. package/lib/pools.d.ts +25 -4
  39. package/lib/pools.js +323 -101
  40. package/lib/utils.d.ts +1 -1
  41. package/lib/utils.js +49 -41
  42. package/package.json +6 -5
  43. package/lib/constants/coins.d.ts +0 -25
@@ -0,0 +1,1269 @@
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
+ "name": "constructor"
359
+ },
360
+ {
361
+ "stateMutability": "view",
362
+ "type": "function",
363
+ "name": "price_oracle",
364
+ "inputs": [
365
+ {
366
+ "name": "k",
367
+ "type": "uint256"
368
+ }
369
+ ],
370
+ "outputs": [
371
+ {
372
+ "name": "",
373
+ "type": "uint256"
374
+ }
375
+ ],
376
+ "gas": 1971
377
+ },
378
+ {
379
+ "stateMutability": "view",
380
+ "type": "function",
381
+ "name": "price_scale",
382
+ "inputs": [
383
+ {
384
+ "name": "k",
385
+ "type": "uint256"
386
+ }
387
+ ],
388
+ "outputs": [
389
+ {
390
+ "name": "",
391
+ "type": "uint256"
392
+ }
393
+ ],
394
+ "gas": 2001
395
+ },
396
+ {
397
+ "stateMutability": "view",
398
+ "type": "function",
399
+ "name": "last_prices",
400
+ "inputs": [
401
+ {
402
+ "name": "k",
403
+ "type": "uint256"
404
+ }
405
+ ],
406
+ "outputs": [
407
+ {
408
+ "name": "",
409
+ "type": "uint256"
410
+ }
411
+ ],
412
+ "gas": 2031
413
+ },
414
+ {
415
+ "stateMutability": "view",
416
+ "type": "function",
417
+ "name": "token",
418
+ "inputs": [],
419
+ "outputs": [
420
+ {
421
+ "name": "",
422
+ "type": "address"
423
+ }
424
+ ],
425
+ "gas": 378
426
+ },
427
+ {
428
+ "stateMutability": "view",
429
+ "type": "function",
430
+ "name": "coins",
431
+ "inputs": [
432
+ {
433
+ "name": "i",
434
+ "type": "uint256"
435
+ }
436
+ ],
437
+ "outputs": [
438
+ {
439
+ "name": "",
440
+ "type": "address"
441
+ }
442
+ ],
443
+ "gas": 492
444
+ },
445
+ {
446
+ "stateMutability": "view",
447
+ "type": "function",
448
+ "name": "A",
449
+ "inputs": [],
450
+ "outputs": [
451
+ {
452
+ "name": "",
453
+ "type": "uint256"
454
+ }
455
+ ],
456
+ "gas": 507
457
+ },
458
+ {
459
+ "stateMutability": "view",
460
+ "type": "function",
461
+ "name": "gamma",
462
+ "inputs": [],
463
+ "outputs": [
464
+ {
465
+ "name": "",
466
+ "type": "uint256"
467
+ }
468
+ ],
469
+ "gas": 6701
470
+ },
471
+ {
472
+ "stateMutability": "view",
473
+ "type": "function",
474
+ "name": "fee",
475
+ "inputs": [],
476
+ "outputs": [
477
+ {
478
+ "name": "",
479
+ "type": "uint256"
480
+ }
481
+ ],
482
+ "gas": 10891
483
+ },
484
+ {
485
+ "stateMutability": "view",
486
+ "type": "function",
487
+ "name": "fee_calc",
488
+ "inputs": [
489
+ {
490
+ "name": "xp",
491
+ "type": "uint256[3]"
492
+ }
493
+ ],
494
+ "outputs": [
495
+ {
496
+ "name": "",
497
+ "type": "uint256"
498
+ }
499
+ ],
500
+ "gas": 5706
501
+ },
502
+ {
503
+ "stateMutability": "view",
504
+ "type": "function",
505
+ "name": "get_virtual_price",
506
+ "inputs": [],
507
+ "outputs": [
508
+ {
509
+ "name": "",
510
+ "type": "uint256"
511
+ }
512
+ ],
513
+ "gas": 6092
514
+ },
515
+ {
516
+ "stateMutability": "nonpayable",
517
+ "type": "function",
518
+ "name": "exchange",
519
+ "inputs": [
520
+ {
521
+ "name": "i",
522
+ "type": "uint256"
523
+ },
524
+ {
525
+ "name": "j",
526
+ "type": "uint256"
527
+ },
528
+ {
529
+ "name": "dx",
530
+ "type": "uint256"
531
+ },
532
+ {
533
+ "name": "min_dy",
534
+ "type": "uint256"
535
+ }
536
+ ],
537
+ "outputs": [],
538
+ "gas": 1236533
539
+ },
540
+ {
541
+ "stateMutability": "view",
542
+ "type": "function",
543
+ "name": "get_dy",
544
+ "inputs": [
545
+ {
546
+ "name": "i",
547
+ "type": "uint256"
548
+ },
549
+ {
550
+ "name": "j",
551
+ "type": "uint256"
552
+ },
553
+ {
554
+ "name": "dx",
555
+ "type": "uint256"
556
+ }
557
+ ],
558
+ "outputs": [
559
+ {
560
+ "name": "",
561
+ "type": "uint256"
562
+ }
563
+ ],
564
+ "gas": 1632
565
+ },
566
+ {
567
+ "stateMutability": "view",
568
+ "type": "function",
569
+ "name": "calc_token_fee",
570
+ "inputs": [
571
+ {
572
+ "name": "amounts",
573
+ "type": "uint256[3]"
574
+ },
575
+ {
576
+ "name": "xp",
577
+ "type": "uint256[3]"
578
+ }
579
+ ],
580
+ "outputs": [
581
+ {
582
+ "name": "",
583
+ "type": "uint256"
584
+ }
585
+ ],
586
+ "gas": 15892
587
+ },
588
+ {
589
+ "stateMutability": "nonpayable",
590
+ "type": "function",
591
+ "name": "add_liquidity",
592
+ "inputs": [
593
+ {
594
+ "name": "amounts",
595
+ "type": "uint256[3]"
596
+ },
597
+ {
598
+ "name": "min_mint_amount",
599
+ "type": "uint256"
600
+ }
601
+ ],
602
+ "outputs": [],
603
+ "gas": 1257246
604
+ },
605
+ {
606
+ "stateMutability": "nonpayable",
607
+ "type": "function",
608
+ "name": "remove_liquidity",
609
+ "inputs": [
610
+ {
611
+ "name": "_amount",
612
+ "type": "uint256"
613
+ },
614
+ {
615
+ "name": "min_amounts",
616
+ "type": "uint256[3]"
617
+ }
618
+ ],
619
+ "outputs": [],
620
+ "gas": 212087
621
+ },
622
+ {
623
+ "stateMutability": "view",
624
+ "type": "function",
625
+ "name": "calc_token_amount",
626
+ "inputs": [
627
+ {
628
+ "name": "amounts",
629
+ "type": "uint256[3]"
630
+ },
631
+ {
632
+ "name": "deposit",
633
+ "type": "bool"
634
+ }
635
+ ],
636
+ "outputs": [
637
+ {
638
+ "name": "",
639
+ "type": "uint256"
640
+ }
641
+ ],
642
+ "gas": 1939
643
+ },
644
+ {
645
+ "stateMutability": "view",
646
+ "type": "function",
647
+ "name": "calc_withdraw_one_coin",
648
+ "inputs": [
649
+ {
650
+ "name": "token_amount",
651
+ "type": "uint256"
652
+ },
653
+ {
654
+ "name": "i",
655
+ "type": "uint256"
656
+ }
657
+ ],
658
+ "outputs": [
659
+ {
660
+ "name": "",
661
+ "type": "uint256"
662
+ }
663
+ ],
664
+ "gas": 8142
665
+ },
666
+ {
667
+ "stateMutability": "nonpayable",
668
+ "type": "function",
669
+ "name": "remove_liquidity_one_coin",
670
+ "inputs": [
671
+ {
672
+ "name": "token_amount",
673
+ "type": "uint256"
674
+ },
675
+ {
676
+ "name": "i",
677
+ "type": "uint256"
678
+ },
679
+ {
680
+ "name": "min_amount",
681
+ "type": "uint256"
682
+ }
683
+ ],
684
+ "outputs": [],
685
+ "gas": 1176756
686
+ },
687
+ {
688
+ "stateMutability": "nonpayable",
689
+ "type": "function",
690
+ "name": "claim_admin_fees",
691
+ "inputs": [],
692
+ "outputs": [],
693
+ "gas": 352907
694
+ },
695
+ {
696
+ "stateMutability": "nonpayable",
697
+ "type": "function",
698
+ "name": "ramp_A_gamma",
699
+ "inputs": [
700
+ {
701
+ "name": "future_A",
702
+ "type": "uint256"
703
+ },
704
+ {
705
+ "name": "future_gamma",
706
+ "type": "uint256"
707
+ },
708
+ {
709
+ "name": "future_time",
710
+ "type": "uint256"
711
+ }
712
+ ],
713
+ "outputs": [],
714
+ "gas": 155212
715
+ },
716
+ {
717
+ "stateMutability": "nonpayable",
718
+ "type": "function",
719
+ "name": "stop_ramp_A_gamma",
720
+ "inputs": [],
721
+ "outputs": [],
722
+ "gas": 150657
723
+ },
724
+ {
725
+ "stateMutability": "nonpayable",
726
+ "type": "function",
727
+ "name": "commit_new_parameters",
728
+ "inputs": [
729
+ {
730
+ "name": "_new_mid_fee",
731
+ "type": "uint256"
732
+ },
733
+ {
734
+ "name": "_new_out_fee",
735
+ "type": "uint256"
736
+ },
737
+ {
738
+ "name": "_new_admin_fee",
739
+ "type": "uint256"
740
+ },
741
+ {
742
+ "name": "_new_fee_gamma",
743
+ "type": "uint256"
744
+ },
745
+ {
746
+ "name": "_new_allowed_extra_profit",
747
+ "type": "uint256"
748
+ },
749
+ {
750
+ "name": "_new_adjustment_step",
751
+ "type": "uint256"
752
+ },
753
+ {
754
+ "name": "_new_ma_half_time",
755
+ "type": "uint256"
756
+ }
757
+ ],
758
+ "outputs": [],
759
+ "gas": 294400
760
+ },
761
+ {
762
+ "stateMutability": "nonpayable",
763
+ "type": "function",
764
+ "name": "apply_new_parameters",
765
+ "inputs": [],
766
+ "outputs": [],
767
+ "gas": 632237
768
+ },
769
+ {
770
+ "stateMutability": "nonpayable",
771
+ "type": "function",
772
+ "name": "revert_new_parameters",
773
+ "inputs": [],
774
+ "outputs": [],
775
+ "gas": 21832
776
+ },
777
+ {
778
+ "stateMutability": "nonpayable",
779
+ "type": "function",
780
+ "name": "commit_transfer_ownership",
781
+ "inputs": [
782
+ {
783
+ "name": "_owner",
784
+ "type": "address"
785
+ }
786
+ ],
787
+ "outputs": [],
788
+ "gas": 74570
789
+ },
790
+ {
791
+ "stateMutability": "nonpayable",
792
+ "type": "function",
793
+ "name": "apply_transfer_ownership",
794
+ "inputs": [],
795
+ "outputs": [],
796
+ "gas": 60647
797
+ },
798
+ {
799
+ "stateMutability": "nonpayable",
800
+ "type": "function",
801
+ "name": "revert_transfer_ownership",
802
+ "inputs": [],
803
+ "outputs": [],
804
+ "gas": 21922
805
+ },
806
+ {
807
+ "stateMutability": "nonpayable",
808
+ "type": "function",
809
+ "name": "kill_me",
810
+ "inputs": [],
811
+ "outputs": [],
812
+ "gas": 37845
813
+ },
814
+ {
815
+ "stateMutability": "nonpayable",
816
+ "type": "function",
817
+ "name": "unkill_me",
818
+ "inputs": [],
819
+ "outputs": [],
820
+ "gas": 21982
821
+ },
822
+ {
823
+ "stateMutability": "nonpayable",
824
+ "type": "function",
825
+ "name": "set_reward_receiver",
826
+ "inputs": [
827
+ {
828
+ "name": "_reward_receiver",
829
+ "type": "address"
830
+ }
831
+ ],
832
+ "outputs": [],
833
+ "gas": 37115
834
+ },
835
+ {
836
+ "stateMutability": "nonpayable",
837
+ "type": "function",
838
+ "name": "set_admin_fee_receiver",
839
+ "inputs": [
840
+ {
841
+ "name": "_admin_fee_receiver",
842
+ "type": "address"
843
+ }
844
+ ],
845
+ "outputs": [],
846
+ "gas": 37145
847
+ },
848
+ {
849
+ "stateMutability": "view",
850
+ "type": "function",
851
+ "name": "last_prices_timestamp",
852
+ "inputs": [],
853
+ "outputs": [
854
+ {
855
+ "name": "",
856
+ "type": "uint256"
857
+ }
858
+ ],
859
+ "gas": 2018
860
+ },
861
+ {
862
+ "stateMutability": "view",
863
+ "type": "function",
864
+ "name": "initial_A_gamma",
865
+ "inputs": [],
866
+ "outputs": [
867
+ {
868
+ "name": "",
869
+ "type": "uint256"
870
+ }
871
+ ],
872
+ "gas": 2048
873
+ },
874
+ {
875
+ "stateMutability": "view",
876
+ "type": "function",
877
+ "name": "future_A_gamma",
878
+ "inputs": [],
879
+ "outputs": [
880
+ {
881
+ "name": "",
882
+ "type": "uint256"
883
+ }
884
+ ],
885
+ "gas": 2078
886
+ },
887
+ {
888
+ "stateMutability": "view",
889
+ "type": "function",
890
+ "name": "initial_A_gamma_time",
891
+ "inputs": [],
892
+ "outputs": [
893
+ {
894
+ "name": "",
895
+ "type": "uint256"
896
+ }
897
+ ],
898
+ "gas": 2108
899
+ },
900
+ {
901
+ "stateMutability": "view",
902
+ "type": "function",
903
+ "name": "future_A_gamma_time",
904
+ "inputs": [],
905
+ "outputs": [
906
+ {
907
+ "name": "",
908
+ "type": "uint256"
909
+ }
910
+ ],
911
+ "gas": 2138
912
+ },
913
+ {
914
+ "stateMutability": "view",
915
+ "type": "function",
916
+ "name": "allowed_extra_profit",
917
+ "inputs": [],
918
+ "outputs": [
919
+ {
920
+ "name": "",
921
+ "type": "uint256"
922
+ }
923
+ ],
924
+ "gas": 2168
925
+ },
926
+ {
927
+ "stateMutability": "view",
928
+ "type": "function",
929
+ "name": "future_allowed_extra_profit",
930
+ "inputs": [],
931
+ "outputs": [
932
+ {
933
+ "name": "",
934
+ "type": "uint256"
935
+ }
936
+ ],
937
+ "gas": 2198
938
+ },
939
+ {
940
+ "stateMutability": "view",
941
+ "type": "function",
942
+ "name": "fee_gamma",
943
+ "inputs": [],
944
+ "outputs": [
945
+ {
946
+ "name": "",
947
+ "type": "uint256"
948
+ }
949
+ ],
950
+ "gas": 2228
951
+ },
952
+ {
953
+ "stateMutability": "view",
954
+ "type": "function",
955
+ "name": "future_fee_gamma",
956
+ "inputs": [],
957
+ "outputs": [
958
+ {
959
+ "name": "",
960
+ "type": "uint256"
961
+ }
962
+ ],
963
+ "gas": 2258
964
+ },
965
+ {
966
+ "stateMutability": "view",
967
+ "type": "function",
968
+ "name": "adjustment_step",
969
+ "inputs": [],
970
+ "outputs": [
971
+ {
972
+ "name": "",
973
+ "type": "uint256"
974
+ }
975
+ ],
976
+ "gas": 2288
977
+ },
978
+ {
979
+ "stateMutability": "view",
980
+ "type": "function",
981
+ "name": "future_adjustment_step",
982
+ "inputs": [],
983
+ "outputs": [
984
+ {
985
+ "name": "",
986
+ "type": "uint256"
987
+ }
988
+ ],
989
+ "gas": 2318
990
+ },
991
+ {
992
+ "stateMutability": "view",
993
+ "type": "function",
994
+ "name": "ma_half_time",
995
+ "inputs": [],
996
+ "outputs": [
997
+ {
998
+ "name": "",
999
+ "type": "uint256"
1000
+ }
1001
+ ],
1002
+ "gas": 2348
1003
+ },
1004
+ {
1005
+ "stateMutability": "view",
1006
+ "type": "function",
1007
+ "name": "future_ma_half_time",
1008
+ "inputs": [],
1009
+ "outputs": [
1010
+ {
1011
+ "name": "",
1012
+ "type": "uint256"
1013
+ }
1014
+ ],
1015
+ "gas": 2378
1016
+ },
1017
+ {
1018
+ "stateMutability": "view",
1019
+ "type": "function",
1020
+ "name": "mid_fee",
1021
+ "inputs": [],
1022
+ "outputs": [
1023
+ {
1024
+ "name": "",
1025
+ "type": "uint256"
1026
+ }
1027
+ ],
1028
+ "gas": 2408
1029
+ },
1030
+ {
1031
+ "stateMutability": "view",
1032
+ "type": "function",
1033
+ "name": "out_fee",
1034
+ "inputs": [],
1035
+ "outputs": [
1036
+ {
1037
+ "name": "",
1038
+ "type": "uint256"
1039
+ }
1040
+ ],
1041
+ "gas": 2438
1042
+ },
1043
+ {
1044
+ "stateMutability": "view",
1045
+ "type": "function",
1046
+ "name": "admin_fee",
1047
+ "inputs": [],
1048
+ "outputs": [
1049
+ {
1050
+ "name": "",
1051
+ "type": "uint256"
1052
+ }
1053
+ ],
1054
+ "gas": 2468
1055
+ },
1056
+ {
1057
+ "stateMutability": "view",
1058
+ "type": "function",
1059
+ "name": "future_mid_fee",
1060
+ "inputs": [],
1061
+ "outputs": [
1062
+ {
1063
+ "name": "",
1064
+ "type": "uint256"
1065
+ }
1066
+ ],
1067
+ "gas": 2498
1068
+ },
1069
+ {
1070
+ "stateMutability": "view",
1071
+ "type": "function",
1072
+ "name": "future_out_fee",
1073
+ "inputs": [],
1074
+ "outputs": [
1075
+ {
1076
+ "name": "",
1077
+ "type": "uint256"
1078
+ }
1079
+ ],
1080
+ "gas": 2528
1081
+ },
1082
+ {
1083
+ "stateMutability": "view",
1084
+ "type": "function",
1085
+ "name": "future_admin_fee",
1086
+ "inputs": [],
1087
+ "outputs": [
1088
+ {
1089
+ "name": "",
1090
+ "type": "uint256"
1091
+ }
1092
+ ],
1093
+ "gas": 2558
1094
+ },
1095
+ {
1096
+ "stateMutability": "view",
1097
+ "type": "function",
1098
+ "name": "balances",
1099
+ "inputs": [
1100
+ {
1101
+ "name": "arg0",
1102
+ "type": "uint256"
1103
+ }
1104
+ ],
1105
+ "outputs": [
1106
+ {
1107
+ "name": "",
1108
+ "type": "uint256"
1109
+ }
1110
+ ],
1111
+ "gas": 2633
1112
+ },
1113
+ {
1114
+ "stateMutability": "view",
1115
+ "type": "function",
1116
+ "name": "D",
1117
+ "inputs": [],
1118
+ "outputs": [
1119
+ {
1120
+ "name": "",
1121
+ "type": "uint256"
1122
+ }
1123
+ ],
1124
+ "gas": 2618
1125
+ },
1126
+ {
1127
+ "stateMutability": "view",
1128
+ "type": "function",
1129
+ "name": "owner",
1130
+ "inputs": [],
1131
+ "outputs": [
1132
+ {
1133
+ "name": "",
1134
+ "type": "address"
1135
+ }
1136
+ ],
1137
+ "gas": 2648
1138
+ },
1139
+ {
1140
+ "stateMutability": "view",
1141
+ "type": "function",
1142
+ "name": "future_owner",
1143
+ "inputs": [],
1144
+ "outputs": [
1145
+ {
1146
+ "name": "",
1147
+ "type": "address"
1148
+ }
1149
+ ],
1150
+ "gas": 2678
1151
+ },
1152
+ {
1153
+ "stateMutability": "view",
1154
+ "type": "function",
1155
+ "name": "xcp_profit",
1156
+ "inputs": [],
1157
+ "outputs": [
1158
+ {
1159
+ "name": "",
1160
+ "type": "uint256"
1161
+ }
1162
+ ],
1163
+ "gas": 2708
1164
+ },
1165
+ {
1166
+ "stateMutability": "view",
1167
+ "type": "function",
1168
+ "name": "xcp_profit_a",
1169
+ "inputs": [],
1170
+ "outputs": [
1171
+ {
1172
+ "name": "",
1173
+ "type": "uint256"
1174
+ }
1175
+ ],
1176
+ "gas": 2738
1177
+ },
1178
+ {
1179
+ "stateMutability": "view",
1180
+ "type": "function",
1181
+ "name": "virtual_price",
1182
+ "inputs": [],
1183
+ "outputs": [
1184
+ {
1185
+ "name": "",
1186
+ "type": "uint256"
1187
+ }
1188
+ ],
1189
+ "gas": 2768
1190
+ },
1191
+ {
1192
+ "stateMutability": "view",
1193
+ "type": "function",
1194
+ "name": "is_killed",
1195
+ "inputs": [],
1196
+ "outputs": [
1197
+ {
1198
+ "name": "",
1199
+ "type": "bool"
1200
+ }
1201
+ ],
1202
+ "gas": 2798
1203
+ },
1204
+ {
1205
+ "stateMutability": "view",
1206
+ "type": "function",
1207
+ "name": "kill_deadline",
1208
+ "inputs": [],
1209
+ "outputs": [
1210
+ {
1211
+ "name": "",
1212
+ "type": "uint256"
1213
+ }
1214
+ ],
1215
+ "gas": 2828
1216
+ },
1217
+ {
1218
+ "stateMutability": "view",
1219
+ "type": "function",
1220
+ "name": "transfer_ownership_deadline",
1221
+ "inputs": [],
1222
+ "outputs": [
1223
+ {
1224
+ "name": "",
1225
+ "type": "uint256"
1226
+ }
1227
+ ],
1228
+ "gas": 2858
1229
+ },
1230
+ {
1231
+ "stateMutability": "view",
1232
+ "type": "function",
1233
+ "name": "admin_actions_deadline",
1234
+ "inputs": [],
1235
+ "outputs": [
1236
+ {
1237
+ "name": "",
1238
+ "type": "uint256"
1239
+ }
1240
+ ],
1241
+ "gas": 2888
1242
+ },
1243
+ {
1244
+ "stateMutability": "view",
1245
+ "type": "function",
1246
+ "name": "reward_receiver",
1247
+ "inputs": [],
1248
+ "outputs": [
1249
+ {
1250
+ "name": "",
1251
+ "type": "address"
1252
+ }
1253
+ ],
1254
+ "gas": 2918
1255
+ },
1256
+ {
1257
+ "stateMutability": "view",
1258
+ "type": "function",
1259
+ "name": "admin_fee_receiver",
1260
+ "inputs": [],
1261
+ "outputs": [
1262
+ {
1263
+ "name": "",
1264
+ "type": "address"
1265
+ }
1266
+ ],
1267
+ "gas": 2948
1268
+ }
1269
+ ]