solana-program-library/token-swap
Jon Cinque b0867c7e28
token-swap: Add fee account to receive withdraw / trading fees, trading token mints (#695)
* Add mints to swap info

* Add mints to JS

* Add fee account in SwapInfo / init

* Add test for 0 fee, init test fully

* Add withdraw command interface

* Add fee accounts to swap instruction

* Add calculations for swap and withdraw fees

* Run cargo fmt

* Add new fees to JS and test

* Review feedback: fixup instruction doc and clone

* Update order of accounts in instructions

* Run cargo fmt

* Fix owner fee pool token calculation to include trading fee

* Add owner fees to flat curve, per request

* Fix instruction comment numbering

* Add more errors types for clearer calculation errors

Add a check for withdrawing from fee account

* Cargo fmt
2020-10-23 18:31:58 +02:00
..
js token-swap: Add fee account to receive withdraw / trading fees, trading token mints (#695) 2020-10-23 18:31:58 +02:00
program token-swap: Add fee account to receive withdraw / trading fees, trading token mints (#695) 2020-10-23 18:31:58 +02:00
.gitignore Token-swap ts, flow bindings and build using rollup. (#463) 2020-09-18 09:31:16 +02:00
README.md Javascript -> JavaScript (#409) 2020-09-09 17:57:30 -06:00

README.md

Token-swap program

A Uniswap-like exchange for the Token program on the Solana blockchain.

Full documentation is available at https://spl.solana.com

JavaScript binding are available in the ./js directory.