Staking Contracts
Contract name: MEIJIStakingPool
Contract address: 0xEB3575E9189B2e424c3424a7f1906d93b45e82F3
View Pool.sol on Github
View MeijiDAO: Staking contract on BscScan
Variables
bonusEndBlock
Type:
uint256
startBlock
Type:
uint256
lastRewardBlock
Type:
uint256
poolLimitPerUser
Type:
uint256
rewardPerBlock
Type:
uint256
rewardToken
Type:
IBEP20
stakedToken
Type:
IBEP20
launchpad
Type:
address
Launchpad contract address
Struct
UserInfo
struct UserInfo {
uint256 amount; // How many staked tokens the user has provided
uint256 rewardDebt; // Reward debt
uint lastDepositDate; // Last Deposit timestamp
}
Functions
deposit
function deposit(uint256 _amount) external nonReentrant
_amount:
$MEIJI amount to deposit
withdraw
function withdraw(uint256 _amount) external nonReentrant
_amount:
$MEIJI amount to withdraw
emergencyWithdraw
function emergencyWithdraw() external nonReentrant
emergencyRewardWithdraw
function emergencyRewardWithdraw(uint256 _amount) external onlyOwner
_amount:
$MEIJI amount to withdraw
updatePoolLimitPerUser
function updatePoolLimitPerUser(bool _hasUserLimit, uint256 _poolLimitPerUser) external onlyOwner
_hasUserLimit:
If current user has limit in staking or not
_poolLimitPerUser:
Limit amount for current staker
updateRewardPerBlock
function updateRewardPerBlock(uint256 _rewardPerBlock) external onlyOwner
_rewardPerBlock:
Reward amount per block to be updated newly
pendingRewards
function pendingReward(address _user) external view returns (uint256)
_user:
$MEIJI balance to be claimed as reward
Last updated