1 2 3 4 5 6 7 8 9 10 11 12 | 289× 289× | pragma solidity ^0.7.6;
abstract contract RewardsDistributionRecipient {
address public rewardsDistribution;
function notifyRewardAmount(uint256 reward) external virtual;
modifier onlyRewardsDistribution() {
Erequire(msg.sender == rewardsDistribution, "Caller is not RewardsDistribution contract");
_;
}
} |