Query editor
-- This query has been migrated to run on DuneSQL.-- If you need to change back because you’re seeing issues, use the Query History view to restore the previous version.-- If you notice a regression, please email [email protected].WITHseeds_bought AS (SELECTtr.evt_block_time,DATE_TRUNC('day', tr.evt_block_time) AS DAY,tr."amountEggs" AS amount,tr.contract_address,tr.sender AS sender,tr."amountBNB" AS amountBnbFROMdrip_bnb.Garden_evt_SeedsBought AS trWHEREsender = {{Wallet}}ORDER BYevt_block_time DESC),seeds_bought_daily AS (SELECTday,SUM(amount) AS "Seeds Bought",SUM(amount) / CAST(2592000 AS DOUBLE) AS "Plants Bought",SUM(amountBnb) / CAST(1e18 AS DOUBLE) AS "LP Used"FROMseeds_boughtGROUP BYdayORDER BYday),seeds_sold AS (SELECTtr.evt_block_time,DATE_TRUNC('day', tr.evt_block_time) AS DAY,tr."seedsSold" AS amount,tr.contract_address,tr.sender AS sender,tr."seedValue"FROMdrip_bnb.Garden_evt_SeedsSold AS trWHEREsender = {{Wallet}}ORDER BYevt_block_time DESC),seeds_sold_daily AS (SELECTday,SUM(amount) AS "Seeds Sold",SUM(amount) / CAST(2592000 AS DOUBLE) AS "Plants Sold",SUM("seedValue") / CAST(1e18 AS DOUBLE) AS "LP Used"FROMseeds_soldGROUP BYdayORDER BYday