You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stable swap pool needs its ScalingFactor set in order to do basic operation like CalcInAmtGivenOut.
Right now, NewStableswapPool doesn't include ScalingFactor in its params so any pools crated from NewStableswapPool will not be usable.
MsgCreateStableswapPool also doesn't include ScalingFactor and doesn't set ScalingFactor to any default value, this means the pool created will also not be usable until a MsgStableSwapAdjustScalingFactors, is this intended ?
Suggested Design
Include ScalingFactor in NewStableswapPool
Include ScalingFactor in MsgCreateStableswapPool
The text was updated successfully, but these errors were encountered:
AlpinYukseloglu
changed the title
Add scaling factor to stableswap pool creation
[x/gamm][stableswap]: Add scaling factor to stableswap pool creation
Sep 26, 2022
Background
Stable swap pool needs its
ScalingFactor
set in order to do basic operation likeCalcInAmtGivenOut
.Right now,
NewStableswapPool
doesn't includeScalingFactor
in its params so any pools crated fromNewStableswapPool
will not be usable.MsgCreateStableswapPool
also doesn't includeScalingFactor
and doesn't setScalingFactor
to any default value, this means the pool created will also not be usable until aMsgStableSwapAdjustScalingFactors
, is this intended ?Suggested Design
Include
ScalingFactor
inNewStableswapPool
Include
ScalingFactor
inMsgCreateStableswapPool
The text was updated successfully, but these errors were encountered: