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 ParameterTypeDescription
_tokenaddressThe address of token to reward.
_amountuint256The amount of token to transfer to rewards

notifyRewardAmountETH

Add ETH rewards for voters to earn.

function notifyRewardAmountETH() external

msg.value should be set the desired amount to add.

On this page