Skip to content

Commit f128ba3

Browse files
committedJun 19, 2024
Ethena: deployment
1 parent 514bf56 commit f128ba3

File tree

4 files changed

+418
-3
lines changed

4 files changed

+418
-3
lines changed
 

‎broadcast/mainnet-production/EthenaStrategySetup.s.sol/1/run-latest.json

+401
Large diffs are not rendered by default.

‎deploy/mainnet-production.contracts.json

+5
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@
111111
"implementation": "0x520AeDDdd3fb45E49ce236Df4c43B6a1a0cc061A",
112112
"proxy": "0x6EB6251AF926016c60DE17aD976b9C1e2485e1F0"
113113
},
114+
"ethena": {
115+
"ethena-usdc": "0x265cc52678887e59D1b66F3D93BBAB7658Bc0337",
116+
"ethena-usde": "0xa43DbC866806d0DCdc5f19510de62090B2301d18",
117+
"implementation": "0xDd118AEd7643D152708EbFee068aB3eA181F431E"
118+
},
114119
"gearbox-v3": {
115120
"gearbox-v3-usdc": "0xb4a7fb51D06760B5F622643B7276c003418732bD",
116121
"gearbox-v3-weth": "0xD92B65d2321076FBAc23FCfC9A9Fd5Ed2E98B758",

‎script/mainnet/AssetsInitial.s.sol

+11-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ contract AssetsInitial {
2525
}
2626

2727
function setAssets(IAssetGroupRegistry assetGroupRegistry, UsdPriceFeedManager priceFeedManager) public {
28-
string[] memory assetNames = new string[](4);
28+
string[] memory assetNames = new string[](5);
2929
assetNames[0] = DAI_KEY;
3030
assetNames[1] = USDC_KEY;
3131
assetNames[2] = USDT_KEY;
3232
assetNames[3] = WETH_KEY;
33+
assetNames[4] = USDE_KEY;
3334

3435
address[] memory assetAddresses = new address[](assetNames.length);
3536
address[] memory assetPriceAggregators = new address[](assetNames.length);
@@ -73,6 +74,10 @@ contract AssetsInitial {
7374
assetGroupId = assetGroupRegistry.registerAssetGroup(assetGroup);
7475
_assetGroups[DAI_KEY] = assetGroupId;
7576

77+
assetGroup[0] = _assets[USDE_KEY];
78+
assetGroupId = assetGroupRegistry.registerAssetGroup(assetGroup);
79+
_assetGroups[USDE_KEY] = assetGroupId;
80+
7681
assetGroup = new address[](3);
7782
assetGroup[0] = _assets[DAI_KEY];
7883
assetGroup[1] = _assets[USDC_KEY];
@@ -88,11 +93,12 @@ contract AssetsInitial {
8893
}
8994

9095
function loadAssets() public {
91-
string[] memory assetNames = new string[](4);
96+
string[] memory assetNames = new string[](5);
9297
assetNames[0] = DAI_KEY;
9398
assetNames[1] = USDC_KEY;
9499
assetNames[2] = USDT_KEY;
95100
assetNames[3] = WETH_KEY;
101+
assetNames[4] = USDE_KEY;
96102

97103
for (uint256 i; i < assetNames.length; ++i) {
98104
_assets[assetNames[i]] = constantsJson().getAddress(string.concat(".assets.", assetNames[i], ".address"));
@@ -114,6 +120,9 @@ contract AssetsInitial {
114120
assetGroup[0] = _assets[WETH_KEY];
115121
_assetGroups[WETH_KEY] = assetGroupRegistry.checkAssetGroupExists(assetGroup);
116122

123+
assetGroup[0] = _assets[USDE_KEY];
124+
_assetGroups[USDE_KEY] = assetGroupRegistry.checkAssetGroupExists(assetGroup);
125+
117126
assetGroup = new address[](3);
118127
assetGroup[0] = _assets[DAI_KEY];
119128
assetGroup[1] = _assets[USDC_KEY];

‎script/mainnet/StrategiesInitial.s.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ contract StrategiesInitial {
965965
}
966966

967967
function _getVariantName(string memory strategyKey, string memory variantKey)
968-
private
968+
internal
969969
pure
970970
returns (string memory)
971971
{

0 commit comments

Comments
 (0)