duneanalytics / spellbook

SQL views for Dune
Other
1.18k stars 1.12k forks source link

[BUG] Safe Balances Spell not capturing safes and forward-filling data #6626

Open safeintern opened 2 months ago

safeintern commented 2 months ago

Description

The Safes balances spells (Ethereum, Optimism, Polygon) are not properly capturing safes and forward-filling data from previous dates

Current behavior

As you can see in these queries (ethereum, optimism, polygon, the number of wallets for each day in these spells drop off greatly.

Expected behavior

The reality is that because the spell entails forward-filling the data from previous dates, there shouldn't be a decrease in number of wallets for each day.

Impacted model(s)

safe_ethereum.balances
safe_optimism.balances
safe_polygon.balances

Possible solution

None. Thank you!

safeintern commented 2 months ago

@jeff-dude can you please take a look 🙏🏻?

jeff-dude commented 2 months ago

my first thoughts are:

jeff-dude commented 2 months ago

@0xRobin to compare to arbitrum RWA PR on balances