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
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.