-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(WBTC, LegacyTokenMigrator): add new WBTC, add Legacy Token Migrator #93
Conversation
_disableInitializers(); | ||
} | ||
|
||
function initialize(address admin, address[] calldata legacyTokens, address[] calldata newTokens) external initializer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should check with legal to see if the upgradable pattern is allowed, since this contract holds funds
|
||
// Mint the new token if the contract balance is insufficient | ||
uint256 selfBalance = IERC20(newToken).balanceOf(address(this)); | ||
if (selfBalance < amount) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the selfBalance is zero, should mint directly to user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to handle for that explicit logic
Description
This PR adds implement for new WBTC and Legacy Token Migrator.
Checklist