Query editor
--Error: Query is too long for wand tools.--Try shortening query to try again./* Error: Query is too long for wand tools. *//* Try shortening query to try again. *//* Get Gran Total of stkIDLE *//* SELECT SUM("stkIDLE") FROM stkIDLE_balances *//* Select all events of voting toward agEUR Gauges *//* WITH agEUR_Gauges_votes AS ( *//* SELECT * *//* FROM idle_dao."GaugeController_call_vote_for_gauge_weights" *//* WHERE _gauge_addr = x'8f195979F7aF6C500b4688E492d07036c730c1B2' -- agEUR Gauges *//* ), *//* Select the addresses who voted for agEUR Gauges by Tx Hash *//* agEUR_Gauges_addresses AS ( *//* SELECT * *//* FROM ethereum.transactions *//* WHERE "hash" IN *//* ( *//* SELECT "call_tx_hash" *//* FROM agEUR_Gauges_votes *//* ) *//* ), */WITH event_stk AS (SELECT*FROM ethereum.transactionsWHERE"to" = 0xaAC13a116eA7016689993193FcE4BadC8038136f /* stkIDLE */ AND success = TRUE) /* AND "from" = x'6f85d3cb1990cecae9f91c164e7a851937969314' */, value_stk_cl AS (SELECT"from",call_tx_hash,call_block_time,lock_duration,_unlock_time,lock_elapsed_time,_value AS idle_staked,(_value * lock_duration) / TRY_CAST(126144000 AS DOUBLE) AS stkidle_received,GREATEST(0,((_value * lock_duration) / TRY_CAST(126144000 AS DOUBLE)) - (((_value * lock_duration / 126144000) * lock_elapsed_time) / TRY_CAST(lock_duration AS DOUBLE))) AS _valueFROM (SELECTevent_stk."from",cl.*,cl._unlock_time - to_unixtime(TRY_CAST(cl.call_block_time AS TIMESTAMP)) AS lock_duration,to_unixtime(CURRENT_TIMESTAMP) - to_unixtime(TRY_CAST(cl.call_block_time AS TIMESTAMP)) AS lock_elapsed_time