Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moves ValidatePermissionlessPoolCreationEnabled out of poolmanager module #6421

Merged
merged 13 commits into from
Sep 24, 2023
Prev Previous commit
Next Next commit
lint
  • Loading branch information
sunnya97 committed Sep 17, 2023
commit 3d35de563fcf0b9b56348280044fe5881f3fd868
5 changes: 1 addition & 4 deletions x/concentrated-liquidity/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@ func (k *Keeper) SetListeners(listeners types.ConcentratedLiquidityListeners) *K
// ValidatePermissionlessPoolCreationEnabled returns nil if permissionless pool creation in the module is enabled.
// Otherwise, returns an error.
func (k Keeper) ValidatePermissionlessPoolCreationEnabled(ctx sdk.Context) bool {
if !k.GetParams(ctx).IsPermissionlessPoolCreationEnabled {
return false
}
return true
return !k.GetParams(ctx).IsPermissionlessPoolCreationEnabled
}

// GetAuthorizedQuoteDenoms gets the authorized quote denoms from the poolmanager keeper.
Expand Down