Skip to content
Dune Analytics

@MatteoLeibowitz / Compound Collateral Sensitivity

Compound Collateral Sensitivity

Loading
 

About queries and results

Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.

We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.

Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.

SQL query results

Loading
 

SQL query

1WITH collat AS 
2(
3    SELECT
4    "minter" as address,
5    sum(mint_amount/50) as collat_ETH
6    FROM compound."view_mint"
7    WHERE token_symbol = 'ETH'
8    GROUP BY 1
9UNION
10    SELECT
11    "redeemer" AS address,
12    sum(-redeem_amount/50) as collat_ETH
13    FROM compound."view_redeem"
14    WHERE token_symbol = 'ETH'
15    GROUP BY 1
16UNION
17    SELECT
18    "from" AS address,
19    sum(-amount/50) as collat_ETH
20    FROM compound."view_transfer_ctoken"
21    WHERE token_symbol = 'cETH'
22    GROUP BY 1
23UNION 
24    SELECT
25    "to" AS address,...

Result visualizations

Compound v2: ETH/DAI Liquidation SensitivityCompound Collateral Sensitivity

Loading