Skip to content

Commit

Permalink
external
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Sep 22, 2023
1 parent 25fdfa7 commit bbb2149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omnichain/staking/contracts/Staking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ contract Staking is ERC20, zContract {
return rewardAmount;
}

function claimRewards(address staker) public {
function claimRewards(address staker) external {
if (beneficiary[staker] != msg.sender) revert NotAuthorized();
uint256 rewardAmount = queryRewards(staker);
if (rewardAmount <= 0) revert NoRewardsToClaim();
Expand Down

0 comments on commit bbb2149

Please sign in to comment.