balancer / dune-spellbook

SQL views for Dune Analytics
Other
7 stars 11 forks source link

Map vlAURA holders #129

Closed viniabussafi closed 2 months ago

viniabussafi commented 3 months ago

map vlaura vs. vebal rounds

viniabussafi commented 3 months ago

ref: https://etherscan.io/address/0x3fa73f1e5d8a792c80f426fc8f84fbf7ce9bbcac https://vscode.blockscan.com/ethereum/0x3fa73f1e5d8a792c80f426fc8f84fbf7ce9bbcac https://dune.com/queries/3999509

viniabussafi commented 3 months ago

vlAURA rounds: https://dune.com/queries/4001808. same results as dune.asnogordo.result_aura_lock_period veBAL rounds: https://dune.com/queries/4001811

viniabussafi commented 2 months ago

Update: this query works for latest data, but this one still needs to be fixed for historical data regarding unlockable vlaura

viniabussafi commented 2 months ago

will work with current balances, as we want a pie chart of vlaura distribution, but after thar will go back to the challenge of rebuilding the data historically

viniabussafi commented 2 months ago

image getting close 🙏

viniabussafi commented 2 months ago

Balances by address for debugging: https://dune.com/queries/4008271

viniabussafi commented 2 months ago

Results match with this function for current balances: https://etherscan.io/address/0x3fa73f1e5d8a792c80f426fc8f84fbf7ce9bbcac#readContract#F24

viniabussafi commented 2 months ago

Current veBAL Balances (vlAURA holders breakdown): https://dune.com/queries/4008624/6748633?category=asset-tracking

viniabussafi commented 2 months ago

Update: working on vlaura balances by round here: https://dune.com/queries/4005633 last step is properly calculating vebal balances and voting power

mendesfabio commented 2 months ago

this is the 1st user I tried to play with 0x01a0f8f364c2fec07cfcdebd2980da3f950d0410 and I noticed that:

viniabussafi commented 2 months ago

historical vlAURA balances by voting round and provider

viniabussafi commented 2 months ago

historical vlAURA balances by voting round and address

viniabussafi commented 2 months ago

vlAURA balances by voting round and delegate

viniabussafi commented 2 months ago

Joining everything in vlaura_balances_round. The idea is to materialize this query once credits refresh and then be able to get data by

viniabussafi commented 2 months ago

Current vlAURA Distribution per provider Current vlAURA Distribution per delegate Current veBAL balances (vlAURA delegates breakdown)

viniabussafi commented 2 months ago

Ok, seems we've definitely progressed. Organizing the multiple links I sent here: Main query, to be materialized once credits refresh, containing vlAURA and veBAL balances for each holder, including 'provider' for labelling and 'delegate': vlaura_balances_round

Current vlAURA distributions: Current vlAURA Distribution per provider Current vlAURA Distribution per delegate Current vlAURA Distribution per address

Current veBAL balances Current veBAL balances (vlAURA delegates breakdown) Current veBAL balances (vlAURA providers breakdown) Current veBAL balances (vlAURA addresses breakdown)

viniabussafi commented 2 months ago

Historical veBAL balances (vlAURA providers breakdown)

viniabussafi commented 2 months ago

historical vlAURA balances by voting round and address historical vlAURA balances by voting round and provider historical vlAURA balances by voting round and delegate

viniabussafi commented 2 months ago

Added to veBAL dashboard image

viniabussafi commented 2 months ago

done, added to dashboard and sent to team