[x/gamm][stableswap][bug]: Spot prices are not descaled #3353
Labels
C:stableswap
C:x/gamm
Changes, features and bugs related to the gamm module.
T:bug 🐛
Something isn't working
Background
We calculate spot prices on scaled pool amounts but do not descale the output. Also, if we assume people will use large scaling factors, our 1 token swap approximation might not be precise enough.
Suggested Design
a
by input denom's scaling factor and descale output by its scaling factorAcceptance Criteria
a
works is added to the specThe text was updated successfully, but these errors were encountered: