pub trait Erc20Metadata {
    // Required methods
    fn name() -> &'static str;
    fn symbol() -> &'static str;
    fn decimals() -> u8;
    fn is_native_currency() -> bool;
}
Expand description

Metadata of an ERC20 token.

Required Methods§

source

fn name() -> &'static str

Returns the name of the token.

source

fn symbol() -> &'static str

Returns the symbol of the token.

source

fn decimals() -> u8

Returns the decimals places of the token.

source

fn is_native_currency() -> bool

Must return true only if it represents the main native currency of the network. It must be the currency used in pallet_evm.

Object Safety§

This trait is not object safe.

Implementors§