solana-program-library/token-swap/program
Jon Cinque 13de66817d
token-swap: Improve pool token supply on initialization, deposit, and withdrawal (#508)
* token-swap: Add token supply in invariant calculation

* Refactor state classes into curve components for future use
* Align pool initialization with Uniswap using geometric mean of token
  amounts
* Fix deposit and withdraw instruction to work as a proportion of pool
  tokens
* Add math utilities to calculate the geometric mean with u64

* Improve variable names

* Use a fixed starting pool size

* Run cargo fmt

* Update js tests with new pool numbers

* Run linting

* Remove math

* Fix BN type issues found by flow
2020-09-23 23:08:44 +02:00
..
inc Reorganize crates based on program 2020-08-08 15:25:47 -07:00
src token-swap: Improve pool token supply on initialization, deposit, and withdrawal (#508) 2020-09-23 23:08:44 +02:00
Cargo.toml Bump solana-sdk to v1.3.12 (#484) 2020-09-21 08:38:29 -07: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
package-lock.json Reorganize crates based on program 2020-08-08 15:25:47 -07:00