From 751cafd79524061248078534c323d48ff7c84d47 Mon Sep 17 00:00:00 2001 From: aalavandhan1984 <6264334+aalavandhan@users.noreply.github.com> Date: Thu, 13 Mar 2025 13:55:17 -0400 Subject: [PATCH] allows owner to rescue reward tokens --- contracts/Geyser.sol | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/contracts/Geyser.sol b/contracts/Geyser.sol index 22df537b..a45d5241 100644 --- a/contracts/Geyser.sol +++ b/contracts/Geyser.sol @@ -737,8 +737,8 @@ contract Geyser is IGeyser, Powered, OwnableUpgradeable { } /// @notice Rescue tokens from RewardPool - /// @dev use this function to rescue tokens from RewardPool contract - /// without distributing to stakers or triggering emergency shutdown + /// @dev Use this function to rescue tokens from RewardPool contract + /// without distributing to stakers or triggering emergency shutdown. /// access control: only admin /// state machine: /// - can be called multiple times @@ -756,12 +756,6 @@ contract Geyser is IGeyser, Powered, OwnableUpgradeable { // verify recipient _validateAddress(recipient); - // check not attempting to unstake reward token - require(token != _geyser.rewardToken, "Geyser: invalid address"); - - // check not attempting to wthdraw bonus token - require(!_bonusTokenSet.contains(token), "Geyser: invalid address"); - // transfer tokens to recipient IRewardPool(_geyser.rewardPool).sendERC20(token, recipient, amount); }