-
Notifications
You must be signed in to change notification settings - Fork 0
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: build core pools with apiv3 as only source #73
Conversation
blocked by balancer/backend#1519 |
this is good to go, just need twap test fixed first |
@gosuto-inzasheru i added a temp check to the twap price tests that makes sure the timestamps are less than 100 days old or will be skipped. the fact that the stable pools are <0.01% price diff and the non stable ones are off by a consistent amount means that the twap price function is working fine and just an issue with stale test data. can implement a full solution in #75 lets get this merged in the meantime so that BalancerMaxis/protocol_fee_allocator#337 isnt being blocked. reviewing now... |
if ( | ||
pool_token["priceRateProviderData"].get("address") | ||
!= ZERO_ADDRESS | ||
): | ||
# pools with a non zero rate provider are core pools | ||
core_pools.append(pool) |
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.
shouldnt the check be for at least for half of tokens to have rate provider based on BIP-734?
Minimum 50% yield-bearing or boosted tokens for pool types such as weighted or composable stable pools
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.
yea that is true. in the previous direct subgraph implementation calcing this was practically impossible
i think the apiv3 would make it a lot easier now, but we are also not getting any false positives because of not having it (yet)
created a ticket for it so we can handle it later when it matter/there is more time: #76
here is what the core pool list looks like now based on this branch:
|
@jalbrekt85 yes that all looks good. i did a test run already and the output was reviewed by @Xeonus: BalancerMaxis/bal_addresses#588 all the (new) gnosis ones look good; they have the necessary tvl and have rate providers. im actually suspecting a bug in the old logic---not sure |
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.
very nice, LGTM
closes #72 and closes #39