Technical ReferenceContract FunctionsVoting Reward
BribeVotingReward
Overview
The BribeVotingReward contract allows to distribute bribe rewards to users, earned through voting for a associated pool.
BribeVotingReward Methods
notifyRewardAmount
Add rewards for voters to earn.
function notifyRewardAmount(
address _token,
uint256 _amount
) external| Input Parameter | Type | Description |
|---|---|---|
_token | address | The address of token to reward. |
_amount | uint256 | The amount of token to transfer to rewards |
notifyRewardAmountETH
Add ETH rewards for voters to earn.
function notifyRewardAmountETH() externalmsg.value should be set the desired amount to add.