-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstant.ts
240 lines (216 loc) · 9.8 KB
/
constant.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
export enum CONTRACT_NAMES {
// Token
ERC20 = "ERC20",
IERC20 = "IERC20",
// MOCK
MockWETH = "MockWETH",
MockERC20 = "MockERC20",
MockCErc20 = "MockCErc20",
MockCErc20_2 = "MockCErc20_2",
MockFeedRegistry = "MockFeedRegistry",
MockOracle = "MockOracle",
// Wrapper
WERC20 = "WERC20",
WMasterChef = "WMasterChef",
WIchiFarm = "WIchiFarm",
WCurveGauge = "WCurveGauge",
WConvexPools = "WConvexPools",
WAuraPools = "WAuraPools",
WStakingRewards = "WStakingRewards",
// Oracles
BandAdapterOracle = "BandAdapterOracle",
ChainlinkAdapterOracle = "ChainlinkAdapterOracle",
ChainlinkAdapterOracleL2 = "ChainlinkAdapterOracleL2",
CoreOracle = "CoreOracle",
UniswapV2Oracle = "UniswapV2Oracle",
BalancerPairOracle = "BalancerPairOracle",
ERC20KP3ROracle = "ERC20KP3ROracle",
CurveOracle = "CurveOracle",
UniswapV3AdapterOracle = "UniswapV3AdapterOracle",
AggregatorOracle = "AggregatorOracle",
IchiVaultOracle = "IchiVaultOracle",
// Protocol
BlueBerryBank = "BlueBerryBank",
HardVault = "HardVault",
SoftVault = "SoftVault",
ProtocolConfig = "ProtocolConfig",
FeeManager = "FeeManager",
// Spell
UniswapV2SpellV1 = "UniswapV2SpellV1",
SushiswapSpellV1 = "SushiswapSpellV1",
BalancerSpellV1 = "BalancerSpellV1",
ConvexSpell = "ConvexSpell",
CurveSpell = "CurveSpell",
IchiSpell = "IchiSpell",
AuraSpell = "AuraSpell",
// Interface
IWETH = "IWETH",
IComptroller = "IComptroller",
ICEtherEx = "ICEtherEx",
ICErc20 = "ICErc20",
ICurvePool = "ICurvePool",
ICurveRegistry = "ICurveRegistry",
IERC20Metadata = "IERC20Metadata",
IUniswapV2Pair = "IUniswapV2Pair",
IUniswapV2Router02 = "IUniswapV2Router02",
IUniswapV3Pool = "IUniswapV3Pool",
IICHIVault = "IICHIVault",
}
export const ADDRESS_GOERLI = {
// Tokens
MockUSDC: "0xcBB1082F4cD910E0A6C788Bc8F3eC07Dd1890670",
MockIchiV1: "0x61a14CDC801C6eC337c7B1aC19270Fe7Ad792fC6",
MockIchiV2: "0xe9B6CcC44dbA223ccF378aA630e63Bec52AaC392",
ALCX: "0x9eD02f1C12AdB524EC901f37cB4d9b183B2e578d",
BAL: "0x6c5ADE58aB4417012CBA549e5f8D7F71aE7Ede74",
BLB: "0x745229756e606C88194be866B789A7a9d90BDEc5",
CRV: "0xFA4cf6f231F198Ea682A0Dffd9B34679aF9Da754",
DAI: "0xA2add465F592488267a589a6C21760a65de30aF0",
LINK: "0xF22594caA98f2564139697C9B8424a68207a4C42",
MIM: "0x90906A608F04be509F70B4a87801e496dF463166",
OHM: "0x6d9E7fF19Abdc15017e1457c4e43d52E1Ada6325",
WETH: "0x203788323Ab4B29220972972E7dEF2a037523A49",
WBTC: "0x9Ca01f860BF0803625fF858EE63D3Fca68ECf43e",
SUSHI: "0x90EAB39BbF837021f7454e310f6dB04e66B002d8",
USDD: "0x1f194493aC9127e62E7f069A14aDCD51673Ea2D8",
bALCX: "0x5DC9BC86A2BdC1261a941dd9520E11b06fF2F0b0",
bBAL: "0xf7137e7AeFb7cC02353e6d4562144735EaDCFc9e",
bBLB: "0x2D5335Be8753Ad83E93E9a76F7f00933C0152eF8",
bCRV: "0x2cd7B693f8e42F50f3FEecfC2B4Fb464C6351ADe",
bDAI: "0x05ccc8fb1D450256210e51f51D066c941485899E",
bICHI: "0xeDE15d2aC91539900Ab1F90Aa5504A28C87Ed0cE",
bLINK: "0xA1D7D979eC1b16b97b6a80ba2cf19D01180DCF42",
bMIM: "0x681959b34C994211C803c6baa62D9b256487cd8e",
bOHM: "0x5F2a934580409738b9eE4E1068012d225AB4013f",
bSUSHI: "0xc16080Cb99f65fEe5A82e0A9aFDf6cA78E9DbF3D",
bUSDC: "0xF0D4beb18031e8EC2E434D2ee8C977303f700918",
bUSDD: "0x44AdbE2071a1fE267645AEF7df8e2FCdE0d595F8",
bWBTC: "0xc849451401ca1dB63A39B08546619D84289D51F5",
bWETH: "0x948E51bb758bbbf142CAe2f36FFDAe48a894a275",
CHAINLINK_BTC: "0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB",
CHAINLINK_ETH: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
CHAINLINK_USD: "0x0000000000000000000000000000000000000348",
// LP
UNI_V3_USDC_ALCX: "0xED3f4BCB5Fef0413D1517F8fC6A7E1D12028965A",
UNI_V3_USDC_BLB: "0x754485C767D52Dc9A1a4E7e847189749eE74fCe0",
UNI_V3_ICHI_USDC: "0x410513DD3e841Af4b71Ea2E42ddEdA99cfd7AC3a",
UNI_V3_USDC_WBTC: "0xfb6dABa71fC85E5a0595C17BE1a478D2198A0B48",
UNI_V3_USDC_WETH: "0xE665EF4F113d7a4E853A5360BaDdda7e3637894a",
// Compound
COMP: "0x91EB071424A1C0cE760a51CBf733B7863fe9E57B",
// ICHI
ICHI_VAULT_USDC: "0xe768eb7adF7b555FA3726e17eb0595c9850cCBb9",
ICHI_VAULT_USDC_BLB: "0xFa77E8Ecda5Cb0a0024eEe778AD7371592Dd8838",
ICHI_VAULT_USDC_ALCX: "0xd63fa53d09c29AE49ab3EBD41ea00274c10bb119",
ICHI_FARMING: "0x616b9E0598D92DF2c826DeeE5934c43269F9b62A",
};
export const ADDRESS = {
// Tokens
CRV: "0xd533a949740bb3306d119cc777fa900ba034cd52",
AURA: "0xc0c293ce456ff0ed870add98a0828dd4d2903dbf",
BAL: "0xba100000625a3754423978a60c9317c58a424e3D",
CVX: "0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B",
DAI: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
DPI: "0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b",
ETH: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
FRAX: "0x853d955aCEf822Db058eb8505911ED77F175b99e",
FRXETH: "0x5E8422345238F34275888049021821E8E08CAa1f",
ICHI: "0x111111517e4929D3dcbdfa7CCe55d30d4B6BC4d6",
ICHI_FARM: "0x903bEF1736CDdf2A537176cf3C64579C3867A881",
INDEX: "0x0954906da0Bf32d5479e25f46056d22f08464cab",
LINK: "0x514910771AF9Ca656af840dff83E8264EcF986CA",
MIM: "0x99D8a9C45b2ecA8864373A26D1459e3Dff1e17F3",
OHM: "0x64aa3364F17a4D01c6f1751Fd97C2BD3D7e7f1D5",
PERP: "0xbC396689893D065F41bc2C6EcbeE5e0085233447",
SNX: "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
SUSHI: "0x6B3595068778DD592e39A122f4f5a5cF09C90fE2",
UNI: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
USDT: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
USDC: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
WBTC: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
WETH: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
bUSDC: "0xdfd54ac444eEffc121E3937b4EAfc3C27d39Ae64",
bICHI: "0xBDf1431c153A2A48Ee05C1F24b9Dc476C93F75aE",
bDAI: "0xcB5C1909074C7ac1956DdaFfA1C2F1cbcc67b932",
bCRV: "0x23ED643A4C4542E223e7c7815d420d6d42556006",
bSUSHI: "0x8644e2126776daFE02C661939075740EC378Db00",
bWBTC: "0x506c190340F786c65548C0eE17c5EcDbba7807e0",
bWETH: "0x8E09cC1d00c9bd67f99590E1b2433bF4Db5309C3",
crETH: "0xD06527D5e56A3495252A528C4987003b712860eE",
crDAI: "0x92B767185fB3B04F881e3aC8e5B0662a027A1D9f",
crUSDC: "0x44fbebd2f576670a6c33f6fc0b00aa8c5753b322",
crUSDT: "0x797AAB1ce7c01eB727ab980762bA88e7133d2157",
cUSDC: "0x39AA39c021dfbaE8faC545936693aC917d5E7563",
cyUSDC: "0x76Eb2FE28b36B3ee97F3Adae0C69606eeDB2A37c",
CHAINLINK_BTC: "0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB",
CHAINLINK_ETH: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
CHAINLINK_USD: "0x0000000000000000000000000000000000000348",
// LP
UNI_V2_USDT_USDC: "0x3041cbd36888becc7bbcbc0045e3b1f144466f5f",
UNI_V2_DPI_WETH: "0x4d5ef58aAc27d99935E5b6B4A6778ff292059991",
UNI_V2_DAI_WETH: "0xa478c2975ab1ea89e8196811f51a7b7ade33eb11",
UNI_V2_USDT_WETH: "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852",
UNI_V2_USDC_CRV: "0x210a97ba874a8e279c95b350ae8ba143a143c159",
UNI_V2_USDC_WETH: "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",
UNI_V2_WBTC_WETH: "0xbb2b8038a1640196fbe3e38816f3e67cba72d940",
SUSHI_WETH_USDT: "0x06da0fd433c1a5d7a4faa01111c044910a184553",
SUSHI_ICHIV1_WETH: "0x9cD028B1287803250B1e226F0180EB725428d069",
BAL_WETH_DAI_8020: "0x8b6e6e7b5b3801fed2cafd4b22b8a16c2f2db21a",
BAL_PERP_USDC_8020: "0xF54025aF2dc86809Be1153c1F20D77ADB7e8ecF4",
UNI_V3_UNI_WETH: "0x1d42064fc4beb5f8aaf85f4617ae8b3b5b8bd801",
UNI_V3_UNI_USDC: "0xD0fC8bA7E267f2bc56044A7715A489d851dC6D78",
UNI_V3_ICHI_USDC: "0x8f0350c8Be74B4cB0458cbf04d16753000fDA9d0",
UNI_V3_USDC_DAI: "0x5777d92f208679db4b9778590fa3cab3ac9e2168",
UNI_V3_USDC_CRV: "0x9445bd19767f73dcae6f2de90e6cd31192f62589",
// Oracle
Keep3rV1Oracle: "0x73353801921417F465377c8d898c6f4C0270282C",
BandStdRef: "0xDA7a001b254CD22e46d3eAB04d937489c93174C3",
ChainlinkRegistry: "0x47Fb2585D2C56Fe188D0E6ec628a38b74fCeeeDf",
// Dex Router
UNI_V2_ROUTER: "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
UNI_V3_ROUTER: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
SUSHI_ROUTER: "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
// Curve
CRV_3Crv: "0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490",
CRV_TriCrypto: "0xc4ad29ba4b3c580e6d59105fff484999997675ff",
CRV_FRAXUSDC: "0x3175df0976dfa876431c2e9ee6bc45b65d3473cc",
CRV_FRAX3Crv: "0xd632f22692FaC7611d2AA1C0D552930D43CAEd3B",
CRV_FRXETH: "0xf43211935c781d5ca1a41d2041f397b8a7366c7a",
CRV_CRVETH: "0xed4064f376cb8d68f770fb1ff088a3d0f3ff5c4d",
CRV_CVXETH: "0x3a283d9c08e8b55966afb64c515f5143cf907611",
CRV_CVXCRV_CRV: "0x971add32ea87f10bd192671630be3be8a11b8623",
CRV_ALCX_FRAXBP: "0xf985005a3793dba4cce241b3c19ddcd3fe069ff4",
CRV_3Crv_POOL: "0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7",
CRV_GAUGE: "0x7D86446dDb609eD0F5f8684AcF30380a356b2B4c",
CRV_REGISTRY: "0x90E00ACe148ca3b23Ac1bC8C240C2a7Dd9c2d7f5",
CRV_ADDRESS_PROVIDER: "0x0000000022d53366457f9d5e68ec105046fc4383",
CRV_GAUGE_CONTROLLER: "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
// Curve Gauge
CRV_GAUGE_3Crv: "0xbfcf63294ad7105dea65aa58f8ae5be2d9d0952a",
CRV_GAUGE_3CrvId: 9,
// Convex
CVX_BOOSTER: "0xF403C135812408BFbE8713b5A23a04b3D48AAE31",
CVX_3Crv_Id: 9,
CVX_Frax3Crv_Id: 32,
// Aura
AURA_BOOSTER: "0xA57b8d98dAE62B26Ec3bcC4a365338157060B234",
AURA_UDU_POOL_ID: 76,
AURA_UDU_ID:
"0x79c58f70905f734641735bc61e45c19dd9ad60bc0000000000000000000004e7",
AURA_WETH_AURA_ID:
"0xcfca23ca9ca720b6e98e3eb9b6aa0ffc4a5c08b9000200000000000000000274",
// Balancer
BAL_UDU: "0x79c58f70905f734641735bc61e45c19dd9ad60bc",
BAL_AURA_STABLE: "0x3dd0843A028C86e0b760b1A76929d1C5Ef93a2dd",
// Wrapper
SUSHI_MASTERCHEF: "0xc2EdaD668740f1aA35E4D8f227fB8E17dcA888Cd",
IC_DPI_STAKING_REWARDS: "0xB93b505Ed567982E2b6756177ddD23ab5745f309",
PERP_BALANCER_LP_REWARDS: "0xb9840a4a8a671f79de3df3b812feeb38047ce552",
// Lending Market
CREAM_COMP: "0x3d5BC3c8d13dcB8bF317092d84783c2697AE9258",
IRON_COMP: "0xab1c342c7bf5ec5f02adea1c2270670bca144cbb",
BLB_COMPTROLLER: "0x37697298481d1B07B0AfFc9Ef5e9cDeec829EFc8",
// ICHI
ICHI_VAULT_USDC: "0x683F081DBC729dbD34AbaC708Fa0B390d49F1c39",
ICHI_FARMING: "0x275dfe03bc036257cd0a713ee819dbd4529739c8",
};