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

Feat: Fetch Pools from new API #4068

Closed
wants to merge 23 commits into from
Closed

Conversation

timjrobinson
Copy link
Contributor

@timjrobinson timjrobinson commented Aug 24, 2023

Description

Switches all pool querying from the Old API / Subgraph to the new API. This makes the app dependent on the API as all fallbacks are removed.

Still todo:

Type of change

  • New feature (non-breaking change which adds functionality)

How should this be tested?

  • Compare this branch to production, all pools lists and individual pool pages should look roughly the same. Some dollar values may be different due to the pricing being calculated at slightly different times.

Checklist:

  • I have performed a self-review of my own code
  • I have requested at least 1 review (If the PR is significant enough, use best judgement here)
  • I have commented my code where relevant, particularly in hard-to-understand areas
  • If package-lock.json has changes, it was intentional.
  • The base of this PR is master if hotfix, develop if not

@vercel
Copy link

vercel bot commented Aug 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
beta-app-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2023 7:08am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
app-v2 ⬜️ Ignored (Inspect) Visit Preview Sep 27, 2023 7:08am

@timjrobinson
Copy link
Contributor Author

I've switched this to point to the canary API (test-v3-api) as it has all the latest APR updates, so we can compare APR's on this branch to prod APR's

@franzns
Copy link
Contributor

franzns commented Sep 6, 2023

Known issues so far: BAL rewards on mainnet are too high

Some sub-pools like Phantom Stable don't have a mainIndex. In the
subgraph this is set to null (even though it's not allowed). In our code
for flattening token trees we check if a pool is a subPool by if
mainIndex is defined or not, and so if this is left undefined it crashes
as it thinks a subpool is a high level pool.
@franzns
Copy link
Contributor

franzns commented Sep 20, 2023

Copy link
Collaborator

@garethfuller garethfuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From some quick testing, I see the rate provider issue that Franz pointed out. Also, the portfolio page doesn't load the unstaked pools list. Actually it did but for some reason it took a long time initially.

@garethfuller
Copy link
Collaborator

@timjrobinson Actually, the portfolio page is really buggy.
Screenshot 2023-09-21 at 09 41 13

@garethfuller
Copy link
Collaborator

@timjrobinson There are also issues with withdrawals. e.g. this pool on polygon 0xcd78a20c597e367a4e478a2411ceb790604d7c8f000000000000000000000c22 is trying to get me to do a recovery exit but it's not in recover mode. I can't exit in a single token.

@franzns
Copy link
Contributor

franzns commented Oct 3, 2023

@garethfuller avalanche does not show all pools on the beta app, I think the pool filter is wrong you pass to the api ["WEIGHTED", "STABLE", "META_STABLE", "STABLE", "STABLE", "GYRO3", "GYRO3", "GYROE"] you are missing some.

@franzns
Copy link
Contributor

franzns commented Oct 30, 2023

https://beta-app-v2-git-feat-pools-from-beets-api-balancer.vercel.app/#/gnosis-chain/pool/0x7644fa5d0ea14fcf3e813fdf93ca9544f8567655000000000000000000000066 this pool doesnt show sDAI APR altough it's returned by the API. Also the icon for sDAI is missing, Maybe related?

@garethfuller garethfuller marked this pull request as draft October 30, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants