Function: withdrawAll(address to)
This function is used to withdraw all remaining tokens and ETH from the contract. It is only callable by the owner.
Inputs
toControl: Arbitrary address.
Constraints: None.
Impact: Address to receive the funds.
Branches and code coverage
Intended branches
Withdraw all remaining base tokens.
Withdraw all remaining ETH.
Emit the
TokensWithdrawnevent.Emit the
ETHWithdrawnevent.
Negative behavior
Revert if the caller is not the owner.