Skip to content

Commit

Permalink
public > external
Browse files Browse the repository at this point in the history
  • Loading branch information
anajuliabit committed Aug 20, 2024
1 parent 4a6456a commit a63374c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/RewardsDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ contract RewardsDistributor is Ownable, IRewardsDistributor {

/// @notice Distribute rewards to receiver
/// Caller must be the receiver
function collectRewards() public override returns (uint256 rewards) {
function collectRewards() external override returns (uint256 rewards) {
RewardConfiguration storage rewardConfiguration = rewardConfigurations[
msg.sender
];
Expand Down Expand Up @@ -139,7 +139,7 @@ contract RewardsDistributor is Ownable, IRewardsDistributor {
function setRewardConfiguration(
address receiver,
uint256 emissionRate
) public override onlyOwner {
) external override onlyOwner {
require(receiver != address(0), ZeroAddress());

// to remove a rewards, it should call removeRewardConfiguration
Expand All @@ -162,7 +162,7 @@ contract RewardsDistributor is Ownable, IRewardsDistributor {
/// @param receiver The receiver of the rewards
function removeRewardConfiguration(
address receiver
) public override onlyOwner {
) external override onlyOwner {
rewardConfigurations[receiver].lastUpdate = 0;
rewardConfigurations[receiver].emissionRate = 0;

Expand All @@ -171,7 +171,7 @@ contract RewardsDistributor is Ownable, IRewardsDistributor {

/// @notice Set the reward token
/// @param _rewardToken The reward token
function setRewardToken(address _rewardToken) public override onlyOwner {
function setRewardToken(address _rewardToken) external override onlyOwner {
require(_rewardToken != address(0), ZeroAddress());

// withdraw remaining old reward token
Expand Down

0 comments on commit a63374c

Please sign in to comment.