Skip to content

Conversation

@mrice32
Copy link
Contributor

@mrice32 mrice32 commented Feb 28, 2022

This means that duplicate addresses on different chains will not cause issues.

One decision that I made here was to use block.chainid to grab the mainnet chain id rather than having it passed in or something.

This also revealed one bit of weirdness. We were previously assuming in the tests that if origin and destination were whitelisted, this would Just Work™️. However, based on our current structure, mainnet always must have a whitelisted route to any and all L2 tokens for repayments to work since we depend on that mapping to understand which L1 token maps to each L2 token.

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
@mrice32 mrice32 merged commit 7b0015a into master Feb 28, 2022
@mrice32 mrice32 deleted the restructure_mapping branch February 28, 2022 17:39
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.

3 participants