Farming Contract

Based on zok-prelim-report - audited from this hash e71fd388f041a46dd18bcfdf34be6ca563c58b79 and deployed on BSC mainnet already.

TODO

  • Deploy on ARB Goerli
  • Once all are tested on testnet, deploy on mainnet

Testnet

Reward Configuration

To set farming rewards call:

 function resetAndsetStartEndBlock(
        uint256 _rewardAmount,
        uint256 _start,
        uint256 _end,
        uint256 _lockDuration
) external onlyOwner returns (bool)
  • _rewardAmount: Amount of rewards to be earned within this period.
  • _start: Seconds at which the period starts - in UNIX timestamp.
  • _end: Seconds at which the period ends - in UNIX timestamp.
  • _lockDuration: Duration in hours to wait before being able to withdraw.

Farming

For easier testing purposes tokenAddress and rewardTokenAddress is the same addres. This will avoid opening a new pool on testnet and any user can mint any amount of tokens.

Test Token