Skip to content

Commit

Permalink
Deploy 013 - Migrator and veOGV upgrade (#438)
Browse files Browse the repository at this point in the history
* Updates to Deploy tooling

* Deploy 013 - Migrator and veOGV upgrade

* Update whale address

* Update whale address

* Fix governance action

* Fmt

* Tooling fixes

* Add transfer governance as part of deploy

* Fix tooling

* Update whale address

* Attempt at making tests stable
  • Loading branch information
shahthepro authored Jun 18, 2024
1 parent 9076abb commit 4dfbb17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 4 additions & 3 deletions build/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
"executions": {
"010_xOGNSetup": 1716312107,
"011_OgnOgvMigration": 1716485925,
"012_MigrationZapper": 1716910212
"012_MigrationZapper": 1716910212,
"013_UpgradeMigrator": 1717736099
},
"contracts": {
"MIGRATION_ZAPPER": "0xC202CDa20A8C34C7a282890eAE2Bb9CC0B115877",
"MIGRATOR": "0x95c347D6214614A780847b8aAF4f96Eb84f4da6d",
"MIGRATOR_IMPL": "0x946e9BED9EDebEBCE95Dea72bDD38F8c3F6efd2E",
"MIGRATOR_IMPL": "0x936B7855c3f20b09685770467f7621AC41B03063",
"OGN_REWARDS_SOURCE": "0x7609c88E5880e934dd3A75bCFef44E31b1Badb8b",
"OGN_REWARDS_SOURCE_IMPL": "0x16890bdd817Ed1c4654430d67329CB20b0B71bB0",
"VEOGV_IMPL": "0x2D86E0342a0d263Dff712CD0Aa96d075F61974ed",
"VEOGV_IMPL": "0x5DA3E12893bB8673aC482d7177a1836c83d671F4",
"XOGN": "0x63898b3b6Ef3d39332082178656E9862bee45C57",
"XOGN_IMPL": "0x97711c7a5D64A064a95d10e37f786d2bD8b1F3c8"
}
Expand Down
9 changes: 6 additions & 3 deletions script/deploy/mainnet/013_UpgradeMigratorScript.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,19 @@ 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 {
govProposal.action(
deployedContracts["MIGRATOR"], "upgradeTo(address)", abi.encode(deployedContracts["MIGRATOR_IMPL"])
);

govProposal.action(
deployedContracts["VEOGV"], "upgradeTo(address)", abi.encode(deployedContracts["VEOGV_IMPL"])
);
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 4dfbb17

Please sign in to comment.