This repository was archived by the owner on Mar 1, 2024. It is now read-only.
Repository navigation
Plasma bridge update - #497
Merged
Merged
Conversation
fix depositBulk using mapToken
simonDos
requested review from
dev1644 and
gretzke
and removed request for
gretzke
December 15, 2023 10:18
dev1644
approved these changes
Dec 15, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plasma Bridge Modifications
The plasma bridge will be modified to bridge POL for users trying to bridge MATIC after the upgrade.
The following changes will be made:
A convenience functionality has been added in
_createDepositBlock, which automatically converts MATIC to POL when a user tries to bridge MATIC._createDepositBlockas well, changing the token address to MATIC before syncStatetransferAssetsto pay out POL instead of MATICInternally, the MATIC address will still be used for all POL bridging operations, as the behaviour of the native token on the PoS side will not be modified and thus can keep operating as usual.
💡 Action items (for deployment):
updateContractMapon the Registry to add“matic”, “pol” and “polygonMigration”
mapTokenon the Registry to map POL to native MATICmigrateMaticon the new DepositManager, migrating all MATIC