transfer
An entrypoint that transfer user's staked tokens to another account (tz/KT). Also updates the rewards for these users. Votes for sender's and recipient's bakers if the farm supports TOK/TEZ QuipuSwap V1 LP tokens. If the recipient does not have a preferred baker, the current delegated will be chosen as the preferred baker. Works exactly like FA2 transfer entrypoint according to TZIP-012.
Call parameters
transfer_dst_type
to_
address
Recipient of tokens
token_id
token_id_type
Token ID
amount
nat
Number of tokens to transfer
fa2_send_type
from_
address
Sender of tokens
Usage
Errors
QSystem/farm-not-set
- farming withfid
parameter doesn't exist.ILLEGAL_TRANSFER
- transfer from the contract to the same contract (Tezos.self_address
).FA2_NOT_OPERATOR
-sender
is notoperator
offrom_
account.FA2_INSUFFICIENT_BALANCE
- transferamount
is greater than accountfrom_
balance.TIMELOCK_NOT_FINISHED
- timelock ofsender
is not finished (only for farms with timelock).
Last updated