Query editor
SELECT date_trunc('day', block_time) as time, SUM(pair_amount) as grai_locked, SUM(o_amount) as goarb_locked, COUNT(*) AS positionsFROM (SELECT block_time, bytearray_substring(topic1, 1 + 12, 20) as user, bytearray_to_uint256(bytearray_substring(data, 1, 32))/(60*60*24*7) as duration_weeks, bytearray_to_uint256(bytearray_substring(data, 1 + 32, 32)) * 1e-18 as o_amount, bytearray_to_uint256(bytearray_substring(data, 1 + 64, 32)) * 1e-18 as pair_amount, bytearray_to_uint256(bytearray_substring(data, 1 + 96, 32)) as token_id, tx_hashFROM arbitrum.logsWHEREtopic0 = 0xdc6cbf8e9408cc595ca2ec5f126a5d2c09d5e2069237dc96f1d93188515a6366 -- vesting startedAND bytearray_to_uint256(bytearray_substring(data, 1, 32)) > 0 -- zero-duration vesting events are instant unlocks, not 'locked'AND contract_address = 0xec0f08bc015a0d0fba1df0b8b11d4779f5a04326)GROUP BY 1ORDER BY 1