[x/gamm][stableswap][bug]: Enforce minimum post-scaled asset amounts #3255
Closed
Labels
C:stableswap
C:x/gamm
Changes, features and bugs related to the gamm module.
T:bug 🐛
Something isn't working
Background
Since our k values are cubic in the input amounts, scaling factors that take input reserves below 1 expose an attack vector where our solver can be forced to panic (push reserves to be small enough such that k is always zero causing a div by zero when calculating k ratios)
Suggested Design
Acceptance Criteria
The text was updated successfully, but these errors were encountered: