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
Liquidity variable in CL math is used as a BigDec right now but every call casts it from Dec to BigDec and does operations on that. We should do these operations on the Dec representation directly to save computational load. This will be state machine compatible as well.
This has been started for a single function in #8014
Problem Definition
No response
Proposed Feature
Convert Liquidity variable in the clMath package to a Dec across the board.
The main work here is updating tests and checking correctness with the python code. The values are identical except on the test cases that use BigDec's extra precision for liquidity (even though thats impossible to achieve in state machine). So you have to regenerate those vectors with the Dec-casted liquidity's value.
The text was updated successfully, but these errors were encountered:
Summary
Liquidity variable in CL math is used as a BigDec right now but every call casts it from Dec to BigDec and does operations on that. We should do these operations on the Dec representation directly to save computational load. This will be state machine compatible as well.
This has been started for a single function in #8014
Problem Definition
No response
Proposed Feature
Convert Liquidity variable in the clMath package to a Dec across the board.
The main work here is updating tests and checking correctness with the python code. The values are identical except on the test cases that use BigDec's extra precision for liquidity (even though thats impossible to achieve in state machine). So you have to regenerate those vectors with the Dec-casted liquidity's value.
The text was updated successfully, but these errors were encountered: