Skip to main content

StakingTokenWrapper

Allows the TribalChief to distribute TRIBE to a beneficiary contract The beneficiary is the sole holder of a dummy token staked in the TribalChief

Functions

constructor

function constructor(
contract ITribalChief _tribalChief,
address _beneficiary
) public

constructor for the StakingTokenWrapper

Parameters

NameTypeDescription
_tribalChiefcontract ITribalChiefthe TribalChief contract
_beneficiaryaddressthe recipient of all harvested TRIBE

init

function init(
uint256 _pid
) external

initialize the pool with this token as the sole staker

Parameters

NameTypeDescription
_piduint256the pool id of the staking pool associated with this token

harvest

function harvest() external

send rewards to the beneficiary