diff --git a/x/liquidity/keeper/pool.go b/x/liquidity/keeper/pool.go index 4a985efb2..df74a5393 100644 --- a/x/liquidity/keeper/pool.go +++ b/x/liquidity/keeper/pool.go @@ -685,6 +685,10 @@ func (k Keeper) TransferFundsForSwapFeeDistribution(ctx sdk.Context, appID, requ return sdk.Coin{}, types.ErrInvalidPoolID } + if requestedPool.Disabled { + return sdk.Coin{}, types.ErrDisabledPool + } + pair, found := k.GetPair(ctx, appID, requestedPool.PairId) if !found { return sdk.Coin{}, types.ErrInvalidPairID