-
Notifications
You must be signed in to change notification settings - Fork 5
/
cellarDataMap.ts
143 lines (140 loc) · 5.6 KB
/
cellarDataMap.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// TODO: Move content to a cms
import { config } from "utils/config"
import { CellarDataMap, CellarAddressDataMap } from "./types"
import {
aaveStable,
ethBtcTrend,
ethBtcMomentum,
steadyEth,
steadyBtc,
steadyUni,
steadyMatic,
realYieldUsd,
realYieldEth,
defiStars,
realYieldLink,
realYield1Inch,
realYieldENS,
realYieldSNX,
realYieldUNI,
realYieldBTC,
fraximal,
turboSWETH,
ethTrendGrowth,
turboGHO,
turboSTETH,
turboSOMM,
testArbitrumRealYieldUsd,
turboeETH,
turboSTETHstETHDeposit,
realYieldEthArb,
morphoETH,
turbodivETH,
turboETHx,
turboeETHV2,
realYieldUsdArb,
turborsETH,
realYieldEthOpt,
turboezETH,
realYieldEthScroll,
} from "./strategies"
let cellarConfig: CellarDataMap
cellarConfig = {
// ! NOTE THIS DETERMINES INITIAL ORDERING
//[config.CONTRACT.TEST_ARBITRUM_REAL_YIELD_USD.SLUG]:testArbitrumRealYieldUsd, //! Multichain testing contract
// [config.CONTRACT.REAL_YIELD_ETH_SCROLL.SLUG]: realYieldEthScroll,
[config.CONTRACT.TURBO_EZETH.SLUG]: turboezETH,
[config.CONTRACT.TURBO_RSETH.SLUG]: turborsETH,
[config.CONTRACT.REAL_YIELD_ETH_OPT.SLUG]: realYieldEthOpt,
[config.CONTRACT.REAL_YIELD_USD_ARB.SLUG]: realYieldUsdArb,
[config.CONTRACT.REAL_YIELD_ETH_ARB.SLUG]: realYieldEthArb,
[config.CONTRACT.REAL_YIELD_ETH.SLUG]: realYieldEth,
[config.CONTRACT.TURBO_EETHV2.SLUG]: turboeETHV2,
[config.CONTRACT.TURBO_STETH.SLUG]: turboSTETH,
[config.CONTRACT.REAL_YIELD_BTC.SLUG]: realYieldBTC,
[config.CONTRACT.TURBO_STETH_STETH_DEPOSIT.SLUG]:
turboSTETHstETHDeposit,
[config.CONTRACT.REAL_YIELD_USD.SLUG]: realYieldUsd,
[config.CONTRACT.MORPHO_ETH.SLUG]: morphoETH,
[config.CONTRACT.TURBO_SWETH.SLUG]: turboSWETH,
[config.CONTRACT.FRAXIMAL.SLUG]: fraximal,
[config.CONTRACT.TURBO_DIVETH.SLUG]: turbodivETH,
[config.CONTRACT.TURBO_EETH.SLUG]: turboeETH,
[config.CONTRACT.TURBO_GHO.SLUG]: turboGHO,
[config.CONTRACT.TURBO_SOMM.SLUG]: turboSOMM,
[config.CONTRACT.REAL_YIELD_LINK.SLUG]: realYieldLink,
[config.CONTRACT.ETH_TREND_GROWTH.SLUG]: ethTrendGrowth,
[config.CONTRACT.TURBO_ETHX.SLUG]: turboETHx,
[config.CONTRACT.STEADY_UNI.SLUG]: steadyUni,
[config.CONTRACT.REAL_YIELD_UNI.SLUG]: realYieldUNI,
[config.CONTRACT.DEFI_STARS.SLUG]: defiStars,
[config.CONTRACT.REAL_YIELD_ENS.SLUG]: realYieldENS,
[config.CONTRACT.REAL_YIELD_SNX.SLUG]: realYieldSNX,
[config.CONTRACT.REAL_YIELD_1Inch.SLUG]: realYield1Inch,
[config.CONTRACT.ETH_BTC_TREND_CELLAR.SLUG]: ethBtcTrend,
[config.CONTRACT.ETH_BTC_MOMENTUM_CELLAR.SLUG]: ethBtcMomentum,
[config.CONTRACT.AAVE_V2_STABLE_CELLAR.SLUG]: aaveStable,
[config.CONTRACT.STEADY_MATIC.SLUG]: steadyMatic,
[config.CONTRACT.STEADY_ETH.SLUG]: steadyEth,
[config.CONTRACT.STEADY_BTC.SLUG]: steadyBtc,
}
// Create another map of String to CellarData
// ! For not ethereum cellars the key must be {cellarAddress}-{chainId}
let cellarAddressConfig: CellarAddressDataMap
cellarAddressConfig = {
[config.CONTRACT.REAL_YIELD_ETH_SCROLL.ADDRESS.toLowerCase() +
"-scroll"]: realYieldEthScroll,
[config.CONTRACT.REAL_YIELD_ETH_OPT.ADDRESS.toLowerCase() +
"-optimism"]: realYieldEthOpt,
[config.CONTRACT.TURBO_EZETH.ADDRESS.toLowerCase()]: turboezETH,
[config.CONTRACT.TURBO_RSETH.ADDRESS.toLowerCase()]: turborsETH,
[config.CONTRACT.REAL_YIELD_USD_ARB.ADDRESS.toLowerCase() +
"-arbitrum"]: realYieldUsdArb,
[config.CONTRACT.REAL_YIELD_ETH_ARB.ADDRESS.toLowerCase() +
"-arbitrum"]: realYieldEthArb,
[config.CONTRACT.TURBO_EETHV2.ADDRESS.toLowerCase()]: turboeETHV2,
[config.CONTRACT.TURBO_ETHX.ADDRESS.toLowerCase()]: turboETHx,
[config.CONTRACT.TURBO_DIVETH.ADDRESS.toLowerCase()]: turbodivETH,
[config.CONTRACT.MORPHO_ETH.ADDRESS.toLowerCase()]: morphoETH,
[config.CONTRACT.TEST_ARBITRUM_REAL_YIELD_USD.ADDRESS.toLowerCase() +
"-arbitrum"]: testArbitrumRealYieldUsd,
[config.CONTRACT.TURBO_STETH_STETH_DEPOSIT.ADDRESS.toLowerCase()]:
turboSTETHstETHDeposit,
[config.CONTRACT.TURBO_EETH.ADDRESS.toLowerCase()]: turboeETH,
[config.CONTRACT.TURBO_SOMM.ADDRESS.toLowerCase()]: turboSOMM,
[config.CONTRACT.TURBO_STETH.ADDRESS.toLowerCase()]: turboSTETH,
[config.CONTRACT.ETH_TREND_GROWTH.ADDRESS.toLowerCase()]:
ethTrendGrowth,
[config.CONTRACT.TURBO_GHO.ADDRESS.toLowerCase()]: turboGHO,
[config.CONTRACT.TURBO_SWETH.ADDRESS.toLowerCase()]: turboSWETH,
[config.CONTRACT.REAL_YIELD_ETH.ADDRESS.toLowerCase()]:
realYieldEth,
[config.CONTRACT.REAL_YIELD_BTC.ADDRESS.toLowerCase()]:
realYieldBTC,
[config.CONTRACT.REAL_YIELD_USD.ADDRESS.toLowerCase()]:
realYieldUsd,
[config.CONTRACT.FRAXIMAL.ADDRESS.toLowerCase()]: fraximal,
[config.CONTRACT.REAL_YIELD_LINK.ADDRESS.toLowerCase()]:
realYieldLink,
[config.CONTRACT.ETH_BTC_TREND_CELLAR.ADDRESS.toLowerCase()]:
ethBtcTrend,
[config.CONTRACT.ETH_BTC_MOMENTUM_CELLAR.ADDRESS.toLowerCase()]:
ethBtcMomentum,
[config.CONTRACT.DEFI_STARS.ADDRESS.toLowerCase()]: defiStars,
[config.CONTRACT.REAL_YIELD_ENS.ADDRESS.toLowerCase()]:
realYieldENS,
[config.CONTRACT.REAL_YIELD_UNI.ADDRESS.toLowerCase()]:
realYieldUNI,
[config.CONTRACT.REAL_YIELD_SNX.ADDRESS.toLowerCase()]:
realYieldSNX,
[config.CONTRACT.REAL_YIELD_1Inch.ADDRESS.toLowerCase()]:
realYield1Inch,
[config.CONTRACT.AAVE_V2_STABLE_CELLAR.ADDRESS.toLowerCase()]:
aaveStable,
[config.CONTRACT.STEADY_UNI.ADDRESS.toLowerCase()]: steadyUni,
[config.CONTRACT.STEADY_MATIC.ADDRESS.toLowerCase()]: steadyMatic,
[config.CONTRACT.STEADY_ETH.ADDRESS.toLowerCase()]: steadyEth,
[config.CONTRACT.STEADY_BTC.ADDRESS.toLowerCase()]: steadyBtc,
}
export const CellaAddressDataMap = cellarAddressConfig
export const cellarDataMap = cellarConfig