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§
sourcefn is_native_currency() -> bool
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.