Query editor
-- Total supply of LPwith amount_in_lp as (selectdate_trunc('day', evt_block_time) as dt,cast(sum(value)/1e18 as double) as amount_lpfrom erc20_ethereum.evt_Transferwherecontract_address = 0x09D1d767eDF8Fa23A64C51fa559E0688E526812Fand "from" = 0x0000000000000000000000000000000000000000and "to" not in (0x0000000000000000000000000000000000000000)group by 1),amount_out_lp as (select date_trunc('day',evt_block_time) as dt,-1*cast(sum(value)/1e18 as double) as amount_lpfrom erc20_ethereum.evt_Transferwherecontract_address = 0x09D1d767eDF8Fa23A64C51fa559E0688E526812Fand "from" != 0x0000000000000000000000000000000000000000and "to" = 0x0000000000000000000000000000000000000000group by 1),daily_liquidity as (select * from amount_in_lpunion allselect * from amount_out_lp),total_supply as (select sum(amount_lp) as supplyfrom daily_liquidity),-- Treasury supply of LP--- owned partamount_in as (selectdate_trunc('day', evt_block_time) as dt,cast(sum(value)/1e18 as double) as amountfrom erc20_ethereum.evt_Transferwherecontract_address = 0x09D1d767eDF8Fa23A64C51fa559E0688E526812Fand "to" = 0xa0DA53447C0f6C4987964d8463da7e6628B30f82group by 1),amount_out as (select date_trunc('day',evt_block_time) as dt,-1*cast(sum(value)/1e18 as double) as amountfrom erc20_ethereum.evt_Transferwherecontract_address = 0x09D1d767eDF8Fa23A64C51fa559E0688E526812Fand "from" = 0xa0DA53447C0f6C4987964d8463da7e6628B30f82group by 1),acquired_bridged_asset as (select * from amount_inunion allselect * from amount_out