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 2 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T17:39:04.000Z (10 months ago)
- Last Synced: 2024-10-28T22:35:48.748Z (about 2 months ago)
- Topics: react, solana, solana-program, typescript, vite
- Language: TypeScript
- Homepage: https://dex.bonfida.org/
- Size: 358 KB
- Stars: 36
- Watchers: 1
- Forks: 34
- 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
```