solana-program-library/token-swap/program
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
..
fuzz token-swap: Refactor for new curves (#930) 2020-12-08 18:22:32 +01:00
inc Reorganize crates based on program 2020-08-08 15:25:47 -07:00
sim token-swap stable curve: 256-bit math added with tests (#886) 2020-11-25 21:19:25 +01:00
src token-swap: Add offset curve and math (#935) 2020-12-10 18:31:21 +01:00
Cargo.toml Upgrade to Solana v1.4.14 2020-12-03 05:39:55 +00:00
Xargo.toml Reorganize crates based on program 2020-08-08 15:25:47 -07:00
cbindgen.toml Reorganize crates based on program 2020-08-08 15:25:47 -07:00