Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions contracts/Geyser.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
Expand Down
Loading