Skip to content

Commit e550ea2

Browse files
authored
Deploy 45 - LUSD (#1206)
* add deploy script and tests for LUSD strategy * correct some tests * attempt to fix slither * fix fork test * fix fork test * mainnet deploy 45 * add some more files
1 parent aa4e07f commit e550ea2

File tree

14 files changed

+3909
-110
lines changed

14 files changed

+3909
-110
lines changed

.github/workflows/ousd.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ jobs:
102102

103103
slither:
104104
name: "Slither"
105-
runs-on: ubuntu-latest
105+
# As long as we need Python 3.6 here in the test, we can only use up to Ubuntu 20.
106+
# https://github.com/rwth-i6/returnn/issues/1226
107+
runs-on: ubuntu-20.04
106108

107109
steps:
108110
- uses: actions/checkout@v3

contracts/contracts/proxies/Proxies.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,10 @@ contract ConvexUSDDMetaStrategyProxy is InitializeGovernedUpgradeabilityProxy {
107107
contract ConvexBUSDMetaStrategyProxy is InitializeGovernedUpgradeabilityProxy {
108108

109109
}
110+
111+
/**
112+
* @notice ConvexLUSDMetaStrategyProxy delegates calls to a ConvexalGeneralizedMetaStrategy implementation
113+
*/
114+
contract ConvexLUSDMetaStrategyProxy is InitializeGovernedUpgradeabilityProxy {
115+
116+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const generalizedConvexStratDeployment = require("../utils/generalizedConvexStratDeployment");
2+
const { lusdMetapoolLPCRVPid } = require("../utils/constants");
3+
4+
module.exports = generalizedConvexStratDeployment({
5+
deployName: "045_convex_lusd_meta_strategy",
6+
forceDeploy: false,
7+
mainTokenName: "Liquity USD",
8+
mainTokenSymbol: "LUSD",
9+
rewardTokenNames: ["CVX", "CRV"],
10+
assets: ["DAI", "USDC", "USDT"],
11+
pTokens: ["ThreePoolToken", "ThreePoolToken", "ThreePoolToken"],
12+
platformAddress: ["ThreePool"],
13+
cvxDepositorAddress: "0xF403C135812408BFbE8713b5A23a04b3D48AAE31",
14+
metapoolAddress: "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
15+
metapoolLPToken: "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
16+
mainTokenAddress: "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0", // LUSD
17+
cvxRewardStakerAddress: "0x2ad92A7aE036a038ff02B96c88de868ddf3f8190",
18+
cvxDepositorPTokenId: lusdMetapoolLPCRVPid, // 33
19+
redeployVault: false,
20+
deployStrategyImplementation: true,
21+
skipMainnetDeploy: false,
22+
});

contracts/deployments/mainnet/.migrations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@
4040
"042_ogv_buyback": 1662754619,
4141
"043_convex_OUSD_meta_strategy": 1667562899,
4242
"044_morpho_strategy": 1668204653,
43+
"045_convex_lusd_meta_strategy": 1671543402,
4344
"046_vault_value_checker": 1669212530
4445
}

0 commit comments

Comments
 (0)