all files / contracts/ RewardsDistributionRecipient.sol

100% Statements 1/1
50% Branches 1/2
100% Functions 1/1
100% Lines 2/2
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");
        _;
    }
}