Professional Documents
Culture Documents
Querying TVL and Stability Pool (Inflow and Outflow)
Querying TVL and Stability Pool (Inflow and Outflow)
SUM(
case
when "to" = '\xdf9eb223bafbe5c5271415c75aecd68c21fe3d7f' then
"value" / 1e18
else
0
end
) as "ethPlus",
SUM(
case
when "to" = '\xdf9eb223bafbe5c5271415c75aecd68c21fe3d7f' then
0
else
-"value" / 1e18
end
) as "ethMinus"
from ethereum."traces"
group by 1
order by 1 desc
limit 7 * 24
;
*/