diff --git a/contracts/deploy/mainnet/201_remove_oeth_convex_amo.js b/contracts/deploy/mainnet/201_remove_oeth_convex_amo.js new file mode 100644 index 0000000000..4026b1b768 --- /dev/null +++ b/contracts/deploy/mainnet/201_remove_oeth_convex_amo.js @@ -0,0 +1,38 @@ +const { deploymentWithGovernanceProposal } = require("../../utils/deploy"); + +module.exports = deploymentWithGovernanceProposal( + { + deployName: "201_remove_oeth_convex_amo", + forceDeploy: false, + reduceQueueTime: true, + deployerIsProposer: false, + proposalId: + "65917466506012284308120271732167759811825281875173804912309711554959620397852", + }, + async ({ ethers }) => { + // Current OETH Vault contracts + const cVaultProxy = await ethers.getContract("OETHVaultProxy"); + const cVault = await ethers.getContractAt("IVault", cVaultProxy.address); + + // Convex OETH/ETH AMO Strategy (0x1827F9eA98E0bf96550b2FC20F7233277FcD7E63) + // The old Curve OETH/ETH pool used by this AMO is no longer used. + const cStrategyProxy = await ethers.getContract( + "ConvexEthMetaStrategyProxy" + ); + + // Governance Actions + // ---------------- + return { + name: "Remove the Convex AMO Strategy from the OETH Vault.", + actions: [ + { + // removeStrategy withdraws all assets from the strategy back to the + // Vault before marking it as unsupported. + contract: cVault, + signature: "removeStrategy(address)", + args: [cStrategyProxy.address], + }, + ], + }; + } +); diff --git a/contracts/deployments/mainnet/.migrations.json b/contracts/deployments/mainnet/.migrations.json index f8ef6eafe2..b3090af9dc 100644 --- a/contracts/deployments/mainnet/.migrations.json +++ b/contracts/deployments/mainnet/.migrations.json @@ -83,5 +83,6 @@ "197_migrate_xogn_module6_to_talos": 1780930872, "198_migrate_strategist_modules_to_talos": 1780930872, "199_deploy_compounding_staking_strategy": 1781093567, - "200_remove_old_compounding_ssv_strategy": 1781561627 + "200_remove_old_compounding_ssv_strategy": 1781561627, + "201_remove_oeth_convex_amo": 1782091931 }