Skip to content
 
 

Latest commit

 

History

108 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stellar Nexus Swap

This project demonstrates the creation of a custom asset (Nexus) on the Stellar testnet, setting up a liquidity pool, performing a swap, and withdrawing funds from the pool.


🛠️ Setup Instructions

1. Clone the repository

git clone https://github.com/Stellar-Grants/Stellar-Swap.git
cd Stellar-Swap

2. Install Server Dependencies

Ensure Node.js is installed, then run:

npm install

3. Configure Environment Variables

Copy the example env file and edit as needed:

cp server/.env.example server/.env

4. Run Backend Scripts

Execute the script to perform the transactions:

node server/index.js

5. Run Frontend

To start the web interface, execute the following commands:

cd client
npm install
npm run dev

⚙️ Implementation Details

  • DeFi Provider Public Key: GDTLOF5Q5EKPNMZWXOHSV6WHISWVDH535XUWFJGWIOQRXGWZJEGCE4LQ (This account is used to issue the custom asset and provide liquidity.)

Custom Asset

  • Asset Name: Nexus
  • Issuer: GDTLOF5Q5EKPNMZWXOHSV6WHISWVDH535XUWFJGWIOQRXGWZJEGCE4LQ

Liquidity Pool Asset

  • Asset A: XLM (Native Asset)
  • Asset B: Nexus
  • Fee: 30
  • Liquidity Pool ID: 6010928f53911ce58f9747ba186fdd92f44049f0a7b082058a7d15bb7740ea33

📊 Transaction Details

A. Liquidity Pool Creation

B. Swap Execution

C. Withdrawal

Stellar Swap Screenshot

👨‍💻 Author

Made by Abhinav

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages