Liquidswap Docs
GithubDappPontem Network
Liquidswap V0 Docs
Liquidswap V0 Docs
  • Introduction
    • Security Audits
    • Bounty Program
    • Developer Links
  • Protocol Overview
  • Smart Contracts
    • Generics
    • LP Coins
    • Routers
    • Scripts
    • Advanced Topics
    • 💥V0.5 Update
  • Integration
    • Test Coins
    • Let's Swap
    • Create Pool
    • Add Liquidity
    • Burn Liquidity
    • Basic Oracle
    • Flashloans
    • Unit Testing
  • Staking / Harvest
    • Overview
    • Smart Contracts
    • Integration Examples
    • DApp
    • Create your own farming pool
  • SDKs
  • Liquidswap Widget
  • Liquidswap DApp
    • Bridge
    • Testnet
  • Coins Registry
Powered by GitBook
On this page

Integration

PreviousV0.5 UpdateNextTest Coins

Last updated 2 years ago

  • The smart contracts' source code can be found in the repository.

  • The current version of Liquidswap is deployed on the address

    0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12
  • The latest release tag can be found on the page.

Before we start, create a new Move project so that you can repeat the steps as described here.

Supported networks

The Aptos mainnet and testnet, devnet are currently supported.

For both testnet and mainnet you can use latest tags, for see details.

Add as dependency

To integrate Liquidswap into your project, you first need to add a dependency to your Move.toml

[dependencies.Liquidswap]
git = 'https://github.com/pontem-network/liquidswap.git'
rev = 'latest version'

Import

[dependencies.LiquidswapRouterV2]
git = 'https://github.com/pontem-network/liquidswap.git'
subdir = 'liquidswap_router_v2/'
rev = 'latest version'

Add the LP coin module as a dependency too:

[dependencies.LiquidswapLP]
git = 'https://github.com/pontem-network/liquidswap.git'
subdir = 'liquidswap_lp/'
rev = 'latest version'

Replace 'latest version' with the actual ones from the repositories.

Next, try compile; you shouldn't get any errors.

Liquidswap's contracts always point to the latest AptosFramework devnet revision. If you encounter issues after adding our dependencies, remove dependencies.AptosFramework completely from your project.

Liquidswap
Releases
devnet
Router v2: