Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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!