Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a7d2d1

Browse files
authored
Merge pull request tendermint#414 from b-harvest/hallazzang/use-isdepleted
use IsDepletedPool()
2 parents 7f22c67 + f6eac18 commit 6a7d2d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/liquidity/keeper/liquidity_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ func (k Keeper) ValidateMsgWithdrawLiquidityPool(ctx sdk.Context, msg types.MsgW
784784
}
785785

786786
poolCoinTotalSupply := k.GetPoolCoinTotalSupply(ctx, pool)
787-
if !poolCoinTotalSupply.IsPositive() {
787+
if k.IsDepletedPool(ctx, pool) {
788788
return types.ErrDepletedPool
789789
}
790790

0 commit comments

Comments
 (0)