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

[CoW AMM] 10k growth for HODL strategy #47

Merged
merged 2 commits into from
Oct 2, 2024
Merged

[CoW AMM] 10k growth for HODL strategy #47

merged 2 commits into from
Oct 2, 2024

Conversation

fleupold
Copy link
Contributor

Not a super meaningful but fun and simple metric to compute, this query plots the 10k growth graph of "not LPing" (ie. holding the two assets). The difference is usually referred to as "impermanent loss".

Test Plan

https://dune.com/queries/4059180/6834667

image

Base automatically changed from cowamm/multichain_support to main September 27, 2024 08:36
select
ds.day,
token_a_start * p1.price_close + token_b_start * p2.price_close as current_value_of_investment
from starting_balance, date_series as ds
Copy link
Contributor

Choose a reason for hiding this comment

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

I admit i had never seen this comma notation, and i would probably prefer a more explicit join but i tested it and it works so i am fine with it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

replaced with cross join (which is semantically equivalent)

@fleupold fleupold merged commit b8181d3 into main Oct 2, 2024
1 check passed
@fleupold fleupold deleted the cowamm/hodl branch October 2, 2024 14:04
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