Go to file
Sayantan Karmakar 46048aab7b
Merge pull request #157 from steveluscher/use-solana-wallet-adapter
Use `@solana/wallet-adapter-react` for compatibility with Mobile Wallet Adapter and the Wallet Standard
2022-10-31 09:24:37 -04:00
public Add charts (#98) 2021-07-06 10:33:36 -07:00
src Replace custom wallet adapter with `@solana/wallet-adapter-react` 2022-10-21 15:42:20 -07:00
.env.example allow ref link (#97) 2021-07-03 12:17:58 -07:00
.gitignore Add charts (#98) 2021-07-06 10:33:36 -07:00
.travis.yml Set up travis 2020-11-01 09:17:21 -08:00
LICENSE Initial commit 2020-08-28 07:29:28 +08:00
README.md Update link to "A technical introduction to the Serum DEX" (#108) 2021-07-22 10:13:45 -07:00
craco.config.js Update build system 2022-10-21 15:42:19 -07:00
package.json Replace custom wallet adapter with `@solana/wallet-adapter-react` 2022-10-21 15:42:20 -07:00
tsconfig.json Replace custom wallet adapter with `@solana/wallet-adapter-react` 2022-10-21 15:42:20 -07:00
yarn.lock Replace custom wallet adapter with `@solana/wallet-adapter-react` 2022-10-21 15:42:20 -07:00

README.md

Serum DEX UI

An implementation of a UI for the Serum DEX.

Running the UI

Run yarn to install dependencies, then run yarn start to start a development server or yarn build to create a production build that can be served by a static file server. Note that prior to compiling you need to add charts yourself (see below).

Collect referral fees

If you are hosting a public UI using this codebase, you can collect referral fees when your users trade through your site.

To do so, set the REACT_APP_USDT_REFERRAL_FEES_ADDRESS and REACT_APP_USDC_REFERRAL_FEES_ADDRESS environment variables to the addresses of your USDT and USDC SPL token accounts.

You may want to put these in local environment files (e.g. .env.development.local, .env.production.local). See the documentation on environment variables for more information.

NOTE: remember to re-build your app before deploying for your referral addresses to be reflected.

Add Trading View charts

It is now required to add OHLCV candles built from on chain data using Bonfida's API. Here is how to do it:

  1. Get access to the TradingView Charting Library repository. This is a private repository and it will return a 404 if you don't have access to it. To get access to the repository please refer to TradingView's website

  2. Once you have access to the Charting Library repository:


See the Create React App documentation for other commands and options.


See A technical introduction to the Serum DEX to learn more about the Serum DEX.

See serum-js for DEX client-side code. Serum DEX UI uses this library.

See sol-wallet-adapter for an explanation of how the Serum DEX UI interacts with wallet services to sign and send requests to the Serum DEX.

See spl-token-wallet for an implementation of such a wallet, live at sollet.io.