ethereum-optimism / design-docs

MIT License
27 stars 20 forks source link

feat: Add FMA superchainerc20 standard #102

Closed Joxess closed 1 month ago

Joxess commented 1 month ago

Description

This PR introduces the FMA for the SuperchainERC20 standard.

Additional context

It will allow the use of the SuperchainERC20 standard without requiring interop functionalities to be enabled at that time.

tynes commented 1 month ago

There is another possible failure mode of different token addresses between chains. The fix for this would be to have good deterministic deployment tooling around battle tested create2 deployers

Joxess commented 1 month ago

The FMA has been updated to reflect the latest changes made in the specs and to include a the case suggested by @tynes.

Joxess commented 1 month ago

Sure, @Ethnical. Currently, there is no plan to add a rescue method yet; for now, we prefer to stick with minimal logic around the contract. Regarding the possibility of an inconsistent state, the bridge doesn’t hold state or care about its token balance, so it shouldn’t be a problem. Here is a reference implementation.