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
CalcExitPoolShares calculates the expected tokens output by a pool given some number of shares. With the current name, it's not clear whether or not the function calculates the number of shares from output tokens or output tokens from the number of shares, so I think it might be worth considering renaming it to something like CalcExitCoinsFromShares (or something else that better specifies what the function does).
AlpinYukseloglu
changed the title
Consider renaming CalcExitPoolShares to CalcExitCoinsFromShares
x/gamm: Consider renaming CalcExitPoolShares to CalcExitCoinsFromShares
Jun 30, 2022
Background
CalcExitPoolShares
calculates the expected tokens output by a pool given some number of shares. With the current name, it's not clear whether or not the function calculates the number of shares from output tokens or output tokens from the number of shares, so I think it might be worth considering renaming it to something likeCalcExitCoinsFromShares
(or something else that better specifies what the function does).osmosis/x/gamm/pool-models/balancer/amm.go
Line 501 in 85529c7
Suggested Design
CalcExitPoolShares
->CalcExitCoinsFromShares
Acceptance Criteria
The text was updated successfully, but these errors were encountered: