Skip to main content

TribalChiefSyncExtension

Functions

constructor

function constructor(
contract TribalChiefSyncV2 _tribalChiefSync
) public

Parameters

NameTypeDescription
_tribalChiefSynccontract TribalChiefSyncV2

autoDecreaseRewards

function autoDecreaseRewards(
contract IAutoRewardsDistributor[] distributors
) external

Sync a rewards rate change automatically using pre-approved map

Parameters

NameTypeDescription
distributorscontract IAutoRewardsDistributor[]

decreaseRewards

function decreaseRewards(
uint256 tribePerBlock,
bytes32 salt,
contract IAutoRewardsDistributor[] distributors
) external

Sync a rewards rate change

Parameters

NameTypeDescription
tribePerBlockuint256
saltbytes32
distributorscontract IAutoRewardsDistributor[]

addPool

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

Sync a pool addition

Parameters

NameTypeDescription
allocPointuint120
stakedTokenaddress
rewarderaddress
rewardDatastruct TribalChiefSyncV2.RewardData[]
saltbytes32
distributorscontract IAutoRewardsDistributor[]

setPool

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

Sync a pool set action

Parameters

NameTypeDescription
piduint256
allocPointuint120
rewardercontract IRewarder
overwritebool
saltbytes32
distributorscontract IAutoRewardsDistributor[]

resetPool

function resetPool(
uint256 pid,
bytes32 salt,
contract IAutoRewardsDistributor[] distributors
) external

Sync a pool reset rewards action

Parameters

NameTypeDescription
piduint256
saltbytes32
distributorscontract IAutoRewardsDistributor[]