@@ -22,6 +22,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
22
22
symbol : 'AAVE' ,
23
23
tokenName : 'AAVE' ,
24
24
decimals : 18 ,
25
+ isActive : false ,
25
26
contracts : {
26
27
token : 'AAVE' ,
27
28
pip : 'PIP_AAVE' ,
@@ -51,6 +52,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
51
52
symbol : 'BAL' ,
52
53
tokenName : 'BAL' ,
53
54
decimals : 18 ,
55
+ isActive : false ,
54
56
contracts : {
55
57
token : 'BAL' ,
56
58
pip : 'PIP_BAL' ,
@@ -80,6 +82,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
80
82
symbol : 'BAT' ,
81
83
tokenName : 'BAT' ,
82
84
decimals : 18 ,
85
+ isActive : false ,
83
86
contracts : {
84
87
token : 'BAT' ,
85
88
pip : 'PIP_BAT' ,
@@ -109,6 +112,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
109
112
symbol : 'COMP' ,
110
113
tokenName : 'COMP' ,
111
114
decimals : 18 ,
115
+ isActive : false ,
112
116
contracts : {
113
117
token : 'COMP' ,
114
118
pip : 'PIP_COMP' ,
@@ -138,6 +142,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
138
142
symbol : 'GNO' ,
139
143
tokenName : 'GNO' ,
140
144
decimals : 18 ,
145
+ isActive : false ,
141
146
contracts : {
142
147
token : 'GNO' ,
143
148
pip : 'PIP_GNO' ,
@@ -163,6 +168,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
163
168
symbol : 'ETH' ,
164
169
tokenName : 'ETH' ,
165
170
decimals : 18 ,
171
+ isActive : true ,
166
172
contracts : {
167
173
token : 'ETH' ,
168
174
pip : 'PIP_ETH' ,
@@ -192,6 +198,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
192
198
symbol : 'ETH' ,
193
199
tokenName : 'ETH' ,
194
200
decimals : 18 ,
201
+ isActive : true ,
195
202
contracts : {
196
203
token : 'ETH' ,
197
204
pip : 'PIP_ETH' ,
@@ -221,6 +228,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
221
228
symbol : 'ETH' ,
222
229
tokenName : 'ETH' ,
223
230
decimals : 18 ,
231
+ isActive : true ,
224
232
contracts : {
225
233
token : 'ETH' ,
226
234
pip : 'PIP_ETH' ,
@@ -250,6 +258,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
250
258
symbol : 'GUSD' ,
251
259
tokenName : 'GUSD' ,
252
260
decimals : 2 ,
261
+ isActive : false ,
253
262
contracts : {
254
263
token : 'GUSD' ,
255
264
pip : 'PIP_GUSD' ,
@@ -279,6 +288,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
279
288
symbol : 'KNC' ,
280
289
tokenName : 'KNC' ,
281
290
decimals : 18 ,
291
+ isActive : false ,
282
292
contracts : {
283
293
token : 'KNC' ,
284
294
pip : 'PIP_KNC' ,
@@ -308,6 +318,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
308
318
symbol : 'LINK' ,
309
319
tokenName : 'LINK' ,
310
320
decimals : 18 ,
321
+ isActive : false ,
311
322
contracts : {
312
323
token : 'LINK' ,
313
324
pip : 'PIP_LINK' ,
@@ -337,6 +348,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
337
348
symbol : 'LRC' ,
338
349
tokenName : 'LRC' ,
339
350
decimals : 18 ,
351
+ isActive : false ,
340
352
contracts : {
341
353
token : 'LRC' ,
342
354
pip : 'PIP_LRC' ,
@@ -366,6 +378,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
366
378
symbol : 'MANA' ,
367
379
tokenName : 'MANA' ,
368
380
decimals : 18 ,
381
+ isActive : false ,
369
382
contracts : {
370
383
token : 'MANA' ,
371
384
pip : 'PIP_MANA' ,
@@ -395,6 +408,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
395
408
symbol : 'PAXUSD' ,
396
409
tokenName : 'PAXUSD' ,
397
410
decimals : 18 ,
411
+ isActive : false ,
398
412
contracts : {
399
413
token : 'PAXUSD' ,
400
414
pip : 'PIP_PAXUSD' ,
@@ -425,6 +439,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
425
439
symbol : 'RENBTC' ,
426
440
tokenName : 'RENBTC' ,
427
441
decimals : 8 ,
442
+ isActive : false ,
428
443
contracts : {
429
444
token : 'RENBTC' ,
430
445
pip : 'PIP_RENBTC' ,
@@ -454,6 +469,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
454
469
symbol : 'TUSD' ,
455
470
tokenName : 'TUSD' ,
456
471
decimals : 18 ,
472
+ isActive : false ,
457
473
contracts : {
458
474
token : 'TUSD' ,
459
475
pip : 'PIP_TUSD' ,
@@ -483,6 +499,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
483
499
symbol : 'UNI' ,
484
500
tokenName : 'UNI' ,
485
501
decimals : 18 ,
502
+ isActive : false ,
486
503
contracts : {
487
504
token : 'UNI' ,
488
505
pip : 'PIP_UNI' ,
@@ -512,6 +529,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
512
529
symbol : 'USDC' ,
513
530
tokenName : 'USDC' ,
514
531
decimals : 6 ,
532
+ isActive : false ,
515
533
contracts : {
516
534
token : 'USDC' ,
517
535
pip : 'PIP_USDC' ,
@@ -541,6 +559,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
541
559
symbol : 'USDC' ,
542
560
tokenName : 'USDC' ,
543
561
decimals : 6 ,
562
+ isActive : false ,
544
563
contracts : {
545
564
token : 'USDC' ,
546
565
pip : 'PIP_USDC' ,
@@ -570,6 +589,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
570
589
symbol : 'USDT' ,
571
590
tokenName : 'USDT' ,
572
591
decimals : 6 ,
592
+ isActive : false ,
573
593
contracts : {
574
594
token : 'USDT' ,
575
595
pip : 'PIP_USDT' ,
@@ -599,6 +619,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
599
619
symbol : 'WBTC' ,
600
620
tokenName : 'WBTC' ,
601
621
decimals : 8 ,
622
+ isActive : true ,
602
623
contracts : {
603
624
token : 'WBTC' ,
604
625
pip : 'PIP_WBTC' ,
@@ -628,6 +649,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
628
649
symbol : 'WBTC' ,
629
650
tokenName : 'WBTC' ,
630
651
decimals : 8 ,
652
+ isActive : true ,
631
653
contracts : {
632
654
token : 'WBTC' ,
633
655
pip : 'PIP_WBTC' ,
@@ -657,6 +679,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
657
679
symbol : 'WBTC' ,
658
680
tokenName : 'WBTC' ,
659
681
decimals : 8 ,
682
+ isActive : true ,
660
683
contracts : {
661
684
token : 'WBTC' ,
662
685
pip : 'PIP_WBTC' ,
@@ -686,6 +709,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
686
709
symbol : 'YFI' ,
687
710
tokenName : 'YFI' ,
688
711
decimals : 18 ,
712
+ isActive : false ,
689
713
contracts : {
690
714
token : 'YFI' ,
691
715
pip : 'PIP_YFI' ,
@@ -715,6 +739,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
715
739
symbol : 'ZRX' ,
716
740
tokenName : 'ZRX' ,
717
741
decimals : 18 ,
742
+ isActive : false ,
718
743
contracts : {
719
744
token : 'ZRX' ,
720
745
pip : 'PIP_ZRX' ,
@@ -744,6 +769,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
744
769
symbol : 'MATIC' ,
745
770
tokenName : 'MATIC' ,
746
771
decimals : 18 ,
772
+ isActive : false ,
747
773
contracts : {
748
774
token : 'MATIC' ,
749
775
pip : 'PIP_MATIC' ,
@@ -773,6 +799,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
773
799
symbol : 'WSTETH' ,
774
800
tokenName : 'WSTETH' ,
775
801
decimals : 18 ,
802
+ isActive : true ,
776
803
contracts : {
777
804
token : 'WSTETH' ,
778
805
pip : 'PIP_WSTETH' ,
@@ -794,6 +821,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
794
821
symbol : 'WSTETH' ,
795
822
tokenName : 'WSTETH' ,
796
823
decimals : 18 ,
824
+ isActive : true ,
797
825
contracts : {
798
826
token : 'WSTETH' ,
799
827
pip : 'PIP_WSTETH' ,
@@ -815,6 +843,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
815
843
symbol : 'CRVV1ETHSTETH' ,
816
844
tokenName : 'CRVV1ETHSTETH' ,
817
845
decimals : 18 ,
846
+ isActive : false ,
818
847
contracts : {
819
848
token : 'CRVV1ETHSTETH' ,
820
849
pip : 'PIP_CRVV1ETHSTETH' ,
@@ -836,6 +865,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
836
865
symbol : 'UNIV2DAIETH' ,
837
866
tokenName : 'UNIV2DAIETH' ,
838
867
decimals : 18 ,
868
+ isActive : false ,
839
869
contracts : {
840
870
token : 'UNIV2DAIETH' ,
841
871
pip : 'PIP_UNIV2DAIETH' ,
@@ -858,6 +888,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
858
888
symbol : 'UNIV2USDCETH' ,
859
889
tokenName : 'UNIV2USDCETH' ,
860
890
decimals : 18 ,
891
+ isActive : false ,
861
892
contracts : {
862
893
token : 'UNIV2USDCETH' ,
863
894
pip : 'PIP_UNIV2USDCETH' ,
@@ -880,6 +911,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
880
911
symbol : 'UNIV2ETHUSDT' ,
881
912
tokenName : 'UNIV2ETHUSDT' ,
882
913
decimals : 18 ,
914
+ isActive : false ,
883
915
contracts : {
884
916
token : 'UNIV2ETHUSDT' ,
885
917
pip : 'PIP_UNIV2ETHUSDT' ,
@@ -902,6 +934,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
902
934
symbol : 'UNIV2WBTCDAI' ,
903
935
tokenName : 'UNIV2WBTCDAI' ,
904
936
decimals : 18 ,
937
+ isActive : false ,
905
938
contracts : {
906
939
token : 'UNIV2WBTCDAI' ,
907
940
pip : 'PIP_UNIV2WBTCDAI' ,
@@ -924,6 +957,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
924
957
symbol : 'UNIV2WBTCETH' ,
925
958
tokenName : 'UNIV2WBTCETH' ,
926
959
decimals : 18 ,
960
+ isActive : false ,
927
961
contracts : {
928
962
token : 'UNIV2WBTCETH' ,
929
963
pip : 'PIP_UNIV2WBTCETH' ,
@@ -946,6 +980,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
946
980
symbol : 'UNIV2LINKETH' ,
947
981
tokenName : 'UNIV2LINKETH' ,
948
982
decimals : 18 ,
983
+ isActive : false ,
949
984
contracts : {
950
985
token : 'UNIV2LINKETH' ,
951
986
pip : 'PIP_UNIV2LINKETH' ,
@@ -968,6 +1003,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
968
1003
symbol : 'UNIV2UNIETH' ,
969
1004
tokenName : 'UNIV2UNIETH' ,
970
1005
decimals : 18 ,
1006
+ isActive : false ,
971
1007
contracts : {
972
1008
token : 'UNIV2UNIETH' ,
973
1009
pip : 'PIP_UNIV2UNIETH' ,
@@ -990,6 +1026,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
990
1026
symbol : 'UNIV2AAVEETH' ,
991
1027
tokenName : 'UNIV2AAVEETH' ,
992
1028
decimals : 18 ,
1029
+ isActive : false ,
993
1030
contracts : {
994
1031
token : 'UNIV2AAVEETH' ,
995
1032
pip : 'PIP_UNIV2AAVEETH' ,
@@ -1012,6 +1049,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
1012
1049
symbol : 'UNIV2DAIUSDT' ,
1013
1050
tokenName : 'UNIV2DAIUSDT' ,
1014
1051
decimals : 18 ,
1052
+ isActive : false ,
1015
1053
contracts : {
1016
1054
token : 'UNIV2DAIUSDT' ,
1017
1055
pip : 'PIP_UNIV2DAIUSDT' ,
@@ -1034,6 +1072,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
1034
1072
symbol : 'UNIV2DAIUSDC' ,
1035
1073
tokenName : 'UNIV2DAIUSDC' ,
1036
1074
decimals : 18 ,
1075
+ isActive : false ,
1037
1076
contracts : {
1038
1077
token : 'UNIV2DAIUSDC' ,
1039
1078
pip : 'PIP_UNIV2DAIUSDC' ,
@@ -1056,6 +1095,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
1056
1095
symbol : 'RETH' ,
1057
1096
tokenName : 'RETH' ,
1058
1097
decimals : 18 ,
1098
+ isActive : false ,
1059
1099
contracts : {
1060
1100
token : 'RETH' ,
1061
1101
pip : 'PIP_RETH' ,
@@ -1077,6 +1117,7 @@ const COLLATERALS: Record<string, CollateralConfig> = {
1077
1117
symbol : 'MCD_GOV' ,
1078
1118
tokenName : 'MKR' ,
1079
1119
decimals : 18 ,
1120
+ isActive : true ,
1080
1121
contracts : {
1081
1122
token : 'MCD_GOV' ,
1082
1123
pip : 'PIP_MKR' ,
@@ -1118,4 +1159,10 @@ export const getAllCollateralTypes = function (): string[] {
1118
1159
return Object . keys ( COLLATERALS ) . sort ( ) ;
1119
1160
} ;
1120
1161
1162
+ export const getActiveCollateralTypes = function ( ) : string [ ] {
1163
+ return Object . values ( COLLATERALS )
1164
+ . filter ( config => config . isActive )
1165
+ . map ( config => config . ilk ) ;
1166
+ } ;
1167
+
1121
1168
export default COLLATERALS ;
0 commit comments