Add IERC20Metadata with name, symbol and decimals (#2561)
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>pull/2533/head
parent
78a9821129
commit
b8ab763581
@ -0,0 +1,25 @@ |
||||
// SPDX-License-Identifier: MIT |
||||
|
||||
pragma solidity ^0.8.0; |
||||
|
||||
import "../IERC20.sol"; |
||||
|
||||
/** |
||||
* @dev Interface for the optional metadata functions from the ERC20 standard. |
||||
*/ |
||||
interface IERC20Metadata is IERC20 { |
||||
/** |
||||
* @dev Returns the name of the token. |
||||
*/ |
||||
function name() external view returns (string memory); |
||||
|
||||
/** |
||||
* @dev Returns the symbol of the token. |
||||
*/ |
||||
function symbol() external view returns (string memory); |
||||
|
||||
/** |
||||
* @dev Returns the decimals places of the token. |
||||
*/ |
||||
function decimals() external view returns (uint8); |
||||
} |
Loading…
Reference in new issue