solana-program-library/token-swap
Jon Cinque 087ae2e242
token-swap: Add offset curve and math (#935)
* Add offset curve

* Fix for math

* Add PreciseNumber

* Use Balancer formulation for trading token -> pool token conversion

* Add round-trip conversion testing

* Add offset curve to JS

* Run cargo fmt

* Update JS test numbers for new calcs

* Integrate review feedback

* Allow for withdrawals when one side is 0

* Run cargo fmt

* Disallow deposits for offset curve

* Run cargo fmt

* Allow for withdrawals through 0
2020-12-10 18:31:21 +01:00
..
js token-swap: Add offset curve and math (#935) 2020-12-10 18:31:21 +01:00
program token-swap: Add offset curve and math (#935) 2020-12-10 18:31:21 +01:00
.gitignore token-swap stable curve: 256-bit math added with tests (#886) 2020-11-25 21:19:25 +01:00
README.md Fix broken stake-pool docs link and make readme's consistent (#805) 2020-11-06 09:15:27 +08: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/token-swap

JavaScript binding are available in the ./js directory.