solana-program-library/token-swap/js/client
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
..
util Pass TokenSwap state into the constructor to simplify function calls (#586) 2020-10-14 12:37:58 +02:00
layout.js Fix lint check in CI (#519) 2020-09-23 18:20:37 +02:00
token-swap.js token-swap: Add fee account to receive withdraw / trading fees, trading token mints (#695) 2020-10-23 18:31:58 +02:00