Thanos is an L2 optimistic rollup (fork of Optimism) where the L2 creator designates an ERC20 token as the native currency on the L2 instead of ETH. This ERC20 token is referred as L2 native token.
Because the L2 native token is the native currency:
Although there are some differences in contracts, the backend remains largely unchanged to ensure compatibility with Optimism. The low-level APIs remain unchanged to allow for future implementation of new Optimism features.
The L2 Native Token Bridge has been changed to be based on Optimism's contract. The code base we used is shown below.
Please note that Thanos’ L2 Native Token Bridge is different than the Custom Gas Token developed by Optimism. Thanos focuses on supporting ERC20 token as a native currency without supporting ETH as native currency.
Unique features in L2 Native Token Bridge compared to Custom Gas Token:
L1StandardBridge
, L2StandardBridge
StandardBridge
and CrossDomainMessenger
like replayability.L1CrossDomainMessenger
StandardBridge
or CrossDomainMessenger
. Custom Gas Token not support them. It must revert when ETH is sent from the StandardBridge or CrossDomainMessenger
.Unsupported features in L2 Native Token Bridge compared to Custom Gas Token: