Farming Contract
Contract name: MEIJIFarmPool
Contract address: 0x1c1F94413f9103F28C932CD7f5A5A56498CFc901
View Farm.sol on Github
View MeijiDAO: Farm contract on BscScan
Variables
tokenAddress
Type:
addressDescription: token address to stake in farm pool
rewardTokenAddress
Type:
addressDescription: token address to claim from farm pool
stakedTotal
Type:
uint256
stakedBalance
Type:
uint256
rewardBalance
Type:
uint256
totalReward
Type:
uint256
startingBlock
Type:
uint256
endingBlockl
Type:
uint256
period
Type:
uint256
lastRewardBlock
Type:
uint256
totalParticipants
Type:
uint256
lockDuration
Type:
uint256
Struct
Deposits
periodDetails
Functions
setStartEnd
function setStartEnd(uint256 _start, uint256 _end) private
_start: Block number when farming starts
_end: Block number when farming ends
addReward
function addReward(uint256 _rewardAmount) private _hasAllowance(msg.sender, _rewardAmount, rewardTokenAddress) returns (bool)
_rewardAmount: Token amount to provide as reward to the farm pool
rewPerBlock
function rewPerBlock() public view returns (uint256)
stake
function stake(uint256 amount)
amount: MEIJI-BUSD LP token amount to stake
userDeposits
function userDeposits(address from) external view
from: Farmer address
claimRewards
function claimRewards() public returns (bool)
renew
function renew() public returns (bool)
viewOldRewards
function viewOldRewards(address from) public view returns (uint256)
from: Farmer address
claimOldRewards
function claimOldRewards() public returns (bool)
emergencyWithdraw
function emergencyWithdraw() external returns (bool)
withdraw
function withdraw(uint256 amount) external returns (bool)
amount: MEIJI-BUSD LP amount to withdraw
extendPeriod
function extendPeriod(uint256 rewardsToBeAdded)
rewardsToBeAdded: $MEIJI amount to be added as reward
Last updated