Skip to content

Commit

Permalink
Merge branch 'feat/SD_Utility_Pool' of https://github.com/stader-labs…
Browse files Browse the repository at this point in the history
…/ethx into feat/SD_Utility_Pool
  • Loading branch information
Sanjay Yadav authored and Sanjay Yadav committed Dec 9, 2023
2 parents cf935da + 8360869 commit d78e882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/OperatorRewardsCollector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ contract OperatorRewardsCollector is IOperatorRewardsCollector, AccessControlUpg

uint256 maxWithdrawableInEth = withdrawableInEth(operator);

if (amount <= maxWithdrawableInEth || amount > balances[operator]) revert InsufficientBalance();
if (amount > maxWithdrawableInEth || amount > balances[operator]) revert InsufficientBalance();

balances[operator] -= amount;

Expand Down

0 comments on commit d78e882

Please sign in to comment.