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-507] user positions extra information #1444

Merged

Conversation

claudiulataretu
Copy link
Collaborator

Reasoning

  • ease the association for multiple user positions to specific pair

Proposed Changes

  • added pair address field for user lp tokens and user nfts positions that can be associated with a pair address
  • updated filtering on filtered queries to use arrays of addresses

How to test

query UserNfts {
    userNfts {
        userLockedTokenEnergy {
            collection
            name
            identifier
        }
        userFarmToken {
            collection
            valueUSD
            pairAddress
        }
        userDualYieldToken {
            collection
            valueUSD
            pairAddress
        }
        userLockedSimpleFarmToken{
            collection
            pairAddress
        }
        userStakeFarmToken {
            collection
            valueUSD
            creator
        }
        userUnbondFarmToken {
            collection
            creator
        }
    }
}
  • query should return an pair address associated with the user position

@claudiulataretu claudiulataretu merged commit 1d45832 into feat/xexchange-v3 Aug 19, 2024
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.

4 participants