Skip to content

Comments

fix clamp_page_limit to use .min instead of .max#223

Open
SamiAlHassan wants to merge 3 commits intoosmosis-labs:mainfrom
SamiAlHassan:main
Open

fix clamp_page_limit to use .min instead of .max#223
SamiAlHassan wants to merge 3 commits intoosmosis-labs:mainfrom
SamiAlHassan:main

Conversation

@SamiAlHassan
Copy link

Description

Limiting the page limit to a maximum permitted value is the purpose of the helper function clamp_page_limit but the function always returns the value MAX_PAGE_LIMIT when .max(MAX_PAGE_LIMIT) is used. With this PR .max is changed to .min so that the page limit is the smaller of MAX_PAGE_LIMIT and the default limit which is the purpose of the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant