@@ -10,55 +10,72 @@ export type TokenTypeStrategy =
1010
1111export interface StrategyConfigPayload {
1212 name : string ;
13- // token symbol of the strategy, is used as key in the strategies list
14- // ideally should be equal to sdk-gov-legacy SupportedSymbol or, if token is not present in that list, should be equal to symbol which provides sdk
13+ /**
14+ * Token symbol of the strategy, is used as key in the strategies list.
15+ */
1516 id : string ;
16- // token address of the strategy
17+ /**
18+ * Token address of the strategy
19+ */
1720 tokenOutAddress : Address ;
18- // chain id and network type as they are written in sdk. wrong entries are being omitted
21+ /**
22+ * Chain id and network type as they are written in sdk. Wrong entries are being omitted
23+ */
1924 chainId : number ;
2025 network : string ;
21- // if the chain doesn't have credit managers - strategy won't be shown on that chain
26+ /**
27+ * Credit managers strategy can be opened on. If it doesn't present - strategy won't be shown
28+ */
2229 creditManagers : Array < Address > ;
23- // strategy type; used for filtering
30+ /**
31+ * Strategy type. Used for filtering
32+ */
2433 strategyType : [ TokenTypeStrategy ] ;
2534
26- /*
27- undefined - released
28- number - one value for the current chain
29- In ms, for example: 1740398400_000
30- */
35+ /**
36+ * undefined - released;
37+ * number - one value for the current chain.
38+ * In ms, for example: 1740398400_000;
39+ */
3140 releaseAt ?: number ;
32- // an options to show strategies in dev environment only
33- // undefined, false = no
41+ /**
42+ * An option to show strategies in dev environment only.
43+ * undefined, false = no.
44+ */
3445 hideInProd ?: boolean ;
35- /*
36- undefined - no restrictions
37- number - one value for the current chain
38- */
46+ /** An option to show strategies in main app only.
47+ * undefined, true = yes; false = no.
48+ */
49+ showInMainApp ?: boolean ;
50+ /**
51+ * undefined - no restrictions.
52+ * number - one value for the current chain.
53+ */
3954 maxLeverage ?: number ;
40- /*
41- undefined, false = no
42- PartialRecord<number, boolean> - delayed withdrawal for each chain separately
43- */
55+ /**
56+ * undefined, false = no.
57+ * PartialRecord<number, boolean> - delayed withdrawal for each chain separately.
58+ */
4459 delayedWithdrawal ?: boolean ;
45- /*
46- previously known as "bad asset", an asset closing account with may need extra capital.
47- undefined, false = no
48- VersionRange - problems only in this range
49- */
60+ /**
61+ * previously known as "bad asset", an asset closing account with may need extra capital.
62+ * undefined, false = no.
63+ * VersionRange - problems only in this range.
64+ */
5065 issuesOnClose ?: boolean | VersionRange ;
51- /*
52- pools in which current token has zero slippage
53- pool - boolean
54- */
66+ /**
67+ * pools in which current token has zero slippage.
68+ * pool - boolean.
69+ */
5570 zeroSlippage ?: PartialRecord < Address , boolean > ;
56- // pools in which additional quota should be bought for current token
57- // pool - boolean
71+ /**
72+ * pools in which additional quota should be bought for current token.
73+ * pool - boolean
74+ */
5875 additionalRewardQuotas ?: PartialRecord < Address , Address [ ] > ;
5976 /**
60- * If address provided - it is considered that this collateral can be used across all listed cms
61- * If object provided - it is considered that this collateral can be used only on the specified cm
77+ * If address provided - it is considered that this collateral can be used across all listed cms.
78+ * If object provided - it is considered that this collateral can be used only on the specified cm.
6279 */
6380 additionalCollaterals ?: Array < Address | { token : Address ; cm : Address } > ;
6481}
0 commit comments