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 list of batches excluded from slippage computation (due to R depeg) #325

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions queries/dune_v2/period_slippage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,20 @@ batch_meta as (
join pre_batch_transfers pbt
on bm.tx_hash = pbt.tx_hash
)
-- These batches involve a token AXS (Old)
-- whose transfer function doesn't align with the emitted transfer event.
-- These batches are excluded from slippage accounting
,excluded_batches as (
select tx_hash from filtered_trades
-- These batches involve a token AXS (Old)
-- whose transfer function doesn't align with the emitted transfer event.
where 0xf5d669627376ebd411e34b98f19c868c8aba5ada in (buy_token, sell_token)
-- Batches involving depegged R stable coin
or tx_hash in (
0x11a7b6e9591a391972ec0ba14e7f6d2cdde6b6101835fc068aa781486edbd586,
0xab4ecb6c331c4aa54da361d189d0f8d064720d29c66ac06311875c845c444437,
0xc7289412dd9a8de54a266d3d4763d72c8d0d465d6157ed6da4d9360df1fe5ef7,
0x3603837611b1670f743325ab81ba2ab50b092e5a8defc8d111b554264d600cd7,
0xd8356e52dafc2c749da8b0f2bee69736c83fae986ce3f5b14e2a8dd603c3092e
)
),
incoming_and_outgoing as (
SELECT
Expand Down
Loading