Skip to content

Commit

Permalink
allow restaking only of the supported validators
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrowDom committed Jan 17, 2025
1 parent 11f967f commit fbc04ff
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ abstract contract SonicValidatorDelegator is InitializableAbstractStrategy {
nonReentrant
{
for (uint256 i = 0; i < validatorIds.length; ++i) {
require(isSupportedValidator(validatorIds[i]), "Validator not supported");

uint256 rewards = sfc.pendingRewards(
address(this),
validatorIds[i]
Expand Down

0 comments on commit fbc04ff

Please sign in to comment.