Skip to content

Commit 71d4e6d

Browse files
scnalenonergodic
andauthored
feat: adds interface for optional ERC20 functions (#79)
`decimals`, `name` and `symbol`. Co-authored-by: Andreas <[email protected]>
1 parent 6b16db0 commit 71d4e6d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// SPDX-License-Identifier: Apache 2
2+
3+
pragma solidity ^0.8.0;
4+
5+
import "IERC20/IERC20.sol";
6+
7+
//https://eips.ethereum.org/EIPS/eip-20
8+
interface IERC20Metadata is IERC20 {
9+
function name() external view returns (string memory);
10+
function symbol() external view returns (string memory);
11+
function decimals() external view returns (uint8);
12+
}

0 commit comments

Comments
 (0)