🚰Liquidity Pool Deposit Mode - Integration Docs

Liquidity Pool Deposit mode lets your users add liquidity to your pools with any token from multiple chains, right from your website.

Try Liquidity Pool Deposit mode here.

LP Deposit Mode Quickstart

Step 1/2: Install the package and paste the below component into your app

yarn add @brydge-network/utils
import { encodeUrl } from '@brydge-network/utils';

const lpInfo = { 
    lpChainId: 137 
    routerAddress: '0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff'
    currencyAAddress: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174'
    currencyBAddress: 'NATIVE'
    tokenPairName: 'USDC-MATIC LP'
    }

const url =
      'https://brydge.network/widget/' +
      encodeUrl({
        widgetMode: 'LP_DEPOSIT',
        darkMode: true,
        title: 'Add USDC-MATIC Liquidity',
        lpInfo: lpInfo,
        backgroundColor: '#000000',
       })
      
function App() {
  return (
    <div>
        <iframe src={url} width={360} height={470} />
    </div>
  );
}

export default App;

Step 2/2: Customize your props

Last updated