Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```