Rescuable
Allows the inheriting contract to rescue ERC20 tokens that are sent to it by mistake.
Functions
_rescue
Rescue any ERC20 tokens that are stuck in this contract. The inheriting contract that calls this function should specify required access controls
function _rescue(IERC20 token, address to, uint256 balance) internal;
Parameters
Name | Type | Description |
---|---|---|
token | IERC20 | address of the ERC20 token to rescue. Use zero address for ETH |
to | address | address to send the tokens to |
balance | uint256 | amount of tokens to rescue. Use zero to rescue all |