Query editor
-- TURTLE daily claimed, slashed, unique wallets without timeWITH base AS (SELECTblock_time,account,amountRealised / 1e18 AS amount_realised,slashedAmount / 1e18 AS amount_slashedFROM TABLE (decode_evm_event(abi => '{"anonymous": false,"inputs": [{"indexed": true, "internalType": "address", "name": "account", "type": "address"},{"indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256"},{"indexed": false, "internalType": "uint256", "name": "amountRealised", "type": "uint256"},{"indexed": false, "internalType": "uint256", "name": "slashedAmount", "type": "uint256"},{"indexed": false, "internalType": "bool", "name": "isVested", "type": "bool"}],"name": "Claimed","type": "event"}',input => TABLE (SELECT block_time, tx_hash, topic0, topic1, topic2, topic3, dataFROM bnb.logsWHERE contract_address = 0x56aa6d651bfefa9207b35e508716466359bae8efAND topic0 = 0x67cad33bfde477c6739dc9adc3b22fc9eac9c1ce5f0f349d6f15351caf0698cb))))SELECTformat_datetime(date_trunc('day', block_time), 'yyyy-MM-dd') AS day,SUM(amount_realised) AS claimed_tokens,SUM(amount_slashed) AS forfeited_tokens,COUNT(DISTINCT account) AS unique_claimantsFROM baseGROUP BY 1ORDER BY 1;