-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Adding aave interests abstraction in Dune v2 #1434
Conversation
Co-authored-by: Chuxin Huang <30974572+chuxinh@users.noreply.github.com>
Co-authored-by: Chuxin Huang <30974572+chuxinh@users.noreply.github.com>
Changing model name and adding symbol
…m_interest_rates.sql Changing model name and adding symbol
…dels/aave/ethereum/aave_v2_ethereum_interest_rates.sql Renaming to smaller case for consistancy
…reum/aave_interests_test.sql Changing file names to lower case for consistency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after nits
@SohamP99 i'm unable to push changes to your forked repo branch (not sure if it's because it's master or just the fork in general), but i was looking to move the aave_ethereum_schema yaml file into the ethereum sub-directory, as it's specific to ethereum |
based on how you populated the dbt project yaml file & the config block in the model, your output object will be named 'aave_ethereum.aave_interest' -- is this intended? do you want to remove 'aave' in alias since it's in schema? how about the 'v2' part, that is in the file name but not table name? that works, but just ensuring |
That's a good point. Maybe we should follow the uniswap structure and this one should be |
…/ethereum/aave_ethereum_schema.yml Moving the schema file to source directory and changing the meta
…eum/aave_ethereum_sources.yml Moving the source file to aave ethereum folder
replaced evt_block_time with hour corrected == corrected unit_test2
Yes, I have made the changes based on the uniswap structure. |
@jeff-dude Thanks for the review, I have made the requested changes. |
Workflow run id 2983227983 approved. |
Added tokens_ethereum_erc20 abstraction to sources
Hey @jeff-dude . Regarding the above check fail [b03fdf7] , Is it possible that the tokens_ethereum_erc20 sql file might have been deleted from dev environment? The code seems good to me and several other models are also using this abstraction. |
i'm seeing no issues with my testing for joining to ethereum erc20 tokens model. i think you're all set, unless it's failing for you? |
Workflow run id 3004955182 approved. |
Workflow run id 3004971859 approved. |
Yeah the checks are passing now, we can go ahead with the merge if no further changes are required |
Workflow run id 3008465400 approved. |
thank you for the back & forth and first spell contribution! |
fyi @soispoke |
Nice ! 🔥 @jeff-dude |
Brief comments on the purpose of your changes:
Add an abstraction in Dune v2 that stores hourly interest rates of all Aave reserves on Ethereum.
For Dune Engine V2
I've checked that:
lowercase_snake_cased