Skip to content
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

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

TuDo1403
Copy link
Collaborator

Description

This PR adds implement for new WBTC and Legacy Token Migrator.

Checklist

  • I have clearly commented on all the main functions following the NatSpec Format
  • The box that allows repo maintainers to update this PR is checked
  • [] I tested locally to make sure this feature/fix works

_disableInitializers();
}

function initialize(address admin, address[] calldata legacyTokens, address[] calldata newTokens) external initializer {
Copy link
Collaborator

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) {
Copy link
Collaborator

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

Copy link
Collaborator Author

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

@TuDo1403 TuDo1403 merged commit 9619445 into release/v3.2.5 Jan 23, 2025
4 of 6 checks passed
@TuDo1403 TuDo1403 deleted the feature/wbtc-migration branch January 23, 2025 06:20
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.

4 participants