For the complete documentation index, see llms.txt. This page is also available as Markdown.
Integrating The KyberSwap Liquidity Widget
The @kyberswap/liquidity-widgets package is an npm package of React components used to provide subsets of the Zap Protocol functionality in a small and configurable user interface element.
Optional, in case “Increasing Liquidity into an existing position”, pass the position id. The position should belong to the poolAddress. Otherwise, it considers as “Adding Liquidity into a new position”
String | undefined
undefined
chainId
Required. Network of selected pool.
number
--
connectedAccount
Required. The current network that user connected. If not connected, the address should be undefined
{ address?: string, chainId: number }
--
source
Required. To identify the dapp that integrates with the iquidity widget
string
--
feeAddress
Optional, Wallet Address if you want to charge zap fee
Address
--
feePcm
fee percentage in per cent mille (0.001% or 1 in 100,000). Ignored if feeAddress is empty. From 0 to 100,000 inclusively. Example: 1 for 0.001%.
number
--
includedSources
List of liquidty sources you want to includes from your zap, separate by comma