Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/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.
https://github.com/ileskov/liquid-dex
clarinet clarity defi dex liquidity-pool smart-contracts stacks stx swap
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ileskov/liquid-dex
- Owner: ILESKOV
- License: mit
- Created: 2024-01-24T11:49:11.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-25T17:35:23.000Z (11 months ago)
- Last Synced: 2024-01-25T18:52:27.073Z (11 months ago)
- Topics: clarinet, clarity, defi, dex, liquidity-pool, smart-contracts, stacks, stx, swap
- Language: TypeScript
- Homepage: https://stacks-dex.vercel.app
- Size: 303 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 'LIQUID' Decentralized Exchange
> 'LIQUID' Exchange with 'LIQUID' 'LIQ' SIP010 standard token
> [LIQUID-DEX](https://stacks-dex.vercel.app/) vercel app
## π Table of Contents
- [General Info](#-general-information)
- [Features](#-features)
- [Screenshots](#-screenshots)
- [Setup](#-setup)
- [Contact](#-contact)## π© 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](./helpers/Screenshot.png)
## π 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 = ""```
### 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 =```
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](https://www.linkedin.com/in/ivan-leskov-4b5664189/) - feel free to contact me!