IDistributionProposal

Interface Description

License: MIT

interface IDistributionProposal

This is the contract the governance can execute in order to distribute rewards proportionally among all the voters who participated in the certain proposal

Structs info

DPInfo

struct DPInfo {
	address rewardAddress;
	uint256 rewardAmount;
	mapping(address => bool) claimed;
}

The struct holds information about distribution proposal

Parameters:

Functions info

execute (0xc45e0ae6)

function execute(
    uint256 proposalId,
    address token,
    uint256 amount
) external payable

Executed by Gov contract, creates a DP

Parameters:

claim (0x45718278)

function claim(address voter, uint256[] calldata proposalIds) external

Claims distribution proposal rewards

Parameters:

isClaimed (0xd2ef0795)

function isClaimed(
    uint256 proposalId,
    address voter
) external view returns (bool)

Function to check if voter claimed their reward

Parameters:

Return values:

getPotentialReward (0xfe32b0ba)

function getPotentialReward(
    uint256 proposalId,
    address voter
) external view returns (uint256)

Return potential reward. If user hasn't voted, or getTotalVotesWeight is zero, return zero

Parameters: