🦑
Liquidswap Docs
GithubDappPontem Network
Liquidswap V1 Docs
Liquidswap V1 Docs
  • Introduction v1
    • Security Audits
    • Bounty Program
    • Developer Links
  • Protocol Overview
  • Smart Contracts
    • Pool
    • LB Tokens
    • Oracles
    • Fees
    • Router & Entry
    • Other
  • Integration
    • Test Coins
    • Let's Swap
    • Add Liquidity
    • Burn Liquidity
    • Flashloans
  • Liquidswap DApp
    • Bridge
    • Testnet
Powered by GitBook
On this page
  1. Integration

Add Liquidity

PreviousLet's SwapNextBurn Liquidity

Last updated 1 year ago

Given that pool creation on Liquidswap requires specific permissions, this tutorial will focus on adding liquidity as the accessible action for users. We will be working with APT and test USDT, utilizing a BinStep of X5:

In the example above, we first withdraw a fixed amount of coins from the account and prepare the necessary information regarding bin IDs and liquidity. Next, we specify the slippage for the active bin along with the active bin itself as transaction parameters.

Following this, we proceed to add liquidity. Finally, any leftovers and LB tokens are deposited back into the account.