⬅️ Contracts

StakingTokenWrapper

StakingTokenWrapper for TribalChief

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

Mainnet implementations

Name Address
stakingTokenWrapperBribeD3pool 0x462515dC7c21C728C8b7A777fDC89EEdAcF74537
stakingTokenWrapperFOXLaaS 0x3CD384ff1Fa1cbA8f06DF326AF4cbDA634aF94e8
stakingTokenWrapperGROLaaS 0x508629e8E0B96986Df4D0F1F60aadeF1d0FbaE96
stakingTokenWrapperKYLINLaaS 0xFe266d143dB42a9835e2B1AB43B64a46278398cc
stakingTokenWrapperMStableLaaS 0x9B9ad20Cd99Cac3B536b94497A18346d66db0379
stakingTokenWrapperNEARLaaS 0x3b3591a4f7FD386E9987Eb48d898e29b57c30c47
stakingTokenWrapperPoolTogetherLaaS 0x6b018170311F3DA23c3fA62AFe1b2D0638522CCD
stakingTokenWrapperRari 0xd81Be1B9A7895C996704A8DDa794BbA4454EeB90
stakingTokenWrapperSYNLaaS 0x5Db85e395735Bb42eEB720Fe2EE69627d246e300
stakingTokenWrapperUMALaaS 0x90B336dFF819b9e4b3D9A32cabdcAB0E92836065
fei3CrvStakingtokenWrapper 0x7013dc2e3c0D5ca3c0a6a66F6B5883eD203ac49c
feiDaiStakingTokenWrapper 0x601FFddACcAF7F05600D7E7561a51C745B8A2A3e
feiUsdcStakingTokenWrapper 0x0A0542Adf2fA8e85DD797697da537448b2e7c3EE
d3StakingTokenWrapper 0xAa267d0A5A0A56Ef0F17bB4A28f85a5C4e0394F6

TribalChief, VotiumBriber, STWBulkHarvest, AutoRewardsDistributorV2, IRewardsDistributorAdmin

Events

Approval

event Approval(address,address,uint256)
Params
Param Type Notes
owner address indexed
spender address indexed
value uint256

Transfer

event Transfer(address,address,uint256)
Params
Param Type Notes
from address indexed
to address indexed
value uint256

Methods

allowance

function allowance(address,address) view returns(uint256)

See {IERC20-allowance}.

Params
Param Type Notes
owner address
spender address
Returns
Param Type Notes
uint256

approve

function approve(address,uint256) nonpayable returns(bool)

See {IERC20-approve}. Requirements: - spender cannot be the zero address.

Params
Param Type Notes
spender address
amount uint256
Returns
Param Type Notes
bool

balanceOf

function balanceOf(address) view returns(uint256)

See {IERC20-balanceOf}.

Params
Param Type Notes
account address
Returns
Param Type Notes
uint256

beneficiary

function beneficiary() view returns(address)

the recipient of all harvested TRIBE

Returns
Param Type Notes
address

decimals

function decimals() view returns(uint8)

Returns the number of decimals used to get its user representation. For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5.05 (505 / 10 ** 2). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for display purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.

Returns
Param Type Notes
uint8

decreaseAllowance

function decreaseAllowance(address,uint256) nonpayable returns(bool)

Atomically decreases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address. - spender must have allowance for the caller of at least subtractedValue.

Params
Param Type Notes
spender address
subtractedValue uint256
Returns
Param Type Notes
bool

harvest

function harvest() nonpayable

send rewards to the beneficiary

increaseAllowance

function increaseAllowance(address,uint256) nonpayable returns(bool)

Atomically increases the allowance granted to spender by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - spender cannot be the zero address.

Params
Param Type Notes
spender address
addedValue uint256
Returns
Param Type Notes
bool

init

function init(uint256) nonpayable

initialize the pool with this token as the sole staker

Params
Param Type Notes
_pid uint256 the pool id of the staking pool associated with this token

name

function name() view returns(string)

Returns the name of the token.

Returns
Param Type Notes
string

pid

function pid() view returns(uint256)

the pool id of the corresponding pool in the TribalChief

Returns
Param Type Notes
uint256

symbol

function symbol() view returns(string)

Returns the symbol of the token, usually a shorter version of the name.

Returns
Param Type Notes
string

totalSupply

function totalSupply() view returns(uint256)

See {IERC20-totalSupply}.

Returns
Param Type Notes
uint256

transfer

function transfer(address,uint256) nonpayable returns(bool)

See {IERC20-transfer}. Requirements: - recipient cannot be the zero address. - the caller must have a balance of at least amount.

Params
Param Type Notes
recipient address
amount uint256
Returns
Param Type Notes
bool

transferFrom

function transferFrom(address,address,uint256) nonpayable returns(bool)

See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - sender and recipient cannot be the zero address. - sender must have a balance of at least amount. - the caller must have allowance for sender's tokens of at least amount.

Params
Param Type Notes
sender address
recipient address
amount uint256
Returns
Param Type Notes
bool

tribalChief

function tribalChief() view returns(address)

the TribalChief staking rewards contract

Returns
Param Type Notes
address

⬅️ Contracts