Open RobinNagpal opened 5 months ago
Some Important links to read Techniques for fetching the data: https://docs.dune.com/data-catalog/evm/ethereum/decoded/overview How decoding works: https://docs.dune.com/data-catalog/evm/ethereum/decoded/call-tables Storage Structure of Dune: https://docs.dune.com/query-engine/writing-efficient-queries
SELECT
"from" AS wallet_address,
SUM(amount) AS total_supplied
FROM
compound_v3_ethereum.Comet_evt_Supply
WHERE
evt_block_time >= (CURRENT_TIMESTAMP - INTERVAL '1' day)
GROUP BY
"from"
ORDER BY
total_supplied DESC;
SELECT
"src" AS wallet_address,
SUM(amount) AS total_withdrawn
FROM
compound_v3_ethereum.Comet_evt_Withdraw
WHERE
evt_block_time >= (CURRENT_TIMESTAMP - INTERVAL '1' day)
GROUP BY
"src"
ORDER BY
total_withdrawn DESC;
Background
Compound V3