Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Seedifyfund/farming

Repository files navigation

Farming Contract

Audit

Configuration

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.

Deployment

To run deployment script, see comments in each deployment script: ./scripts/*.ts.

Mainnet

Mainnet Addresses

SFUND on both Ethereum & Arbitrum at: 0x560363BdA52BC6A44CA6C8c9B4a5FadbDa32fa60

Ethereum

Arbitrum

Testnet

Test Addresses

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.

Testnets

Mainnets

  • Arbitrum mainnet test: 0xe6C387ad3C4850b459eF1a7eb5D1FbC446371721

    • resetAndSetStratEndBlock:
      • rewardAmount: `100_000 ether``
      • startIn: 60s after tx is mined - Rolled back to UNIX timestamp starting date
      • endIn: 2_592_000 --> 30 days (3600 x 24 x 30) after tx is mined - Rolled back to UNIX timestamp ending date
      • lockDuration: 1 hour exactly
  • Ethereum mainnet test: 0x0c8da012FdcBB0c9d08531eA7Cc7330DA55e7f99

    • rewardAmount: 1_000 ether
    • start: 1696499272 - Oct 05 2023 09:47:52 GMT
    • end: 1699173686 - Nov 05 2023 08:41:26 GMT
    • lockDuration: 1 hour exactly

Testnet Token: Unlimited and Public Minting

Testnets

Mainnets