Skip to content

Commit

Permalink
Added withdrawal address check for msg.sender to _claimAndStake
Browse files Browse the repository at this point in the history
  • Loading branch information
jclapis committed Apr 19, 2024
1 parent 04f0488 commit 4c8aeb0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ contract RocketMerkleDistributorMainnet is RocketBase, RocketRewardsRelayInterfa
require(msg.sender == rplWithdrawalAddress, "Can only claim from RPL withdrawal address");
} else {
// Otherwise, must be called from node address or withdrawal address
require(msg.sender == _nodeAddress || msg.sender == withdrawalAddress, "Can only claim from node address");
address senderWithdrawalAddress = rocketStorage.getNodeWithdrawalAddress(msg.sender);
require(msg.sender == _nodeAddress || msg.sender == withdrawalAddress || senderWithdrawalAddress == _nodeAddress, "Can only claim from node address");
}
}

Expand Down

0 comments on commit 4c8aeb0

Please sign in to comment.