Skip to main content

TribeMinter

Functions

constructor

function constructor(
address _core,
uint256 _annualMaxInflationBasisPoints,
address _owner,
address _tribeTreasury,
address _tribeRewardsDripper
) public

Tribe Reserve Stabilizer constructor

Parameters

NameTypeDescription
_coreaddressFei Core to reference
_annualMaxInflationBasisPointsuint256the max inflation in TRIBE circulating supply per year in basis points (1/10000)
_owneraddressthe owner, capable of changing the tribe minter address.
_tribeTreasuryaddressthe tribe treasury address used to exclude from circulating supply
_tribeRewardsDripperaddressthe tribe rewards dripper address used to exclude from circulating supply

poke

function poke() public

update the rate limit per second and buffer cap

setRateLimitPerSecond

function setRateLimitPerSecond(
uint256
) external

no-op, reverts. Prevent admin or governor from overwriting ideal rate limit

Parameters

NameTypeDescription
``uint256

setBufferCap

function setBufferCap(
uint256
) external

no-op, reverts. Prevent admin or governor from overwriting ideal buffer cap

Parameters

NameTypeDescription
``uint256

mint

function mint(
address to,
uint256 amount
) external

mints TRIBE to the target address, subject to rate limit

Parameters

NameTypeDescription
toaddressthe address to send TRIBE to
amountuint256the amount of TRIBE to send

setTribeTreasury

function setTribeTreasury(
address newTribeTreasury
) external

sets the new TRIBE treasury address

Parameters

NameTypeDescription
newTribeTreasuryaddress

setTribeRewardsDripper

function setTribeRewardsDripper(
address newTribeRewardsDripper
) external

sets the new TRIBE treasury rewards dripper

Parameters

NameTypeDescription
newTribeRewardsDripperaddress

setMinter

function setMinter(
address newMinter
) external

changes the TRIBE minter address

Parameters

NameTypeDescription
newMinteraddressthe new minter address

setAnnualMaxInflationBasisPoints

function setAnnualMaxInflationBasisPoints(
uint256 newAnnualMaxInflationBasisPoints
) external

sets the max annual inflation relative to current supply

Parameters

NameTypeDescription
newAnnualMaxInflationBasisPointsuint256the new max inflation % denominated in basis points (1/10000)

idealBufferCap

function idealBufferCap() public returns (uint256)

return the ideal buffer cap based on TRIBE circulating supply

tribeCirculatingSupply

function tribeCirculatingSupply() public returns (uint256)

return the TRIBE supply, subtracting locked TRIBE

totalSupply

function totalSupply() public returns (uint256)

alias for tribeCirculatingSupply

for compatibility with ERC-20 standard for off-chain 3rd party sites

isPokeNeeded

function isPokeNeeded() external returns (bool)

return whether a poke is needed or not i.e. is buffer cap != ideal cap

_mint

function _mint(
address to,
uint256 amount
) internal

Parameters

NameTypeDescription
toaddress
amountuint256

_setAnnualMaxInflationBasisPoints

function _setAnnualMaxInflationBasisPoints(
uint256 newAnnualMaxInflationBasisPoints
) internal

Parameters

NameTypeDescription
newAnnualMaxInflationBasisPointsuint256