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
(note: I think scaling factor term is a bit misleading due to the term scaling implies multiplication but is used for division, so I think normalization factor fits the intent better)
The said factor can be set per denom, so X and Y has normalization_factor of 1 and 10^6 respectively, then we can normalize them via raw_coin_units / normalization_factor.
In case where we want transmuter to support asset configuration that is not only 1:1, for example:
we want to create X:Y transmuter pool. so looking at this.
Meaning 1 uX should be traded for 10^6 uY.
We introduce normalization factor, similar to how stableswap handles the same case but called it scaling factor.
(note: I think scaling factor term is a bit misleading due to the term scaling implies multiplication but is used for division, so I think normalization factor fits the intent better)
The said factor can be set per denom, so X and Y has
normalization_factor
of 1 and 10^6 respectively, then we can normalize them viaraw_coin_units / normalization_factor
.The factor is calculated by:
Now that to trade 1 X for 1 Y we normalized them by
normalization_factor
Thus normalized asset is now 1:1.
We can store only normalization factor, since with that, it also allows different transmuting ratio.
The text was updated successfully, but these errors were encountered: