⚪Liquidity Provisioning Implementation
To add liquidity to a pool we will use the addLiquidity
function of the sdk.
Syntax
Parameters
xfai
: An instance of theXfai
class.ethAmount
: The amount of ETH to add to the pool.target
: An object containing the token and amount of the target token to add to the pooloptions
: This parameter allows you to specify additional transaction options such as 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