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

Stablecoins Cleanup: using macro to waterfall prices #519

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SebMelendez01
Copy link
Contributor

@SebMelendez01 SebMelendez01 commented Oct 1, 2024

  1. Created macro in this PR to waterfall prices and maintain stablecoin prices for nonusd stablecoins in a single place. Implementing this marco in the other places in the code that it can be used.

PR: https://github.com/Artemis-xyz/dbt/pull/518/files

Marco In main Repo: https://github.com/Artemis-xyz/dbt/blob/main/macros/coingecko/waterfall_stablecoin_prices.sql

@SebMelendez01 SebMelendez01 requested a review from a team as a code owner October 1, 2024 21:13
Copy link
Contributor

@akan72 akan72 left a comment

Choose a reason for hiding this comment

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

@SebMelendez01 Thoughts on making this a Python UDF instead of a SQL macro? I think for now it's fine legibility wise, but Python UDFs may be preferable long term

@SebMelendez01
Copy link
Contributor Author

Ya we can def do that

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