-
Notifications
You must be signed in to change notification settings - Fork 302
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
37ca90a
to
707bf9c
Compare
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 |
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.
I'll start to drop any UI findings here: |
There was a problem hiding this 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.
@timjrobinson Actually, the portfolio page is really buggy. |
@timjrobinson There are also issues with withdrawals. e.g. this pool on polygon |
@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. |
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? |
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
How should this be tested?
Checklist:
master
if hotfix,develop
if not