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

fix(cardano-services): stake-pool APY sorted search no longer returns error when APY is disabled #654

Merged
merged 1 commit into from Mar 17, 2023

Conversation

AngelCastilloB
Copy link
Member

Context

stake-pool/search endpoint was returning {"reason":"BAD_REQUEST","detail":"APY metric is disabled"} when the query was sorting using APY and the APY calculation was disabled on the backend.

Proposed Solution

Instead of throwing an error, the backend will set the default sorting under such condition.

@rhyslbw rhyslbw self-requested a review March 17, 2023 07:10
@rhyslbw rhyslbw merged commit f3963d7 into master Mar 17, 2023
@rhyslbw rhyslbw deleted the fix/stake-pool-APY-sorted-search-fix branch March 17, 2023 07:11
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.

None yet

3 participants