API reference v2.0
Introduction
core
periphery
IPeripheryPaymentsWithFee

IPeripheryPaymentsWithFee

IPeripheryPaymentsWithFee

Periphery Payments

Functions to ease deposits and withdrawals of NativeToken

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

Functions

unwrapWNativeTokenWithFee

function unwrapWNativeTokenWithFee(uint256 amountMinimum, address recipient, uint256 feeBips, address feeRecipient) external payable payable external

Unwraps the contract's WNativeToken balance and sends it to recipient as NativeToken, with a percentage between 0 (exclusive), and 1 (inclusive) going to feeRecipient Developer note: The amountMinimum parameter prevents malicious contracts from stealing WNativeToken from users.

NameTypeDescription
amountMinimumuint256
recipientaddress
feeBipsuint256
feeRecipientaddress

sweepTokenWithFee

function sweepTokenWithFee(address token, uint256 amountMinimum, address recipient, uint256 feeBips, address feeRecipient) external payable payable external

Transfers the full amount of a token held by this contract to recipient, with a percentage between 0 (exclusive) and 1 (inclusive) going to feeRecipient Developer note: The amountMinimum parameter prevents malicious contracts from stealing the token from users

NameTypeDescription
tokenaddress
amountMinimumuint256
recipientaddress
feeBipsuint256
feeRecipientaddress