harvest
An entrypoint that harvests (claims) user's rewards. Rewards are transferred from the contract to the user and to the referrer (harvest_fee).
Call parameters
Field | Type | Description |
---|---|---|
fid | fid_type (nat) | Farm's ID |
rewards_receiver | address | Receiver of earned tokens |
Usage
Errors
QSystem/farm-not-set
- farming withfid
parameter doesn't exist.TFarm/timelock-is-not-finished
- timelock after last user's deposit (stake) is not finished.
Last updated