FarmStorage

Git Source

Inherits: IFarm

Author: Sperax Foundation.

This contract contains the base storage variables for farms.

State Variables

COMMON_FUND_ID

uint8 public constant COMMON_FUND_ID = 0;

LOCKUP_FUND_ID

uint8 public constant LOCKUP_FUND_ID = 1;

PRECISION

uint256 public constant PRECISION = 1e18;

MAX_COOLDOWN_PERIOD

uint256 public constant MAX_COOLDOWN_PERIOD = 30;

MAX_NUM_REWARDS

uint256 public constant MAX_NUM_REWARDS = 4;

farmId

string public farmId;

isPaused

bool internal isPaused;

isClosed

bool internal isClosed;

cooldownPeriod

uint256 public cooldownPeriod;

lastFundUpdateTime

uint256 public lastFundUpdateTime;

farmStartTime

uint256 public farmStartTime;

totalDeposits

uint256 public totalDeposits;

rewardFunds

RewardFund[] internal rewardFunds;

rewardTokens

address[] internal rewardTokens;

rewardData

mapping(address => RewardData) internal rewardData;

deposits

mapping(uint256 => Deposit) internal deposits;

subscriptions

mapping(uint256 => Subscription[]) internal subscriptions;