Skip to content

Commit 3835353

Browse files
authored
[Ethereum] [Base] Deploy Crosschain Strategy (#2793)
* [Ethereum] [Base] Deploy Crosschain Strategy * Regenerate governance files
1 parent 085fa5d commit 3835353

15 files changed

Lines changed: 5298 additions & 9 deletions

contracts/deploy/base/040_crosschain_strategy_proxies.js renamed to contracts/deploy/base/041_crosschain_strategy_proxies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { deployProxyWithCreateX } = require("../deployActions");
33

44
module.exports = deployOnBase(
55
{
6-
deployName: "040_crosschain_strategy_proxies",
6+
deployName: "041_crosschain_strategy_proxies",
77
},
88
async () => {
99
// the salt needs to match the salt on the base chain deploying the other part of the strategy

contracts/deploy/base/041_crosschain_strategy.js renamed to contracts/deploy/base/042_crosschain_strategy.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { cctpDomainIds } = require("../../utils/cctp");
88

99
module.exports = deployOnBase(
1010
{
11-
deployName: "041_crosschain_strategy",
11+
deployName: "042_crosschain_strategy",
1212
},
1313
async () => {
1414
const crossChainStrategyProxyAddress = await getCreate2ProxyAddress(
@@ -19,7 +19,7 @@ module.exports = deployOnBase(
1919
);
2020

2121
const implAddress = await deployCrossChainRemoteStrategyImpl(
22-
"0xbeeF010f9cb27031ad51e3333f9aF9C6B1228183", // 4626 Vault
22+
addresses.base.MorphoOusdV2Vault, // 4626 Vault
2323
crossChainStrategyProxyAddress,
2424
cctpDomainIds.Ethereum,
2525
crossChainStrategyProxyAddress,
@@ -47,6 +47,11 @@ module.exports = deployOnBase(
4747
signature: "safeApproveAllTokens()",
4848
args: [],
4949
},
50+
{
51+
contract: cCrossChainRemoteStrategy,
52+
signature: "setHarvesterAddress(address)",
53+
args: [addresses.multichainStrategist],
54+
},
5055
],
5156
};
5257
}

contracts/deploy/mainnet/169_crosschain_strategy.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = deploymentWithGovernanceProposal(
2525
console.log(`CrossChainStrategyProxy address: ${cProxy.address}`);
2626

2727
const cVaultProxy = await ethers.getContract("VaultProxy");
28+
const cVault = await ethers.getContractAt("IVault", cVaultProxy.address);
2829

2930
const implAddress = await deployCrossChainMasterStrategyImpl(
3031
crossChainStrategyProxyAddress,
@@ -50,10 +51,15 @@ module.exports = deploymentWithGovernanceProposal(
5051
`CrossChainMasterStrategy address: ${cCrossChainMasterStrategy.address}`
5152
);
5253

53-
// TODO: Set reward tokens to Morpho
54-
5554
return {
56-
actions: [],
55+
name: "Add Morpho V2 Crosschain Strategy to OUSD Vault",
56+
actions: [
57+
{
58+
contract: cVault,
59+
signature: "approveStrategy(address)",
60+
args: [crossChainStrategyProxyAddress],
61+
},
62+
],
5763
};
5864
}
5965
);

contracts/deployments/base/.migrations.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@
3636
"036_oethb_upgrade_EIP7702": 1751453912,
3737
"037_deploy_harvester": 1752034150,
3838
"038_vault_upgrade": 1752579215,
39-
"039_pool_booster_factory": 1756293140
39+
"039_pool_booster_factory": 1756293140,
40+
"041_crosschain_strategy_proxies": 1770737618,
41+
"042_crosschain_strategy": 1770807435
4042
}

0 commit comments

Comments
 (0)