Sweepable

Inherits: ISweepable, Auth2Step

This contract allows the owner of the contract to recover accidentally sent tokens and the chain's native token

Functions

constructor

constructor(address initialOwner, Authority initialAuthority) Auth2Step(initialOwner, initialAuthority);

sweep

Withdraw any tokens accidentally sent to contract

function sweep(address token, uint256 amount) external requiresAuth;

Parameters

Name
Type
Description

token

address

Token address to withdraw or zero address for the chain's native token

amount

uint256

Amount to withdraw

Last updated