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

[MEX-662]: Filter by pair address in ES query #1554

Merged

Conversation

claudiulataretu
Copy link
Collaborator

Reasoning

  • current implementation can suffer from infinite loop inside the compute token trading activity if the token only on other exchanges with the same event identifier

Proposed Changes

  • added filtering by a set of pairs addresses for the ES query that retrieves the swap events for a token

How to test

query {
    tradingActivity(
        series: "MUNCHKIN-3865e6"
    ) {
        timestamp
        hash
        action
        inputToken {
            tokenIdentifier
            amount
        }
        outputToken {
            tokenIdentifier
            amount
        }
    }
}
  • query should return an empty array

@claudiulataretu claudiulataretu merged commit 8490787 into development Jan 31, 2025
1 check failed
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.

3 participants