permanentStaking

This method permanently stakes liquidity within the Xfai DEX. Mints an INFT.

Function

function permanentStaking(
    address _to,
    uint _amountIn,
    uint _shareMin,
    uint _deadline
  ) external returns (uint share);

Parameters

ParameterDescription

_to

The address of the recipient.

_amountIn

The amount of XFIT to be permanently staked.

_shareMin

The minimal amount of INFT shares that the user will accept for a given _amount0In.

_deadline

The UTC timestamp that if reached, causes the swap transaction to fail automatically.

Return values

ValueDescription

share

The share of the minted INFT.

Last updated