IPayment

Inherits: IPayableMulticall, IState

Functions

receive

receive() external payable;

unwrapWETH9

Unwrap WETH9 tokens into ETH and send that balance to recipient. If less than amountMinimum WETH is avialble, then revert.

function unwrapWETH9(uint256 amountMinimum, address recipient) external payable;

sweepTokenAmount

Transfers specified token amount to recipient

function sweepTokenAmount(IERC20 token, uint256 amount, address recipient) external payable;

sweepToken

Sweep entire ERC20 token balance on this contract to recipient. If less than amountMinimum balance is avialble, then revert.

function sweepToken(IERC20 token, uint256 amountMinimum, address recipient) external payable;

refundETH

Send any ETH on this contract to msg.sender.

function refundETH() external payable;

unwrapAndSweep

For tokenA and tokenB, sweep all of the non-WETH tokens to msg.sender. Any WETH balance is unwrapped to ETH and then all the ETH on this contract is sent to msg.sender.

Errors

PaymentSenderNotWETH9

PaymentInsufficientBalance

Last updated