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.
git clone https://github.com/Stellar-Grants/Stellar-Swap.git
cd Stellar-SwapEnsure Node.js is installed, then run:
npm installCopy the example env file and edit as needed:
cp server/.env.example server/.envExecute the script to perform the transactions:
node server/index.jsTo start the web interface, execute the following commands:
cd client
npm install
npm run dev- DeFi Provider Public Key:
GDTLOF5Q5EKPNMZWXOHSV6WHISWVDH535XUWFJGWIOQRXGWZJEGCE4LQ(This account is used to issue the custom asset and provide liquidity.)
- Asset Name: Nexus
- Issuer:
GDTLOF5Q5EKPNMZWXOHSV6WHISWVDH535XUWFJGWIOQRXGWZJEGCE4LQ
- Asset A: XLM (Native Asset)
- Asset B: Nexus
- Fee: 30
- Liquidity Pool ID:
6010928f53911ce58f9747ba186fdd92f44049f0a7b082058a7d15bb7740ea33
Made by Abhinav