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

fix solana phoenix trades and fees #7856

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Conversation

0xBoxer
Copy link
Collaborator

@0xBoxer 0xBoxer commented Mar 13, 2025

fixing the solana phoenix trades integration to dex.trades

@github-actions github-actions bot added WIP work in progress dbt: solana covers the Solana dbt subproject labels Mar 13, 2025
@0xBoxer
Copy link
Collaborator Author

0xBoxer commented Mar 27, 2025

the PR now fixes:

  • wrong event log selection due to sorting only by inner instruction, not outer instruction
  • decimal issue for amounts that were introduced by not using the internal decimal system of phoenix but rather the token metadata ones
  • wrong fee calculations due to wrong bps calculation

https://dune.com/queries/4033552/6791501
https://dune.com/queries/4910331

@0xBoxer 0xBoxer marked this pull request as ready for review March 27, 2025 15:21
@github-actions github-actions bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Mar 27, 2025
@jeff-dude
Copy link
Member

jeff-dude commented Mar 27, 2025

on your successful run before adding full history back, why was incremental 0 rows? is v1 deprecated / no new data or a bug in code?

https://github.com/duneanalytics/spellbook/actions/runs/14104627449/job/39508243312#step:15:20

@jeff-dude jeff-dude self-assigned this Mar 27, 2025
@jeff-dude jeff-dude added in review Assignee is currently reviewing the PR and removed ready-for-review this PR development is complete, please review labels Mar 27, 2025
@0xBoxer
Copy link
Collaborator Author

0xBoxer commented Mar 27, 2025

I had it set to a speicific daterange outside of any if_incremental blocks so the incremental run had no data to process

@0xBoxer
Copy link
Collaborator Author

0xBoxer commented Mar 28, 2025

pushed the incremental changes 🫡

@jeff-dude jeff-dude requested a review from 0xRobin March 28, 2025 15:28
@jeff-dude jeff-dude added ready-for-final-review and removed in review Assignee is currently reviewing the PR labels Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dbt: solana covers the Solana dbt subproject ready-for-final-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants