open-dex/contracts/interfaces/IERC20Metadata.sol
2024-08-24 12:08:46 +03:00

19 lines
627 B
Solidity

// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.26;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
/// @title IERC20Metadata
/// @title Interface for ERC20 Metadata
/// @notice Extension to IERC20 that includes token metadata
interface IERC20Metadata is IERC20 {
/// @return The name of the token
function name() external view returns (string memory);
/// @return The symbol of the token
function symbol() external view returns (string memory);
/// @return The number of decimal places the token has
function decimals() external view returns (uint8);
}