https://github.com/bonfida/swap-ui
Minimal swap UI
https://github.com/bonfida/swap-ui
react solana solana-program typescript vite
Last synced: 11 months ago
JSON representation
Minimal swap UI
- Host: GitHub
- URL: https://github.com/bonfida/swap-ui
- Owner: Bonfida
- License: mit
- Created: 2022-04-08T13:06:37.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T17:39:04.000Z (almost 2 years ago)
- Last Synced: 2025-03-21T05:32:51.582Z (11 months ago)
- Topics: react, solana, solana-program, typescript, vite
- Language: TypeScript
- Homepage: https://dex.bonfida.org/
- Size: 358 KB
- Stars: 37
- Watchers: 1
- Forks: 36
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Swap UI
```
git clone https://github.com/Bonfida/swap-ui.git
cd swap-ui
yarn
yarn dev
```
This swap UI is using [Jupiter](https://docs.jup.ag/how-does-jupiter-work) under the hood

Environment variables
[Environment variables](https://vitejs.dev/guide/env-and-mode.html) should be defined in `.env.local` and `.env.production`.
```
VITE_RPC= Your RPC URL
VITE_FEES= The address used to collect fees
VITE_FEES_BPS= The fees you want to charge on transaction
VITE_GEN_GO_TOKEN= The URL to fetch the auth token (might not be applicable)
GENERATE_SOURCEMAP=false
JUP_SWAP_API=https://quote-api.jup.ag/v6
```