Skip to content

Commit

Permalink
Merge pull request #109 from stakedotlink/get-metis-rewards
Browse files Browse the repository at this point in the history
added getRewards to metis ccip sender
  • Loading branch information
BkChoy authored Jun 17, 2024
2 parents a93a16d + ee790dd commit 7d21035
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contracts/metisStaking/ccip/SequencerRewardsCCIPSender.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ contract SequencerRewardsCCIPSender is UUPSUpgradeable, OwnableUpgradeable {
_;
}

/**
* @notice Returns the total available rewards
* @return available rewards
**/
function getRewards() external view returns (uint256) {
return metisToken.balanceOf(address(this));
}

/**
* @notice Transfers reward tokens to the destination chain
* @param _maxLINKFee call will revert if LINK fee exceeds this value
Expand Down

0 comments on commit 7d21035

Please sign in to comment.