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

[WIP] Add b-sdk for trade queries #333

Merged
merged 91 commits into from
Dec 8, 2023
Merged

[WIP] Add b-sdk for trade queries #333

merged 91 commits into from
Dec 8, 2023

Conversation

johngrantuk
Copy link
Contributor

@johngrantuk johngrantuk commented May 8, 2023

Initial work to complete Phase1 in this Notion

  • Add new endpoints to query swap result (best of SORV1 vs V2):
    • sorGetSwaps - Beets (return formatted for existing Beets service)
    • sorGetCowSwaps - Balancer (return formatted for existing Balancer/CowSwap API)
  • Add @balancer/sdk dependency for sorV2. (Needs updates for Fantom see below)
  • Add Gyro pool fields required for swap maths (Note: Gyro pools must be deleted/refreshed to get new values from SG)

TODO:

@johngrantuk johngrantuk requested review from franzns and danielmkm May 8, 2023 14:58
modules/sor/sor.prisma Outdated Show resolved Hide resolved
modules/sor/sorV1/sorV1.service.ts Outdated Show resolved Hide resolved
modules/sor/sor.gql Outdated Show resolved Hide resolved
@gmbronco
Copy link
Contributor

Both queries, sorGetSwaps and sorGetCowSwaps, will retrieve the optimal path from either V1 or V2.

Would you have any particular test cases in mind for testing these queries?

@franzns franzns merged commit be0630c into v3-canary Dec 8, 2023
1 check passed
@franzns franzns deleted the sor-v2 branch December 8, 2023 11:35
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