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

Added user level balance tracking for Yield Yak YRT tokens #5906

Merged
merged 4 commits into from
May 13, 2024

Conversation

yy-analytics
Copy link
Contributor

This PR adds a temporal model for Yak Receipt Token (YRT) balances for the Yield Yak strategies, using Transfer events. It allows us to track wallet-level balances in each of the strategies over time, and in combination with the strategy-level balances model, will enable individual users to monitor their deposit token balances over time. It will also make the tracking of the totalSupply of any of these YRT tokens pretty straightforward too as we can just track the negative balance of the zero address.

I've taken a similar approach to previous models (e.g. yield_yak_balances.sql macro), but if there are any questions on any of it please let me know.

@dune-eng
Copy link

dune-eng commented May 9, 2024

Workflow run id 9017524852 approved.

@dune-eng
Copy link

dune-eng commented May 9, 2024

Workflow run id 9017525003 approved.

@dune-eng
Copy link

dune-eng commented May 9, 2024

Workflow run id 9017843771 approved.

@dune-eng
Copy link

dune-eng commented May 9, 2024

Workflow run id 9017843999 approved.

@yy-analytics
Copy link
Contributor Author

Working on more significant changes to address "TOO MANY STAGES" issues

@dune-eng
Copy link

dune-eng commented May 9, 2024

Workflow run id 9020830588 approved.

@dune-eng
Copy link

dune-eng commented May 9, 2024

Workflow run id 9020830845 approved.

@yy-analytics
Copy link
Contributor Author

Okay looks like that last commit got it working ☺️

@dune-eng
Copy link

dune-eng commented May 9, 2024

Workflow run id 9020967033 approved.

@dune-eng
Copy link

dune-eng commented May 9, 2024

Workflow run id 9020967368 approved.

Copy link
Member

@jeff-dude jeff-dude left a comment

Choose a reason for hiding this comment

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

this works for me. thanks for continuing to write efficient & clean code!

@jeff-dude jeff-dude self-assigned this May 13, 2024
@jeff-dude jeff-dude merged commit 64e2a3a into duneanalytics:main May 13, 2024
3 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 13, 2024
@yy-analytics yy-analytics deleted the yieldyak-user-yrt-balances branch May 13, 2024 18:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants