optimism
optimism copied to clipboard
feat: support permit2 on optimism superchain erc20 and upgrade solady's erc20 implementation
Description
- Add a new Solady version, as a separate dependency from the current Solady package being used
- Inherit from the new Solady's version ERC20 on
SuperchainERC20 - Support Permit2 on
OptimismSuperchainERC20
Tests
Added 3 new tests over OptimismSuperchainERC20 contract to ensure the Permit2 implementation works well.
Metadata
CLOSES https://github.com/ethereum-optimism/optimism/issues/11899
Additional context
- The
Permit2support modifications overSuperchainWETHwill be done on a different PR. - We upgraded the Solady version due to the Permit2 support on the ERC20 implementation. The modifications can be found here: https://github.com/Vectorized/solady/pull/1093