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

Add price rate providers #459

Merged
merged 11 commits into from
Dec 21, 2023
Merged

Add price rate providers #459

merged 11 commits into from
Dec 21, 2023

Conversation

timjrobinson
Copy link
Contributor

@timjrobinson timjrobinson commented Sep 21, 2023

Add's priceRateProvider field to tokens that then returns a priceRateProviders property on each pool that is the same format as the subgraph - an array of {address, token: {address}}.

The priceRateProvider address is stored in each token rather than in the main pool, but is added to the main pool data when requesting so it looks the same as requesting from the subgraph.

@timjrobinson
Copy link
Contributor Author

I've added a mutation to sync price rate providers for existing tokens and it appears to work when testing locally. Can run with:

mutation init {
  poolSyncPriceRateProviders
}

@franzns
Copy link
Contributor

franzns commented Nov 6, 2023

I'm waiting for the subgraph to have priceRateProviders also for the gyro pools and yieldFeeExemption as well.

@franzns franzns linked an issue Dec 20, 2023 that may be closed by this pull request
@franzns franzns merged commit fa57c2b into v3-canary Dec 21, 2023
1 check passed
@franzns franzns deleted the add-price-rate-providers branch December 21, 2023 14:47
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.

add rateproviders and exemptFromYieldFee flag
2 participants