* Add price parameter for flat / constant price curve This encompasses a lot of changes to properly support the constant price curve, and fixes some old pain points to make the whole thing easier to use, including: * refactor fees out of the curve * move all fee calculations into new Fees type * modify constraints to only care about curve types and fee * add price parameter into constant price curve (flat curve) * Run cargo fmt and clippy * Revert interface changes and math update * Run cargo fmt * Address review feedback * Fix fraction validation for zeros |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |