* Add SwapCurve trait and integrate in processor * Add PoolTokenConverter trait to correspond * Add curve type parameter to initialization and JS * Refactor for flat curve test, fmt * Update token-swap/program/src/curve.rs Co-authored-by: Tyera Eulberg <teulberg@gmail.com> * Refactor swap curve to allow for any implementation * Rename SwapCurveWrapper -> SwapCurve * Run cargo fmt * Update CurveType to enum in JS Co-authored-by: Tyera Eulberg <teulberg@gmail.com> |
||
---|---|---|
.. | ||
main.js | ||
token-swap-test.js |