deposit
An entrypoint that deposits (stakes) tokens. In time of every deposit it claims user's rewards if timelock is finished (only for farms with timelock) or in farms without timelock it just claims user's rewards. In the case of claiming, rewards are transferred to the user and to the referrer (harvest_fee). Also setups a referrer for a user, votes for a user's baker if the QuipuSwap V1 TOK/TEZ LP token is deposited (staked).
Call parameters
Usage
Errors
QSystem/farm-not-set
- farming withfid
parameter doesn't exist.TFarm/farm-is-paused
- farm is paused by an administrator.TFarm/can-not-refer-yourself
- user is trying to refer himself.TFarm/baker-is-required
-baker
parameter is required (not optional) for QuipuSwap V1 TOK/TEZ LP staked tokens.TFarm/baker-is-banned
-baker
from the parameters is banned by an administrator.
Last updated