Skip to content

Use DB to get pool addresses for fee claims - #13287

Merged
rickyrombo merged 2 commits into
mainfrom
mjp-fee-fee
Oct 23, 2025
Merged

Use DB to get pool addresses for fee claims#13287
rickyrombo merged 2 commits into
mainfrom
mjp-fee-fee

Conversation

@rickyrombo

Copy link
Copy Markdown
Contributor

Instead of querying for all pools, use the DB to grab the pool state for both DAMM v2 and DBC pools.

Tested by running solana-relay locally and using stage config w/ prod wAUDIO mint (follow-up pr incoming to use prod wAUDIO on stage)

@changeset-bot

changeset-bot Bot commented Oct 21, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 1e87def

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines +78 to +79
const poolState = await cpAmm.fetchPoolState(new PublicKey(poolAddress))
if (!poolState) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🙏

@DejayJD DejayJD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - so much nicer with the DB changes

@rickyrombo
rickyrombo merged commit 292123d into main Oct 23, 2025
4 of 6 checks passed
@rickyrombo
rickyrombo deleted the mjp-fee-fee branch October 23, 2025 18:32
audius-infra pushed a commit that referenced this pull request Oct 24, 2025
[292123d] Use DB to get pool addresses for fee claims (#13287) Marcus Pasell
[ccde6ec] [PE-7221] Fix remove linked wallet (#13300) Dylan Jeffers
[b9b22cd] [PE-7204] Associate wallets on solana /relay calls (#13299) JD Francis
[86198ae] [PE-7202] Add indexing support for `user.coin_flair_mint` (#13296) Randy Schott
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.

2 participants