PeripheryPayments

Developer note: Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-periphery

Functions

receive

receive() external payable payable external

unwrapWNativeToken

function unwrapWNativeToken(uint256 amountMinimum, address recipient) external payable payable external

Unwraps the contract's WNativeToken balance and sends it to recipient as NativeToken. Developer note: The amountMinimum parameter prevents malicious contracts from stealing WNativeToken from users.

sweepToken

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

Transfers the full amount of a token held by this contract to recipient Developer note: The amountMinimum parameter prevents malicious contracts from stealing the token from users

refundNativeToken

function refundNativeToken() external payable payable external

Refunds any NativeToken balance held by this contract to the `msg.sender` Developer note: Useful for bundling with mint or increase liquidity that uses ether, or exact output swaps that use ether for the input amount