ILESKOV / LIQUID-DEX

LIQUID Decentralized Exchange: A pioneering platform for seamless STX/LIQ trading, featuring the LIQUID (LIQ) SIP010 token. Connect, trade, and manage liquidity with advanced wallet integration and robust trading functionalities.

Home Page:https://stacks-dex.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'LIQUID' Decentralized Exchange

'LIQUID' Exchange with 'LIQUID' 'LIQ' SIP010 standard token

LIQUID-DEX vercel app

πŸ“ Table of Contents

🚩 General Information

  • The 'LIQUID' is an exchange for trading STX/LIQ
  • Connect with your wallet, mint, provide liquidity and trade
  • User can provide liquidity, swap , earn revenue from trading and remove liquidity

🌟 Features

List the ready features here:

  • Owner can mint 'LIQ' from admin panel
  • Owner can set minter from admin panel
  • User can connect to exchange via 'Leather' or 'Xverse' wallet
  • User can provide initial liqiudity
  • User can provide additional liqiudity (in that case constant formula will be applied)
  • User can remove liquidity
  • User can set slippage and swap STX/LIQ and LIQ/STX using AMM

🎦 Screenshots

Example screenshot

πŸ‘€ Setup

πŸ“¦ Clone/Download the Repository

πŸ“Ÿ Smart Contract Deployment Setup

2. πŸ—ΊοΈ Nawigate to stacks-DEX:

$ cd stacks-DEX

3. πŸ’Ύ Install clarinet:

You can find installation instructions for Clarinet in their Github readme: https://github.com/hirosystems/clarinet#installation

4. πŸ“‘ Import mnemonic:

We can deploy to Devnet, Testnet or Mainnet. The network chosen for deployment dictates the mnemonic to be used.

For Devnet deployments, the mnemonic is already included in the configurations, so there's no need for additional imports

For deployments to Testnet or Mainnet navigate to 'settings/Testnet.toml' or 'settings/Mainnet.toml' respectively. Update the file with the appropriate mnemonic as shown below:

[accounts.deployer]
mnemonic = "<YOUR PRIVATE TESTNET MNEMONIC HERE>"

5. πŸ“ˆ Prepare deployment plan:

It is not related to devnet.

For deployments to Testnet or Mainnet we should create deployment plan. We can do that with clarinet respectively.

$ clarinet deployments generate --testnet --low-cost

or

$ clarinet deployments generate --mainnet --low-cost

6. πŸ”₯ deploy:

For devnet you should have docker and run: It will deploy devnet with your contracts.

$ clarity devnet start

For deployments to Testnet or Mainnet run this respectively.

$ clarinet deployments apply -p deployments/default.testnet-plan.yaml

or

$ clarinet deployments apply -p deployments/default.mainnet-plan.yaml

7. ⬆️ Update frontend with deployer address:

Change contract owner address in 'frontend/lib/constants.ts

export const contractOwnerAddress = <Put your deployer wallet address here>

Example:

export const contractOwnerAddress = 'ST1DAGPRT8MG9VYNV3QQSVYQBRCRHV2Z1KSVC9T2H'

πŸ’» Frontend Setup

1. πŸ—ΊοΈ Nawigate to frontend:

$ cd frontend

2. πŸ’Ύ Install Dependencies:

$ npm install

3. πŸ”₯ Run NextJs app:

$ npm run dev

πŸ’¬ Contact

Created by @LESKOV - feel free to contact me!

About

LIQUID Decentralized Exchange: A pioneering platform for seamless STX/LIQ trading, featuring the LIQUID (LIQ) SIP010 token. Connect, trade, and manage liquidity with advanced wallet integration and robust trading functionalities.

https://stacks-dex.vercel.app

License:MIT License


Languages

Language:TypeScript 75.3%Language:Clarity 20.3%Language:JavaScript 3.8%Language:CSS 0.6%