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
This Issue is created during the Informal Systems audit, after analysis of the existing specification and code inspection for balancer code performed on commit hash: 42d73f1 and for stableswap code performed on: v13.0.0
Summary:
Currently there is no charging gas for swaps for computations made during SwapExactAmountIn and SwapExactAmountOut for stableswap pools. Gas is charged only for i/o ops.
Balancer pools do charge additional gas defined with constant BalancerGasFeeForSwap
There should be StableswapGasFeeForSwap defined, at least and added in updatePoolLiquidityForSwap, only when the function is called for swaps - since currently it is used for exit also.
It would also be good to parametrize gas fees - this could resolve possible issues during testing.
The text was updated successfully, but these errors were encountered:
Hey @ValarDragon, I may need some guidance, but I would be happy to work on this task. Feel to suggest something else in case you thing there is something more relevant.
This Issue is created during the Informal Systems audit, after analysis of the existing specification and code inspection for balancer code performed on commit hash: 42d73f1 and for stableswap code performed on: v13.0.0
Summary:
Currently there is no charging gas for swaps for computations made during SwapExactAmountIn and SwapExactAmountOut for stableswap pools. Gas is charged only for i/o ops.
Balancer pools do charge additional gas defined with constant BalancerGasFeeForSwap
osmosis/x/gamm/pool-models/balancer/pool.go
Lines 594 to 595 in 7374795
Suggestions:
The text was updated successfully, but these errors were encountered: