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

Build queries on sepolia for v3 #100

Open
viniabussafi opened this issue Jun 21, 2024 · 11 comments
Open

Build queries on sepolia for v3 #100

viniabussafi opened this issue Jun 21, 2024 · 11 comments
Assignees

Comments

@viniabussafi
Copy link
Member

viniabussafi commented Jun 21, 2024

With vault contract decoded, we can now start working on building/testing queries on top of it
Disclaimer: still waiting for contracts to show up at data explorer, so these queries are still unfinished

@viniabussafi
Copy link
Member Author

Trades

@viniabussafi
Copy link
Member Author

Pool Balances

@viniabussafi
Copy link
Member Author

Protocol Fees

@viniabussafi
Copy link
Member Author

BPT supply

@viniabussafi
Copy link
Member Author

Transfers BPT

@viniabussafi viniabussafi self-assigned this Jun 21, 2024
@viniabussafi
Copy link
Member Author

Resubmitted Vault contract for decoding

@viniabussafi
Copy link
Member Author

Pools Registered

@viniabussafi
Copy link
Member Author

Pools Fees

@viniabussafi
Copy link
Member Author

viniabussafi commented Oct 15, 2024

Working on v3_vault_pool_balances to replace the usage of the 'tokens' column, using this snippet:

WITH token_data AS (
SELECT
pool,
ARRAY_AGG(json_extract_scalar(token, '$.token') ORDER BY token_index) AS tokens
FROM (
SELECT
pool,
tokenConfig,
SEQUENCE(1, CARDINALITY(tokenConfig)) AS token_index_array
FROM
balancer_testnet_sepolia.Vault_evt_PoolRegistered
) AS pool_data
CROSS JOIN UNNEST(tokenConfig, token_index_array) AS t(token, token_index)
GROUP BY pool
)

@viniabussafi
Copy link
Member Author

Updated the query for protocol fees using the protocol fee controller: https://dune.com/queries/3850805

@viniabussafi
Copy link
Member Author

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

1 participant