This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
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._createDepositBlock
as well, changing the token address to MATIC before syncStatetransferAssets
to 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):
updateContractMap
on the Registry to add“matic”, “pol” and “polygonMigration”
mapToken
on the Registry to map POL to native MATICmigrateMatic
on the new DepositManager, migrating all MATIC