22 lines
603 B
Solidity
22 lines
603 B
Solidity
pragma solidity ^0.5.16;
|
|
|
|
// Inheritance
|
|
import "./Owned.sol";
|
|
|
|
|
|
// https://docs.synthetix.io/contracts/source/contracts/rewardsdistributionrecipient
|
|
contract RewardsDistributionRecipient is Owned {
|
|
address public rewardsDistribution;
|
|
|
|
function notifyRewardAmount(uint256 reward) external;
|
|
|
|
modifier onlyRewardsDistribution() {
|
|
require(msg.sender == rewardsDistribution, "Caller is not RewardsDistribution contract");
|
|
_;
|
|
}
|
|
|
|
function setRewardsDistribution(address _rewardsDistribution) external onlyOwner {
|
|
rewardsDistribution = _rewardsDistribution;
|
|
}
|
|
}
|