To Address or Contract
To use the function we must import it.
use std::asset::transfer;
To transfer some amount of an asset we specify the amount
that we would like to transfer, the asset
and the Identity
to send it to.
let amount = 10;
let address = 0x0000000000000000000000000000000000000000000000000000000000000001;
let asset = AssetId::base();
let user = Identity::Address(Address::from(address));
let pool = Identity::ContractId(ContractId::from(address));
transfer(user, asset, amount);
transfer(pool, asset, amount);