Comment on page
Integration
- The current version of Liquidswap is deployed on the address0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12
Before we start, create a new Move project so that you can repeat the steps as described here.
The Aptos mainnet and testnet, devnet are currently supported.
To integrate Liquidswap into your project, you first need to add a dependency to your
Move.toml
1
[dependencies.Liquidswap]
2
git = 'https://github.com/pontem-network/liquidswap.git'
3
rev = 'latest version'
[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.
Last modified 1yr ago