Drainable

All public interfaces for the Drainable contract
Drainable contract extends Access Control contract.

drain

Transfer any ERC20 token from the contract to any other address.
parameters: address _token, address _receiver, uint256 _amount
_token is the address of the ERC20 that you would like to drain from the contract
_receiver is the address that you like to send the tokens to
_amount is the amount of tokens that you would like to send from the contract
User must have DRAINER role

drainETH

Transfer an amount of ETH to a given payable address.
_receiver is the address that you like to send the ETH to
_amount is the amount of ETH that you would like to send from the contract
User must have DRAINER role

State Variables

bytes32 DRAINER role which controls which users are able to drain and drainETH
bytes32 DRAINER_ADMIN role which who has the DRAINER role
Last modified 1yr ago