⚪Infinity Staking Implementation
To add liquidity to a pool we will use the addLiquidity
function of the sdk.
Syntax
Parameters
xfai
: An instance of theXfai
class.amountIn
: The amount of token you want to stakeminShare
: The minimum amount of INFT shares you want to receive for staking the specified amount of tokenoptions
: This parameter allows you to specify additional transaction options such as INFT ID (used for boosting), deadline, slippage and more. Review the available options and set them according to your needs.
Return Value
A promise that return the PopulatedTransaction object.
Examples
Double sided
Last updated