Query editor
/*MIT LicenseCopyright (c) 2025 Berry_BearPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.Follow me on X: https://x.com/DeFi_Berry_Bear*/withtx as (SELECTDATE_TRUNC('day', evt_block_time) AS day,SUM(ROUND(tr.value / 1e18)) AS tokensFROM erc20_mantle.evt_transfer AS trWHERE"from" = 0xd9f4e85489adcd0baf0cd63b4231c6af58c26745AND "to" = 0xb5bd280567c5a62df1a5570c88e63a5670cba22dAND contract_address = 0x4515A45337F461A11Ff0FE8aBF3c606AE5dC00c9AND DATE_TRUNC('day', evt_block_time) >= CURRENT_DATE - INTERVAL '90' DAYAND DATE_TRUNC('day', evt_block_time) <= CURRENT_TIMESTAMPGROUP BY1ORDER BYday)--------------------------------------------------------------------------SELECTsum(tokens) over (ORDER BYday) as smoe_profit_total,*FROMtx