optimism icon indicating copy to clipboard operation
optimism copied to clipboard

feat: support permit2 on optimism superchain erc20 and upgrade solady's erc20 implementation

Open 0xDiscotech opened this issue 1 year ago • 0 comments

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 Permit2 support modifications over SuperchainWETH will 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

0xDiscotech avatar Oct 15 '24 21:10 0xDiscotech