Skip to main content

IReserveMigrator

Git Source

Functions​

migrate​

migrate reserves and wrapped reserves in the treasury to the new reserve token

this function is restricted to the heart role to avoid complications with opportunistic conversions

if no migration is required or it is deactivated, the function does nothing

function migrate() external;

Events​

MigratedReserves​

event MigratedReserves(address indexed from, address indexed to, uint256 amount);

Activated​

event Activated();

Deactivated​

event Deactivated();

Errors​

ReserveMigrator_InvalidParams​

error ReserveMigrator_InvalidParams();

ReserveMigrator_BadMigration​

error ReserveMigrator_BadMigration();