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

Add Base network to cow amm surplus query #125

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Conversation

fhenneke
Copy link
Contributor

@fhenneke fhenneke commented Jan 28, 2025

This PR add support for Base network to the CoW AMM bounty on CoW surplus.

Since all queries used within already work on base, only one additional table needed to be added to this query.

The modified query can be tested here.

This has not been rigorously tested. The results seem reasonable. Overall, there do not seem to be any significant CoWs on Base.

@fhenneke fhenneke requested a review from harisang January 28, 2025 12:26
@fhenneke fhenneke merged commit fd5573b into main Jan 29, 2025
2 checks passed
@fhenneke fhenneke deleted the cowamm_bounty_base branch January 29, 2025 09:59
PoloX2021 added a commit that referenced this pull request Jan 29, 2025
* Lp feed for prices (#120)

* First version of the queries

* Query to get all the uni style pools categorized by project

* Renaming queries with dune id

* comment

* typo

* Sql code to add the incremental data to the whole blockchain

* Comments

* Adding edge cases for new pools

* Supposedly more efficient query, but not enough apparently

* taking into account prices that don't exist

* filling in the gaps with empty data

* Improving filtering

* Last filtering mistake

* typo

* Changing filtering

* Changing the base table to get the cow amms from a subquery to a materialized view

* Prepare for merge on our own db

* Access fewer times the logs table

* Removing files in the wrong folder

* Commenting code, using materialized view and removing query not on dune

* Update cowamm/profitability/lp_prices/uni_style_lp_4420675.sql

Co-authored-by: Haris Angelidakis <[email protected]>

* Renaming uni style

---------

Co-authored-by: Haris Angelidakis <[email protected]>

* add base to cow amm surplus query (#125)

* fix comment in balance changes query (#126)

---------

Co-authored-by: Haris Angelidakis <[email protected]>
Co-authored-by: Felix Henneke <[email protected]>
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