transfer

params of transferParams -> (list(op), storage upd)

Implementation of FA2 interface method, more info about FA2 transfer you can read in the link below.

TZIP-12: FA2 - Multi-Asset Interface

Types

Parameter
Type
Description

from_

address

account transfer tokens from

amount

nat

amount of tokens

to_

address

account transfer tokens to

token_id

nat

token identifier

Usage

Errors

  • FA2_NOT_OPERATOR - sender is not operator of from_ account.

  • yToken/token-taken-as-collateral - when user entered market (enterMarket) for this token.

  • FA2_TOKEN_UNDEFINED - token identifier is not assigned to any known tokens.

  • FA2_INSUFFICIENT_BALANCE - when transfer amount greater than account from_ balance (also underflow/srcBalance make the same check but underflow is unreachable)

Last updated