pub trait MultiTokenWithdrawer: MultiTokenReceiver + MultiTokenWithdrawResolver {
// Required method
fn mt_withdraw(
&mut self,
token: AccountId,
receiver_id: AccountId,
token_ids: Vec<TokenId>,
amounts: Vec<U128>,
memo: Option<String>,
msg: Option<String>,
) -> PromiseOrValue<Vec<U128>>;
}
Required Methods§
Sourcefn mt_withdraw(
&mut self,
token: AccountId,
receiver_id: AccountId,
token_ids: Vec<TokenId>,
amounts: Vec<U128>,
memo: Option<String>,
msg: Option<String>,
) -> PromiseOrValue<Vec<U128>>
fn mt_withdraw( &mut self, token: AccountId, receiver_id: AccountId, token_ids: Vec<TokenId>, amounts: Vec<U128>, memo: Option<String>, msg: Option<String>, ) -> PromiseOrValue<Vec<U128>>
Returns number of tokens were successfully withdrawn
Optionally can specify storage_deposit
for receiver_id
on token
.
The amount will be subtracted from user’s NEP-141 wNEAR
balance.
NOTE: MUST attach 1 yⓃ for security purposes.