Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Bonfida/swap-ui
Minimal swap UI
https://github.com/Bonfida/swap-ui
react solana solana-program typescript vite
Last synced: about 1 month 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T17:39:04.000Z (9 months ago)
- Last Synced: 2024-08-01T08:14:54.971Z (4 months ago)
- Topics: react, solana, solana-program, typescript, vite
- Language: TypeScript
- Homepage: https://dex.bonfida.org/
- Size: 358 KB
- Stars: 34
- Watchers: 1
- Forks: 34
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - Bonfida/swap-ui - Minimal swap UI (TypeScript)
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
```