Skip to main content

IAutoRewardsDistributor

Functions

setAutoRewardsDistribution

function setAutoRewardsDistribution() external

ITimelock

Functions

execute

function execute(
address target,
uint256 value,
bytes data,
bytes32 predecessor,
bytes32 salt
) external

Parameters

NameTypeDescription
targetaddress
valueuint256
databytes
predecessorbytes32
saltbytes32

TribalChiefSyncV2

Functions

constructor

function constructor(
contract ITribalChief _tribalChief,
contract IAutoRewardsDistributor _autoRewardsDistributor,
contract ITimelock _timelock,
uint256[] rewards,
uint256[] timestamps
) public

Parameters

NameTypeDescription
_tribalChiefcontract ITribalChief
_autoRewardsDistributorcontract IAutoRewardsDistributor
_timelockcontract ITimelock
rewardsuint256[]
timestampsuint256[]

autoDecreaseRewards

function autoDecreaseRewards() external

Sync a rewards rate change automatically using pre-approved map

isRewardDecreaseAvailable

function isRewardDecreaseAvailable() public returns (bool)

nextRewardTimestamp

function nextRewardTimestamp() public returns (uint256)

nextRewardsRate

function nextRewardsRate() public returns (uint256)

decreaseRewards

function decreaseRewards(
uint256 tribePerBlock,
bytes32 salt
) external

Sync a rewards rate change

Parameters

NameTypeDescription
tribePerBlockuint256
saltbytes32

addPool

function addPool(
uint120 allocPoint,
address stakedToken,
address rewarder,
struct TribalChiefSyncV2.RewardData[] rewardData,
bytes32 salt
) external

Sync a pool addition

Parameters

NameTypeDescription
allocPointuint120
stakedTokenaddress
rewarderaddress
rewardDatastruct TribalChiefSyncV2.RewardData[]
saltbytes32

setPool

function setPool(
uint256 pid,
uint120 allocPoint,
contract IRewarder rewarder,
bool overwrite,
bytes32 salt
) external

Sync a pool set action

Parameters

NameTypeDescription
piduint256
allocPointuint120
rewardercontract IRewarder
overwritebool
saltbytes32

resetPool

function resetPool(
uint256 pid,
bytes32 salt
) external

Sync a pool reset rewards action

Parameters

NameTypeDescription
piduint256
saltbytes32