Skip to content

Commit

Permalink
Add transfer governance as part of deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Jun 7, 2024
1 parent 038a67e commit 34b23f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script/deploy/mainnet/013_UpgradeMigratorScript.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ contract UpgradeMigratorScript is BaseMainnetScript {
// Deploy migrator implementation
Migrator migratorImpl = new Migrator(Addresses.OGV, Addresses.OGN, Addresses.VEOGV, deployedContracts["XOGN"]);
_recordDeploy("MIGRATOR_IMPL", address(migratorImpl));

// Transfer Governance
migratorImpl.transferGovernance(Addresses.TIMELOCK);
}

function _buildGovernanceProposal() internal override {
Expand All @@ -44,6 +47,8 @@ contract UpgradeMigratorScript is BaseMainnetScript {
);

govProposal.action(Addresses.VEOGV, "upgradeTo(address)", abi.encode(deployedContracts["VEOGV_IMPL"]));

govProposal.action(deployedContracts["MIGRATOR_IMPL"], "claimGovernance()", "");
}

function _fork() internal override {
Expand Down

0 comments on commit 34b23f2

Please sign in to comment.