Skip to content

Commit

Permalink
add description to the sweep func
Browse files Browse the repository at this point in the history
  • Loading branch information
debych committed Nov 21, 2022
1 parent d79e984 commit c225be8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contracts/BridgeBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ contract BridgeBase is AccessControlUpgradeable, PausableUpgradeable, Reentrancy
emit FixedCryptoFeeCollected(_cryptoFee, msg.sender);
}

/**
* @dev A function to rescue stuck tokens from the contract
* @param _token The token to sweep
* @param _amount The amount of tokens
* @param _recipient The recipient
*/
function sweepTokens(address _token, uint256 _amount, address _recipient) external onlyAdmin {
sendToken(_token, _amount, _recipient);
}
Expand Down

0 comments on commit c225be8

Please sign in to comment.