Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: osmomath.Power does not work for base values that are close to zero #4967

Closed
p0mvn opened this issue Apr 20, 2023 · 0 comments
Closed
Assignees

Comments

@p0mvn
Copy link
Member

p0mvn commented Apr 20, 2023

Background

osmomath.Power computes power by

$$exp2(exponent * log_2 base)$$

where exp2 is defined only non-negative values

log is negative near zero. As a result, Power breaks.

Suggested Design

TBD

Acceptance Criteria

  • add test cases for base close to zero
  • investigate a solution
@p0mvn p0mvn added the F: concentrated-liquidity Tracking the development of concentrated liquidity feature to improve filtering on the project board label Apr 20, 2023
@p0mvn p0mvn self-assigned this Apr 20, 2023
@github-project-automation github-project-automation bot moved this to Needs Triage 🔍 in Osmosis Chain Development Apr 20, 2023
@p0mvn p0mvn moved this from Needs Triage 🔍 to Todo 🕒 in Osmosis Chain Development Apr 21, 2023
@p0mvn p0mvn removed the F: concentrated-liquidity Tracking the development of concentrated liquidity feature to improve filtering on the project board label Apr 25, 2023
@ValarDragon ValarDragon closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2024
@github-project-automation github-project-automation bot moved this from Todo 🕒 to Done ✅ in Osmosis Chain Development Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants