Like typical AMMs, you can join the pools and trade against them. The curve is the standard x*y=k curve.
Solana based AMMs are fast! Serum Swap takes about 1 second to settle a trade or pool addition/removal, and gas fees are tiny: roughly $0.00002 per trade.
Yes! Anyone can add yield to any pools.
But in addition: there will be 1,000,000 SRM tokens dropped as yield over the next month!
Start time: 2020-10-28 1am HKT
End time: 2020-11-25 1am HKT
Total airdrop: 1m SRM
Time: 20 random times, 50k SRM each time
Location: 5k SRM each to the following pools:
Method: SRM will be added directly to the contents of the AMM pool, effectively split between all LP token holders
Note: this is merely indicative and should there be any difficulties best efforts will be made to do what is reasonably in line with the intention.
Takers are charged 0.30%. Of that:
0.25% goes to the liquidity providers (LPs).
0.04% goes to a SRM buy/burn.
0.01% goes to the GUI hoster; you can set this in the GUI source code.
The 25bp fees are tokens left in the pool
The 4bp and 1bp fees are transfers of LP tokens
You will find the official repository of Serum Swap UI here: https://github.com/project-serum/oyster-swap. This provides you with everything you need to start your own Serum Swap GUI.
Once you have forked the repository, you can run a local environment by running:
Serum Swap allows you to collect fees for the orders made on your GUI. In order to collect the fees, you need to modify the
.env file that looks like this:
# HOST Public Key used for additional swap fees SWAP_HOST_FEE_ADDRESS='' # Rewired variables to comply with CRA restrictions REACT_APP_SWAP_HOST_FEE_ADDRESS=$SWAP_HOST_FEE_ADDRESS
To collect fees enter your address in the
package.json file contains a field called
homepage, change it to your name domain.
There are different solutions to host your GUI. You can host it for free on Github Pages or host it on your own server.
This is the easiest way of hosting and deploying a GUI, you simply have to use the following command to deploy your GUI
The GUI will then be hosted on the
gh-pages branch of your Github repository.
Alternatively, you can host your GUI on your own server and use Nginx for instance to serve it. To create the production build run
The build will be created in the
build folder of the working directory.
While it has been tested, it has not been audited. Use at your own risk.
Furthermore, the GUI you use might not always give clear reasons for error messages. When in doubt, check your max slippage.
Serum Swap has not been audited. Use at your own risk.
Serum Swap has a 2mm SRM insurance fund
Of course! That’s the whole point of DeFi: use this as a building block, compose with it, alter it, host it.
Yes! This AMM if fully on-chain and noncustodial.