IPeripheryPaymentsExtended

Functions to ease deposits and withdrawals of SEI and tokens

Functions

unwrapWSEI

Unwraps the contract's WSEI balance and sends it to msg.sender as SEI.

The amountMinimum parameter prevents malicious contracts from stealing WSEI from users.

function unwrapWSEI(uint256 amountMinimum) external payable;

Parameters

NameTypeDescription

amountMinimum

uint256

The minimum amount of WSEI to unwrap

wrapSEI

Wraps the contract's SEI balance into WSEI

The resulting WSEI is custodied by the router, thus will require further distribution

function wrapSEI(uint256 value) external payable;

Parameters

NameTypeDescription

value

uint256

The amount of SEI to wrap

sweepToken

Transfers the full amount of a token held by this contract to msg.sender

The amountMinimum parameter prevents malicious contracts from stealing the token from users

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

Parameters

NameTypeDescription

token

address

The contract address of the token which will be transferred to msg.sender

amountMinimum

uint256

The minimum amount of token required for a transfer

pull

Transfers the specified amount of a token from the msg.sender to address(this)

function pull(address token, uint256 value) external payable;

Parameters

NameTypeDescription

token

address

The token to pull

value

uint256

The amount to pay

Last updated