enforce positive invariant and max EPSILON
for trading functions
#15
Labels
📃 contracts
Anything related to the DFMM contracts (or strategies)
🧹 improvement
Code improvements or cleanup
Milestone
Idea
When we have our bisection yield us a value now that is validated
-EPSILON < invariant < EPSILON
we need to instead take:0<= invariant < epsilon
(which means adjusting how we do bisection a bit)epsilon< MAX
whereMAX
is chosen such that the trading curve maintains convexity.The text was updated successfully, but these errors were encountered: