-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Mass decoding non dynamic #6630
base: main
Are you sure you want to change the base?
Conversation
…ytics/spellbook into mass-decoding-non-dynamic
dbt_subprojects/dex/macros/models/_project/in-flight-decoding/uniswap_v2/uniswap_v2_trades.sql
Outdated
Show resolved
Hide resolved
...coded_trades/arbitrum/decoded-in-flight/uniswap-v2/uniswap_v2_forks_base_trades_arbitrum.sql
Show resolved
Hide resolved
Hey @Hosuke I just talked to @jeff-dude and he showed me the amount_usd issues that arises within a few trades. this query in particular: https://dune.com/queries/4093790 The problem here lies within the fact that swap events can be arbitrarily and maliciously emitted by smart contracts, without any connection to reality. The culprit here is not 1inch, but rather the factory, which somehow also is the Safe token. The trade it is emitting what looks like a WETH-XXX trade because the factory event was already wrong/didn't make sense. A way for us to correct this is to simply check if there is corresponding transfer of |
...coded_trades/ethereum/decoded-in-flight/uniswap-v3/uniswap_v3_forks_base_trades_ethereum.sql
Outdated
Show resolved
Hide resolved
...coded_trades/arbitrum/decoded-in-flight/uniswap-v2/uniswap_v2_forks_base_trades_arbitrum.sql
Outdated
Show resolved
Hide resolved
The new implementation has: |
...coded_trades/arbitrum/decoded-in-flight/uniswap-v2/uniswap_v2_forks_base_trades_arbitrum.sql
Outdated
Show resolved
Hide resolved
Now back to incremental error: This may be an unclear problem. |
dbt_subprojects/dex/macros/models/_project/in-flight-decoding/uniswap_v2/uniswap_v2_trades.sql
Show resolved
Hide resolved
...coded_trades/arbitrum/decoded-in-flight/uniswap-v3/uniswap_v3_forks_base_trades_arbitrum.sql
Show resolved
Hide resolved
dbt_subprojects/dex/macros/models/_project/in-flight-decoding/decoding_base.sql
Show resolved
Hide resolved
good progress here! brainstorming what we still need to do, not in any particular order:
...maybe more, stopping for now |
scaleable evm decode function usage