RewardsDistribution


Functions:

Events:

Graphs:


Function Definitions:

constructor()

constructor(address _owner, address _pop, address _treasury) public 

setPop()

setPop(address _pop) external 

setTreasury()

setTreasury(address _treasury) external 

approveRewardDistributor()

approveRewardDistributor(address _distributor, bool _approved) external 

addRewardDistribution()

addRewardDistribution(address destination, uint256 amount, bool isLocker) external  returns (bool)
Parameter NameTypeDescription

destination

address

An address to send rewards tokens too

amount

uint256

The amount of rewards tokens to send

isLocker

bool

If the contract is a popLocker which has a slightly different notifyRewardsAmount interface

removeRewardDistribution()

removeRewardDistribution(uint256 index) external 
Parameter NameTypeDescription

index

uint256

The index of the DistributionData to delete

editRewardDistribution()

editRewardDistribution(uint256 index, address destination, uint256 amount, bool isLocker) external  returns (bool)
Parameter NameTypeDescription

index

uint256

The index of the DistributionData to edit

destination

address

The destination address. Send the same address to keep or different address to change it.

amount

uint256

The amount of tokens to edit. Send the same number to keep or change the amount of tokens to send.

isLocker

bool

If the contract is a popLocker which has a slightly different notifyRewardsAmount interface

distributeRewards()

distributeRewards(uint256 amount) external  returns (bool)

distributionsLength()

distributionsLength() external  returns (uint256)

Events

RewardDistributionAdded

RewardDistributionAdded(uint256 index, address destination, uint256 amount, bool isLocker)

RewardsDistributed

RewardsDistributed(uint256 amount)

RewardDistributorUpdated

RewardDistributorUpdated(address distributor, bool approved)

Graphs

Dependency Graph

Inheritance Graph

Last updated