Skip to content

[PE-7294] Solana Relay - Speed up DBC quote & add DAMM quotes - #13376

Merged
DejayJD merged 5 commits into
mainfrom
jd/relay-meteora-quote-updatres
Nov 5, 2025
Merged

[PE-7294] Solana Relay - Speed up DBC quote & add DAMM quotes#13376
DejayJD merged 5 commits into
mainfrom
jd/relay-meteora-quote-updatres

Conversation

@DejayJD

@DejayJD DejayJD commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

Description

  • Updates meteora/swap_coin_quote to support DAMM pools as well
  • Significantly speeds up DBC quote returns by removing getPoolByBaseMint in favor of our own DB entry

How Has This Been Tested?

staging config
Tested buy/sell with DBC coin (fine) & buy/sell with DAMM coin (bear)

@DejayJD
DejayJD requested review from a team November 5, 2025 20:24
@changeset-bot

changeset-bot Bot commented Nov 5, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6366c5c

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

…jd/relay-meteora-quote-updatres

# Conflicts:
#	packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/meteora/swap_coin_quote.ts

// Get swap quote
const quote = await dbcClient.pool.swapQuote({
virtualPool: virtualPoolState,

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.

Not for this PR but man it'd be nice if we could create these objects out of the db columns so we didn't need to RPC fetch them. I guess the RPC is more likely to be up to date though... idk

// Return the output amount in bigint format
res.status(200).json({
outputAmount: quote.outputAmount.toString()
outputAmount

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.

Is this still a string?

Comment thread packages/web/src/services/env/env.stage.ts
@DejayJD
DejayJD merged commit ad9f671 into main Nov 5, 2025
4 of 6 checks passed
@DejayJD
DejayJD deleted the jd/relay-meteora-quote-updatres branch November 5, 2025 22:36
DejayJD added a commit that referenced this pull request Nov 5, 2025
### Description

- Updates `meteora/swap_coin_quote` to support DAMM pools as well
- Significantly speeds up DBC quote returns by removing
`getPoolByBaseMint` in favor of our own DB entry

### How Has This Been Tested?

staging config
Tested buy/sell with DBC coin (fine) & buy/sell with DAMM coin (bear)
audius-infra pushed a commit that referenced this pull request Nov 6, 2025
[619541f] Silver tier for endless streak (#13319) Ray Jacobson
[ad9f671] [PE-7294] Solana Relay - Speed up DBC quote & add DAMM quotes (#13376) JD Francis
[f0d3d11] fix error with em index timing (#13375) Randy Schott
[8c71987] Add duration logging for core blocks and EM txs (#13373) 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