Deposit into a farm
Once you have the farm's address, you may now use the farm's contract to participate and earn rewards.
Deposit
To deposit into a TokensFarm contract, you must call deposit
on the TokensFarm
smart contract.
Notice that it is possible to deposit multiple times.
First, make sure to approve
spend on the ERC20 token that you wish to farm
Parameters
Type
Description
Amount
uint256
The amount that the user wishes to deposit to the farm.
Example script for deposit in JS
Last updated