Query editor
-- GBM auction contract 0xd5543237c656f25eea69f1e247b8fa59ba353306-- sends GHST to DAO Wallet 0xb208f8bb431f580cc4b216826affb128cd1431ab-- and to Rarity Farming 0x27df5c6dcd360f372e23d5e63645ec0072d0c098-- in GHST 0x385Eeac5cB85A38A9a07A70c73e0a3271CfB54A7-- the GBMFacet has Auction_ItemClaimed events, but no data for them-- Implement by looking for GHST transfers matching the patternSELECTdate_trunc('month', evt_block_time) as month,if (to = 0xb208f8BB431f580CC4b216826AFfB128cd1431aB, 'GBM fees (DAO)', 'GBM fees (RF)') as source,'GHST' as token,SUM(value/1e18) as total_receivedFROMaavegotchi_polygon.GHST_evt_TransferWHEREevt_block_time >= date_trunc('month', (now() - interval '365' day))AND "from" = 0xd5543237c656f25eea69f1e247b8fa59ba353306AND (to = 0xb208f8BB431f580CC4b216826AFfB128cd1431aB OR to = 0x27df5c6dcd360f372e23d5e63645ec0072d0c098)GROUP BY 1, 2ORDER BY 1, 2