pub trait Fungible {
// Required methods
fn transfer(
env: &mut Env<'_>,
from: &Address,
to: &Address,
amount: &Balance,
) -> Result<(), ContractError>
where Self: Sized;
fn balance(
env: &Env<'_>,
address: &Address,
) -> Result<Balance, ContractError>
where Self: Sized;
}
Expand description
Fungible token trait prototype