API reference v1.0
Introduction
periphery
tokenomics
IPeripheryPaymentsWithFee

IPeripheryPaymentsWithFee

IPeripheryPaymentsWithFee

Periphery Payments Functions to ease deposits and withdrawals of NativeToken

Functions

unwrapWNativeTokenWithFee

unwrapWNativeTokenWithFee(uint256,address,uint256,address) 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

NameTypeDescription
amountMinimumuint256
recipientaddress
feeBipsuint256
feeRecipientaddress

sweepTokenWithFee

sweepTokenWithFee(address,uint256,address,uint256,address) 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

NameTypeDescription
tokenaddress
amountMinimumuint256
recipientaddress
feeBipsuint256
feeRecipientaddress