Skip to content

OHM v1 Migrator: Defund OHM v1 TokenMigrator, introduce V1Migrator - #196

Merged
0xJem merged 167 commits into
developfrom
feature/migrator-burn
Mar 2, 2026
Merged

0xJem merged 167 commits into
developfrom
feature/migrator-burn

Conversation

@0xJem

@0xJem 0xJem commented Jan 15, 2026 •

Copy link
Copy Markdown
Member
  • MS batch and OCG proposal to defund the OHM v1 TokenMigrator
  • New policy, LegacyMigrator, which allows for OHM v1 holders (whitelisted via a merkle tree) to migrate to OHM v2 in the future, without having gOHM/OHMv2 sitting in a contract

Summary by CodeRabbit

Release Notes

  • New Features

    • Added OHM v1 to v2 migration capability via governance proposal and helper contracts for seamless token transitions.
    • Introduced fork testing infrastructure enabling local protocol testing against mainnet state.
    • Added deployment tooling for migration-related contracts and configuration management.
  • Documentation

    • Added comprehensive migration workflow guide and audit documentation for the v1 migration system.
  • Chores

    • Updated dependencies (safe-utils, solidity-http) to latest versions.
    • Enhanced configuration for deployment and batch execution scripts.

Note

Implements a complete v1→v2 migration and defunding flow within Olympus V3.

  • New policies: V1Migrator (merkle-allowlisted, partial migrations, MINTR cap, ERC165) and Burner (category-tracked burns, burner_admin role)
  • Governance flow: MigrationProposal.sol + single-use MigrationProposalHelper.sol to pull gOHM from legacy TokenMigrator, unstake to OHM v2, and burn; enables V1Migrator with initial cap and revokes temp approvals/roles post-run
  • Temp token: OwnedERC20 (tempOHM) for legacy treasury deposit during defunding
  • Deploy/scripts: DeployV3 adds deployment for TempOHM/Burner/MigrationProposalHelper/V1Migrator; new safeBatchV2.sh, Anvil fork helpers (deal_gohm.sh, warp.sh), and proposal execution on fork in ProposalScript
  • Docs/config: Added audit packet (audit/2026-01_v1-migrator/*), fork testing guide (documentation/FORK.md), tightened AGENTS guidelines, .mcp.json tool config, and address entries

Written by Cursor Bugbot for commit bfd7446. This will update automatically on new commits. Configure here.

0xJem and others added 30 commits December 24, 2025 14:49
Release: CD Parameter Update and Limit Orders
0xJem and others added 22 commits February 10, 2026 23:13
OHM v1 Migrator: Audit Remediations: V1Migrator rescue() blocked when disabled (I-02)
OHM v1 Migrator: Audit Remediations: handle tempOHM balance changes (I-01)
# Conflicts:
#	src/proposals/MigrationProposal.sol
@0xJem

0xJem commented Mar 2, 2026

Copy link
Copy Markdown
Member Author

Executed in OCG proposal 13

@0xJem
0xJem merged commit 8f211f9 into develop Mar 2, 2026
8 checks passed
@0xJem
0xJem deleted the feature/migrator-burn branch March 2, 2026 08:20
@coderabbitai coderabbitai Bot mentioned this pull request Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant