Skip to content

Update cow_protocol_polygon_trades.sql #8518

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

Merged
merged 1 commit into from
Jul 23, 2025
Merged

Conversation

matsai5
Copy link
Contributor

@matsai5 matsai5 commented Jul 22, 2025

fixed hardcoded native token

fix hardcoded native token
Copy link

github-actions bot commented Jul 22, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@github-actions github-actions bot marked this pull request as draft July 22, 2025 13:04
@github-actions github-actions bot added WIP work in progress dbt: dex covers the DEX dbt subproject labels Jul 22, 2025
@dune-eng
Copy link

Workflow run id 16445130012 approved.

@dune-eng
Copy link

Workflow run id 16445129990 approved.

@dune-eng
Copy link

Workflow run id 16445130348 approved.

@matsai5
Copy link
Contributor Author

matsai5 commented Jul 22, 2025

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jul 22, 2025
@jeff-dude jeff-dude marked this pull request as ready for review July 22, 2025 15:14
@Copilot Copilot AI review requested due to automatic review settings July 22, 2025 15:14
@github-actions github-actions bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Jul 22, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a hardcoded native token reference in the CoW Protocol Polygon trades SQL model by correcting the token symbol from 'AVAX' to 'POL' for ETH Flow orders.

  • Updates the hardcoded native token symbol to use the correct Polygon token ('POL' instead of 'AVAX')

@@ -188,7 +188,7 @@ valued_trades as (
-- ETH Flow orders have trader = sender of orderCreation.
case when sender is not null then sender else trader end as trader,
sell_token_address,
case when sender is not null then 'AVAX' else sell_token end as sell_token,
case when sender is not null then 'POL' else sell_token end as sell_token,
Copy link
Preview

Copilot AI Jul 22, 2025

Choose a reason for hiding this comment

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

The hardcoded 'POL' token symbol may not be accurate for Polygon's native token. Polygon's native token is MATIC, and while POL was planned as a successor token, this should be verified against the current state of the Polygon network and the specific requirements of this data model.

Copilot uses AI. Check for mistakes.

@jeff-dude jeff-dude self-assigned this Jul 22, 2025
@jeff-dude jeff-dude added ready-for-merging and removed ready-for-review this PR development is complete, please review labels Jul 22, 2025
@jeff-dude jeff-dude merged commit 45ebc88 into duneanalytics:main Jul 23, 2025
5 of 6 checks passed
Copy link

gitpoap-bot bot commented Jul 23, 2025

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2025 Dune Contributor:

GitPOAP: 2025 Dune Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dbt: dex covers the DEX dbt subproject ready-for-merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants