Skip to content

Commit

Permalink
Update x/gamm/pool-models/balancer/amm.go
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez authored Apr 16, 2022
1 parent 795d50c commit 798c33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/gamm/pool-models/balancer/amm.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (p *Pool) ExitPool(ctx sdk.Context, exitingShares sdk.Int, exitFee sdk.Dec)
}

// exitPool exits the pool given exitingCoins and exitingShares.
// updates the pool's liquidity and totalShares
// updates the pool's liquidity and totalShares.
func (p *Pool) exitPool(ctx sdk.Context, exitingCoins sdk.Coins, exitingShares sdk.Int) error {
balances := p.GetTotalPoolLiquidity(ctx).Sub(exitingCoins)
if err := p.UpdatePoolAssetBalances(balances); err != nil {
Expand Down

0 comments on commit 798c33d

Please sign in to comment.