API reference v1.0
Introduction
periphery
tokenomics
IPeripheryPayments

IPeripheryPayments

IPeripheryPayments

Periphery Payments Functions to ease deposits and withdrawals of NativeToken

Functions

unwrapWNativeToken

unwrapWNativeToken(uint256,address) payable external

Unwraps the contract's WNativeToken balance and sends it to recipient as NativeToken.

NameTypeDescription
amountMinimumuint256The minimum amount of WNativeToken to unwrap
recipientaddressThe address receiving NativeToken

refundNativeToken

refundNativeToken() payable external

Refunds any NativeToken balance held by this contract to the `msg.sender`

sweepToken

sweepToken(address,uint256,address) payable external

Transfers the full amount of a token held by this contract to recipient

NameTypeDescription
tokenaddressThe contract address of the token which will be transferred to `recipient`
amountMinimumuint256The minimum amount of token required for a transfer
recipientaddressThe destination address of the token

IPeripheryPayments

Periphery Payments Functions to ease deposits and withdrawals of NativeToken

Functions

unwrapWNativeToken

unwrapWNativeToken(uint256,address) payable external

Unwraps the contract's WNativeToken balance and sends it to recipient as NativeToken.

NameTypeDescription
amountMinimumuint256The minimum amount of WNativeToken to unwrap
recipientaddressThe address receiving NativeToken

refundNativeToken

refundNativeToken() payable external

Refunds any NativeToken balance held by this contract to the `msg.sender`

sweepToken

sweepToken(address,uint256,address) payable external

Transfers the full amount of a token held by this contract to recipient

NameTypeDescription
tokenaddressThe contract address of the token which will be transferred to `recipient`
amountMinimumuint256The minimum amount of token required for a transfer
recipientaddressThe destination address of the token

IPeripheryPayments

Periphery Payments Functions to ease deposits and withdrawals of NativeToken

Functions

unwrapWNativeToken

unwrapWNativeToken(uint256,address) payable external

Unwraps the contract's WNativeToken balance and sends it to recipient as NativeToken.

NameTypeDescription
amountMinimumuint256The minimum amount of WNativeToken to unwrap
recipientaddressThe address receiving NativeToken

refundNativeToken

refundNativeToken() payable external

Refunds any NativeToken balance held by this contract to the `msg.sender`

sweepToken

sweepToken(address,uint256,address) payable external

Transfers the full amount of a token held by this contract to recipient

NameTypeDescription
tokenaddressThe contract address of the token which will be transferred to `recipient`
amountMinimumuint256The minimum amount of token required for a transfer
recipientaddressThe destination address of the token