Parameters

All public declared parameters act as a getters. Ex : uint256 public lastRewardTime so if you call TokensFarmSDK.lastRewardTime() you will get timestamp of last time that reward was given

    uint256 public lastRewardTime;
    uint256 public accERC20PerShare;
    uint256 public totalDeposits;
    bool public isEarlyWithdrawAllowed;
    uint256 public minTimeToStake;
    IERC20 public rewardToken;
    uint256 public paidOut;
    uint256 public rewardPerSecond;
    uint256 public totalFundedRewards;
    uint256 public totalRewards;
    mapping(address => StakeInfo[]) public stakeInfo;
    uint256 public startTime;
    uint256 public endTime;
    EarlyWithdrawPenalty public penalty;
    uint256 public stakeFeePercent;
    uint256 public rewardFeePercent;
    address payable public feeCollector;
    uint256 public flatFeeAmountDeposit;
    uint256 public flatFeeAmountWithdraw;
    bool public isFlatFeeAllowed;
    uint256 public totalTokensBurned;
    uint256 public totalFeeCollectedETH;
    uint256 public totalFeeCollectedTokens;
    address public farmImplementation;
    uint256 public noOfUsers;
    address[] public participants;
    mapping(address => uint256) public id;
    uint256 public warmupPeriod;
    mapping(address => DepositRequest[]) public depositRequest;
    address[] public waitingList;
    mapping(address => uint256) idInList;
    bool public isInitialisedFully;
    uint256 public firstDepositAt;
    mapping(address => uint256) public totalActiveStakeAmount;
    uint256 public noOfPendingStakes;
    mapping(address => uint256) public totalPendingAmountForUser;
    address public contractAdmin;
    bool public isActive;
    IERC20 public tokenStaked;
    mapping(address => uint256) public lastStakeConsumed;
    mapping(address => uint256) public totalEarnedForUser;
    mapping(address => uint256) public ATHStake;
    mapping(address => uint256) public nextStakeToFinalise;

Last updated