Function: withdrawNativeTo(address to, uint256 amount)
This function transfers the native tokens from this contract to the given address. The caller must be the owner.
Inputs
toControl: Fully controlled by the caller.
Constraints: The value must not be zero.
Impact: The address to transfer the tokens to.
amountControl: Fully controlled by the caller.
Constraints: This contract must have enough native tokens, and this value must be greater than zero.
Impact: The amount of native tokens to transfer.
Branches and code coverage
Intended branches
Transfer the native tokens to the given address.
Negative behavior
Revert when the caller is not the owner.