Owner can call this function to update the staking limit for each pool. The staking limit can only be increased, never decreased. This ensures that no user ever has more staked than the staking limit.
Can be called by the Owner, but only prior to the start of the pool. This cannot be modified once the pool has begun.
updateStartAndEndBlocks - Owner
functionupdateStartAndEndBlocks(uint256 _startBlock, uint256 _bonusEndBlock) externalonlyOwner {require(block.number < startBlock,"Pool has started");require(_startBlock < _bonusEndBlock,"New startBlock must be lower than new endBlock");require(block.number < _startBlock,"New startBlock must be higher than current block"); startBlock = _startBlock; bonusEndBlock = _bonusEndBlock;// Set the lastRewardBlock as the startBlock lastRewardBlock = startBlock; emit NewStartAndEndBlocks(_startBlock, _bonusEndBlock); }
Can be called by the Owner, but only prior to the start of the pool. This cannot be modified once the pool has begun.
transferOwnership - Owner
transferOwnership(_admin); }
If the Owner needs to change the ownership of the contract, they can call this function.