Skip to content

Commit

Permalink
added comments for clarity regarding fee updates
Browse files Browse the repository at this point in the history
  • Loading branch information
BkChoy committed Nov 28, 2024
1 parent 446e540 commit f9dee31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/metisStaking/L1Strategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ contract L1Strategy is UUPSUpgradeable, OwnableUpgradeable {

/**
* @notice Sets the basis point amount of an operator's earned rewards that they receive
* @dev updateDeposits should be called before calling this function
* @dev L2Transmitter::executeUpdate should be called on L2 right before calling this function
* @param _operatorRewardPercentage basis point amount
*/
function setOperatorRewardPercentage(uint256 _operatorRewardPercentage) public onlyOwner {
Expand Down
6 changes: 2 additions & 4 deletions contracts/metisStaking/L2Strategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ contract L2Strategy is Strategy {

/**
* @notice Adds a new fee
* @dev stakingPool.updateStrategyRewards is called to credit all past fees at
* the old rate before the percentage changes
* @dev L2Transmitter::executeUpdate should be called right before calling this function
* @param _receiver receiver of fee
* @param _feeBasisPoints fee in basis points
**/
Expand All @@ -328,8 +327,7 @@ contract L2Strategy is Strategy {

/**
* @notice Updates an existing fee
* @dev stakingPool.updateStrategyRewards is called to credit all past fees at
* the old rate before the percentage changes
* @dev L2Transmitter::executeUpdate should be called right before calling this function
* @param _index index of fee
* @param _receiver receiver of fee
* @param _feeBasisPoints fee in basis points
Expand Down

0 comments on commit f9dee31

Please sign in to comment.