Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🥢 ERC20: EIP-2612 👉 ERC2612 #349

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tokens/ERC20.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @notice Modern and gas efficient ERC20 + ERC2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
Expand Down Expand Up @@ -35,7 +35,7 @@ abstract contract ERC20 {
mapping(address => mapping(address => uint256)) public allowance;

/*//////////////////////////////////////////////////////////////
EIP-2612 STORAGE
ERC2612 STORAGE
//////////////////////////////////////////////////////////////*/

uint256 internal immutable INITIAL_CHAIN_ID;
Expand Down Expand Up @@ -110,7 +110,7 @@ abstract contract ERC20 {
}

/*//////////////////////////////////////////////////////////////
EIP-2612 LOGIC
ERC2612 LOGIC
//////////////////////////////////////////////////////////////*/

function permit(
Expand Down