Skip to content

Commit

Permalink
feat: adds interface for optional ERC20 functions (#79)
Browse files Browse the repository at this point in the history
`decimals`, `name` and `symbol`.

Co-authored-by: Andreas <[email protected]>
  • Loading branch information
scnale and nonergodic authored Jan 22, 2025
1 parent 6b16db0 commit 71d4e6d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/interfaces/token/IERC20Metadata.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: Apache 2

pragma solidity ^0.8.0;

import "IERC20/IERC20.sol";

//https://eips.ethereum.org/EIPS/eip-20
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}

0 comments on commit 71d4e6d

Please sign in to comment.