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

Marinade ez pool lp actions #768

Merged
merged 10 commits into from
Jan 14, 2025
Merged

Marinade ez pool lp actions #768

merged 10 commits into from
Jan 14, 2025

Conversation

desmond-hui
Copy link
Contributor

@desmond-hui desmond-hui commented Jan 11, 2025

  • Create marinade__ez_liquidity_pool_actions to surface deposit and withdraw events for all pools that use either MSOL or MNDE as one of the LP pairs
    • upstream Meteora LP data has a different schema than the rest so I am temporarily creating 2 views to reshape the data for the purposes of marinade
      • marinade__meteora_pivot and marinade__meteora_dlmm_pivot
      • These should only be materialized once, but tests should/will run daily

dbt build -s marinade__meteora_dlmm_pivot -t dev

20:00:32  Finished running 1 view model, 5 data tests, 7 project hooks in 0 hours 0 minutes and 41.20 seconds (41.20s).
20:00:32  
20:00:32  Completed successfully
20:00:32  
20:00:32  Done. PASS=6 WARN=0 ERROR=0 SKIP=0 TOTAL=6

dbt build -s marinade__meteora_pivot -t dev

20:04:56  Finished running 1 view model, 5 data tests, 7 project hooks in 0 hours 0 minutes and 24.33 seconds (24.33s).
20:04:57  
20:04:57  Completed successfully
20:04:57  
20:04:57  Done. PASS=6 WARN=0 ERROR=0 SKIP=0 TOTAL=6

dbt build -s marinade__ez_liquidity_pool_actions -t dev --full-refresh

17:23:01  1 of 19 OK created sql incremental model marinade.ez_liquidity_pool_actions .... [SUCCESS 1 in 25.70s]
17:23:12  Finished running 1 incremental model, 18 data tests, 5 project hooks in 0 hours 0 minutes and 53.47 seconds (53.47s).

dbt build -s marinade__ez_liquidity_pool_actions -t dev

17:24:17  1 of 19 OK created sql incremental model marinade.ez_liquidity_pool_actions .... [SUCCESS 0 in 7.53s]

@desmond-hui desmond-hui force-pushed the marinade-ez-pool-lp-actions branch from 092a86c to 7346be3 Compare January 13, 2025 17:21
@desmond-hui desmond-hui marked this pull request as ready for review January 13, 2025 17:25
{% endif %}
{% endfor %}
),
token_prices AS (
Copy link
Collaborator

Choose a reason for hiding this comment

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

I always debate on how to best handle late arriving prices. Do you think we should try to look at any prices that arrived after the late run?

Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe not a solve for today given the timeline, more curious your thoughts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm good point. What is the expected window for token X at time Y to have a price in our table? up to 24 hours?

@desmond-hui desmond-hui merged commit b10cb4a into main Jan 14, 2025
1 check passed
@desmond-hui desmond-hui deleted the marinade-ez-pool-lp-actions branch January 14, 2025 01:54
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.

2 participants