[x/stableswap][osmomath] Increase precision of osmomath BigDec
to 36 prevent stableswap CFMM precision issues
#2591
Labels
C:x/gamm
Changes, features and bugs related to the gamm module.
Background
The current
BigDec
precision significantly limits the use of our current stableswap CFMM. There are a number of ways we can tackle this, but the cleanest path is likely to just increase ourBigDec
precision bounds. This would also have the added benefit of making our binary search CFMM solver viable, drastically reducing the amount of computation spent on invariant calculations.Suggested Design
BigDec
bit length to 1024 (to accommodate largek
values)BigDec
decimal precision to 36Acceptance Criteria
The text was updated successfully, but these errors were encountered: