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(hub): invalid pending query parameter #266

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

kallydev
Copy link
Member

@kallydev kallydev commented Jun 18, 2024

Related #265. Fixed an incorrect SQL statement condition.

Only unstake and withdraw transactions can have a pending status. However, since the staking contract currently does not support unstake and withdraw functionalities, there will be no pending transactions.

Statement template

SELECt *
FROM "stake"."transactions"
WHERE "type" IN ('unstake', 'withdraw') AND NOT EXISTS(
    SELECT TRUE
    FROM "stake"."events"
    WHERE "transactions"."id" = "events"."id" AND "events"."type" = 'claimed'
);
type count
stake 1186
deposit 105

@kallydev kallydev added the bug Something isn't working label Jun 18, 2024
@kallydev kallydev requested a review from polebug June 18, 2024 12:04
@kallydev kallydev self-assigned this Jun 18, 2024
@kallydev kallydev merged commit de1f56d into main Jun 19, 2024
5 checks passed
@kallydev kallydev deleted the fix/invalid-pending-query-parameter branch June 19, 2024 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants