Query editor
WITHgetMAHASupply as (selectdate_trunc('month', "evt_block_time") as "date",SUM("value" / 1e18) as "change",SUM(SUM("value" / 1e18)) OVER (ORDER BYdate_trunc('month', "evt_block_time"))FROM(select"evt_block_time",CAST("value" AS DOUBLE) as valuefromerc20_ethereum.evt_transferwherecontract_address = 0x745407c86df8db893011912d3ab28e68b62e49b0and "to" != 0xfdf0d51ddd34102472d7130c3d4831bc77386e78UNION ALLselect"evt_block_time",- CAST("value" AS DOUBLE)fromerc20_ethereum.evt_transferwherecontract_address = 0x745407c86df8db893011912d3ab28e68b62e49b0and "from" != 0x0000000000000000000000000000000000000000and "from" != 0xfdf0d51ddd34102472d7130c3d4831bc77386e78UNION ALLSELECTperiod,0FROMUNNEST (sequence(CAST('2023-02-01' AS TIMESTAMP),CAST(NOW() as TIMESTAMP),interval '1' day)) as tbl (period)) jGROUP BY1),getStakedMAHA as (selectdate_trunc('month', "evt_block_time") as "date",SUM("value" / 1e18) as "monthly_maha_in_governance_change",SUM(SUM("value" / 1e18)) OVER (ORDER BYdate_trunc('month', "evt_block_time")) as "cumulative_maha_in_governance_change"FROM(select"evt_block_time",CAST("value" AS DOUBLE) as valuefrommahadao_ethereum.MAHAXLocker_evt_Deposit