You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dex_utils::xyk::solve computes the individual pool invariants of the x*y=k curve, it sometimes returns negative solutions which are nonsensical in this context. Instead, of failing when we encounter negative solutions, we should bake in the solver that we expect positive solutions, fail early if we detect a system to be non-convergent, or proceed otherwise.
The text was updated successfully, but these errors were encountered:
This can be sidestepped entirely during solving, which we will have to do as part of doing bounded liquidity for #4112. We're going to try using NNLS and see how far we can get.
dex_utils::xyk::solve
computes the individual pool invariants of thex*y=k
curve, it sometimes returns negative solutions which are nonsensical in this context. Instead, of failing when we encounter negative solutions, we should bake in the solver that we expect positive solutions, fail early if we detect a system to be non-convergent, or proceed otherwise.The text was updated successfully, but these errors were encountered: