Skip to main content

MigrationProposal

Git Source

Inherits: GovernorBravoProposal

forge-lint: disable-start(mixed-case-function,mixed-case-variable)

Proposal to enable V1Migrator for OHM v1 migration and execute gOHM burn

State Variables​

_kernel​

address internal _kernel

_v1Migrator​

V1Migrator internal _v1Migrator

_burner​

Burner internal _burner

_migrationProposalHelper​

MigrationProposalHelper internal _migrationProposalHelper

BURNER_ADMIN_ROLE​

forge-lint: disable-next-line(unsafe-typecast)

bytes32 public constant BURNER_ADMIN_ROLE = bytes32("burner_admin")

INITIAL_MIGRATION_CAP​

Initial migration cap for V1Migrator (in OHM v1, 9 decimals)

This is determined off-chain as the amount of OHM v1 outstanding

uint256 public constant INITIAL_MIGRATION_CAP = 352614824540487

Functions​

constructor​

constructor() ;

id​

function id() public pure override returns (uint256);

name​

function name() public pure override returns (string memory);

description​

function description() public pure override returns (string memory);

_deploy​

function _deploy(Addresses addresses, address) internal override;

_afterDeploy​

function _afterDeploy(Addresses addresses, address deployer) internal override;

_build​

function _build(Addresses addresses) internal override;

_run​

function _run(Addresses addresses, address) internal override;

_validate​

function _validate(Addresses addresses, address) internal view override;

Errors​

InvalidV1Migrator​

error InvalidV1Migrator();

InvalidMigrationProposalHelper​

error InvalidMigrationProposalHelper();

InvalidBurner​

error InvalidBurner();