Sweepable
Last updated
Last updated
Inherits: ISweepable, Auth2Step
This contract allows the owner of the contract to recover accidentally sent tokens and the chain's native token
constructor(address initialOwner, Authority initialAuthority) Auth2Step(initialOwner, initialAuthority);
Withdraw any tokens accidentally sent to contract
function sweep(address token, uint256 amount) external requiresAuth;
Parameters
token
address
Token address to withdraw or zero address for the chain's native token
amount
uint256
Amount to withdraw