ubiq-grans-yieldfarm/contracts/interfaces/IRewardsDistribution.sol

22 lines
594 B
Solidity
Raw Normal View History

2020-12-25 12:59:59 +00:00
pragma solidity >=0.4.24;
// https://docs.synthetix.io/contracts/source/interfaces/irewardsdistribution
interface IRewardsDistribution {
// Structs
struct DistributionData {
address destination;
uint amount;
}
// Views
function authority() external view returns (address);
function distributions(uint index) external view returns (address destination, uint amount); // DistributionData
function distributionsLength() external view returns (uint);
// Mutative Functions
function distributeRewards(uint amount) external returns (bool);
}