Add bogus_native_prices alert query (sell orders)#355
Open
data-cowwboy wants to merge 2 commits into
Open
Conversation
Flags settled SELL orders where the sell-side and buy-side native values diverge by >1000x, indicating a bogus native price was used for at least one of the two tokens. Volume floor (min_native_volume) avoids firing on dust orders. Dune query: 7574432. Consumed daily by cow-dagster's bogus_native_prices monitor.
Apply SQLFluff auto-fix to the where-clause indentation and register min_native_volume in the templater context so the parser can resolve the parameter.
harisang
reviewed
May 26, 2026
| sell_value_native > 1000 * buy_value_native | ||
| or buy_value_native > 1000 * sell_value_native | ||
| ) | ||
| and greatest(sell_value_native, buy_value_native) > {{min_native_volume}} |
Contributor
There was a problem hiding this comment.
the left-hand side should be minimum/least or whatever dune uses, in my opinion, as you could have cases where i am selling 20 dollars on mainnet and most of which is consumed by gas fees.
harisang
reviewed
May 26, 2026
| and rod.protocol_fee_native_price > 0 | ||
| ) | ||
|
|
||
| select |
Contributor
There was a problem hiding this comment.
We should add auction_id here as well, and environment and blockchain.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
7574432undercowprotocol/alerts/, matching the existingsolver_inactivity_alert_6568090.sqlnaming convention.min_native_volumefloor so dust orders don't trip it.bogus_native_pricesmonitor in cow-dagster (companion PR: cowprotocol/cow-dagster#nitish/bogus-native-prices-alert).