Skip to content

Commit

Permalink
Merge pull request #13 from term-finance/removing-rescue-token
Browse files Browse the repository at this point in the history
Removing rescueToken
  • Loading branch information
0xddong authored Aug 22, 2024
2 parents 0ae0dd2 + 6f90469 commit 2272739
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Strategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,6 @@ contract Strategy is BaseStrategy, Pausable, ReentrancyGuard {
MANAGEMENT FUNCTIONS
//////////////////////////////////////////////////////////////*/

/**
* @notice Rescue tokens from the contract
* @param token The address of the token to rescue
* @param amount The amount of tokens to rescue
*/
function rescueToken(
address token,
uint256 amount
) external onlyManagement {
if (amount > 0) {
IERC20(token).safeTransfer(msg.sender, amount);
}
}

/**
* @notice Pause the contract
*/
Expand Down

0 comments on commit 2272739

Please sign in to comment.