Skip to main content

MockTribalChief

Functions

constructor

function constructor(
uint256 _tribalChiefTribePerBlock,
uint256 _totalAllocPoint,
uint120 _poolAllocPoints
) public

Parameters

NameTypeDescription
_tribalChiefTribePerBlockuint256
_totalAllocPointuint256
_poolAllocPointsuint120

poolInfo

function poolInfo(
uint256 _index
) external returns (uint256, uint256, uint128, uint120, bool)

Parameters

NameTypeDescription
_indexuint256

tribePerBlock

function tribePerBlock() public returns (uint256)

Calculates and returns the amount of TRIBE per block.

setTotalAllocPoint

function setTotalAllocPoint(
uint256 newTotalAllocPoint
) external

set the total alloc points

Parameters

NameTypeDescription
newTotalAllocPointuint256

setPoolAllocPoints

function setPoolAllocPoints(
uint120 newPoolAllocPoint
) external

set the pool alloc points

Parameters

NameTypeDescription
newPoolAllocPointuint120

setTribePerBlock

function setTribePerBlock(
uint256 newTribePerBlock
) external

set the tribe per block

Parameters

NameTypeDescription
newTribePerBlockuint256