Go to file
Nathaniel Parke 9895186f18 Fix 2020-10-25 14:40:43 +08:00
public Deploy to github pages 2020-08-29 19:54:38 -07:00
src Fix 2020-10-25 14:40:43 +08:00
.env Support supplying keys for referral rebates on upcoming markets 2020-09-22 14:49:29 +08:00
.gitignore Initial commit 2020-08-28 07:29:28 +08:00
LICENSE Initial commit 2020-08-28 07:29:28 +08:00
README.md doc, nit: fix cra link (#23) 2020-09-24 10:21:21 +08:00
craco.config.js Initial commit 2020-08-28 07:29:28 +08:00
package.json Merge branch 'master' into add-swap 2020-10-24 15:32:15 +08:00
tsconfig.json Start moving it over 2020-10-22 12:06:35 +08:00
yarn.lock Merge branch 'master' into add-swap 2020-10-24 15:32:15 +08: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.

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.


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.