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

Analyse sandwich attacks on v3 #206

Open
viniabussafi opened this issue Jan 6, 2025 · 8 comments
Open

Analyse sandwich attacks on v3 #206

viniabussafi opened this issue Jan 6, 2025 · 8 comments
Assignees

Comments

@viniabussafi
Copy link
Member

first scope: dex_sandwiched table

@viniabussafi viniabussafi self-assigned this Jan 6, 2025
@viniabussafi
Copy link
Member Author

viniabussafi commented Jan 7, 2025

Aggregated view here
image

@viniabussafi
Copy link
Member Author

To view all transactions: https://dune.com/queries/4532901/7566569

@viniabussafi
Copy link
Member Author

V3 had a high percentage of sandwich attacks on 25/12, but on average it has been below V1 and V2

@viniabussafi
Copy link
Member Author

trend has been of growth over the past 2 days for v3

@viniabussafi
Copy link
Member Author

switched to dex.sandwiches

@mendesfabio
Copy link
Member

  • look at USD volume instead of # txns
  • find dex.sandwiches without a dex.sandwiched - or the opposite

@mendesfabio mendesfabio reopened this Jan 13, 2025
@viniabussafi
Copy link
Member Author

  • look at USD volume instead of # txns

Looking at the codes dex.sandwiches (dbt_subprojects/dex/macros/models/dex_sandwiches.sql) identifies the attack transactions, while dex.sandwiched (dbt_subprojects/dex/macros/models/dex_sandwiched.sql) identifies the victims so, for the purpose of this analysis I believe it makes more sense to look at dex.sandwiches (i.e. the percentage of the volume of a pool that is due to sandwich attacks, representing a very toxic flow)

@viniabussafi
Copy link
Member Author

viniabussafi commented Feb 4, 2025

Here is a query for the sandwiched trades on V3 considering both dex.sandwiches and dex.sandwiched: https://dune.com/queries/4665624. Checking if results actually make sense. WIll leave the issue open so we discuss on call

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

No branches or pull requests

2 participants