Skip to content

Commit 751cafd

Browse files
committed
allows owner to rescue reward tokens
1 parent 8d11f3d commit 751cafd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

contracts/Geyser.sol

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,8 @@ contract Geyser is IGeyser, Powered, OwnableUpgradeable {
737737
}
738738

739739
/// @notice Rescue tokens from RewardPool
740-
/// @dev use this function to rescue tokens from RewardPool contract
741-
/// without distributing to stakers or triggering emergency shutdown
740+
/// @dev Use this function to rescue tokens from RewardPool contract
741+
/// without distributing to stakers or triggering emergency shutdown.
742742
/// access control: only admin
743743
/// state machine:
744744
/// - can be called multiple times
@@ -756,12 +756,6 @@ contract Geyser is IGeyser, Powered, OwnableUpgradeable {
756756
// verify recipient
757757
_validateAddress(recipient);
758758

759-
// check not attempting to unstake reward token
760-
require(token != _geyser.rewardToken, "Geyser: invalid address");
761-
762-
// check not attempting to wthdraw bonus token
763-
require(!_bonusTokenSet.contains(token), "Geyser: invalid address");
764-
765759
// transfer tokens to recipient
766760
IRewardPool(_geyser.rewardPool).sendERC20(token, recipient, amount);
767761
}

0 commit comments

Comments
 (0)