Rescuable

Git Source

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

NameTypeDescription
tokenIERC20address of the ERC20 token to rescue. Use zero address for ETH
toaddressaddress to send the tokens to
balanceuint256amount of tokens to rescue. Use zero to rescue all