osmomath(log/CL): implement and test natural logarithm, custom base logarithm and 1.0001
logarithm
#3132
Labels
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
T:task ⚙️
A task belongs to a story
Background
With log base 2 implemented in #2788, we should add more bases for logarithms.
Suggested Design
Natural logarithm
ln x = \frac{log_{2}{x}}{log_{2}{1.0001}}
{log_{2}{e}
in WolframAlpha (add link to the estimate)Ln
that utilizesLogBase2
and hardcodede
value to solve the aboveBase 1.0001
This is what we need for concentrated liquidity
$$ln x = \frac{log_{2}{x}}{log_{2}{1.0001}}$$
{log_{1.0001}{x}
in WolframAlpha (add link to the estimate)LogBaseHundredthBasisPoint
that utilizesLogBase2
and hardcodedlog_{1.0001}{x}
value to solve the aboveCustom Base
Implement
LogCustomBase
that utilizes similar idea to aboveAcceptance Criteria
concentrated-liquidity-main
The text was updated successfully, but these errors were encountered: