Skip to content

Owner can rescue funds from reward pool #267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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