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].WITHplants AS (SELECTSUM("seedsUsed" / CAST(2592000 AS DOUBLE)) AS "SUM"FROMdrip_bnb.Garden_evt_SeedsPlanted AS trWHEREtr.sender = {{Wallet}}),plants_daily AS (SELECT(p."SUM" * 86400) / CAST(2592000 AS DOUBLE) AS "Plants per day"FROMplants AS p)SELECT(pd."Plants per day" * 100) / CAST(p."SUM" AS DOUBLE) AS "Daily interest"FROMplants_daily AS pdJOIN plants AS p ON 1 = 1