deposit
Last updated
Last updated
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 minted 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).
Field | Type | Description |
---|---|---|
QSystem/farm-not-set
- farming with fid
parameter doesn't exist.
QFarm/farm-is-paused
- farm is paused by an administrator.
QFarm/can-not-refer-yourself
- user is trying to refer himself.
QFarm/baker-is-required
- baker
parameter is required (not optional) for QuipuSwap V1 TOK/TEZ LP staked tokens.
QFarm/baker-is-banned
- baker
from the parameters is banned by an administrator.
fid
fid_type (nat)
Farm's ID
amt
nat
Amount of tokens to deposit
referrer
option(address)
User's referrer
rewards_receiver
address
Receiver of earned tokens
candidate
option(key_hash)
The baker for voting (only for QuipuSwap V1 TOK/TEZ LP staked tokens)