solana-program-library/token-swap/js/client
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
..
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 offset curve and math (#935) 2020-12-10 18:31:21 +01:00