Skip to content

Exclude Gnosis Chain prod auctions from rewards for Dec 16, 2025#301

Open
harisang wants to merge 1 commit intomainfrom
exclude_gnosis_chain_auctions_dec_16_2025
Open

Exclude Gnosis Chain prod auctions from rewards for Dec 16, 2025#301
harisang wants to merge 1 commit intomainfrom
exclude_gnosis_chain_auctions_dec_16_2025

Conversation

@harisang
Copy link
Copy Markdown
Contributor

Due to issues with the default driver on Gnosis Chain on Dec 16, between 11:30am and 15:30UTC, we decided to lift penalties for auctions where no winner managed to execute a solution onchain. To recover these auctions, we used this query
https://dune.com/queries/3333356?blockchain_e15077=gnosis&end_time_d83555=2025-12-16+15%3A30%3A00&start_time_d83555=2025-12-16+11%3A30%3A00

to identify the relevant block interval: 43676284....43679060

and then this sql query to detect all auctions with at least one winner and no successful onchain settlement.

with relevant_auctions as (
    select id as auction_id
    from competition_auctions
    where
        (deadline >= 43676284 and deadline <= 43679060)
),

auctions_with_at_least_one_winner as (
    select distinct a.auction_id
    from relevant_auctions as a inner join proposed_solutions as b
    on a.auction_id = b.auction_id
    where b.is_winner = 't'
),

to_exclude as (
    select auction_id
    from auctions_with_at_least_one_winner
    except
    select auction_id
    from settlements
)

select
    'xdai' as network,
    'prod' as environment,
    auction_id
from to_exclude
order by auction_id;

gnosis_chain_prod_ids_dec16_2025 as (
select *
from unnest (array[
14496475
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we create this as a table in dune by uploading csv and then use that table for exclusion ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As this is functionality that we might deprecate, i wouldn't put the effort for now, tbh

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