Query editor
-- https://dune.com/queries/4118421-- https://dune.com/queries/4098622-- WETH could get renamed to ETH but low prioWITHtoken_price_source AS ( -- CTE for mapping token price sources to another chain that actually has the price for it; also used for storing the symbol and decimals of tokens without prices (GSBT, HEDGEY)SELECT'arbitrum' AS blockchain,0x4f604735C1Cf31399c6e711d5962B2B3E0225ad3 AS token_address,'celo' AS price_blockchain,0x4f604735C1Cf31399c6e711d5962B2B3E0225ad3 AS price_token_address,'USDGLO' AS symbol,18 AS decimalsUNION ALLSELECT'arbitrum',0x7f9a7db853ca816b9a138aee3380ef34c437dee0,'ethereum',0xDe30da39c46104798bB5aA3fe8B9e0e1F348163F,'GTC',18UNION ALLSELECT'arbitrum',0xC3f93F3e304b1199625dF261A9F87367ab9E9e48,'arbitrum',0xC3f93F3e304b1199625dF261A9F87367ab9E9e48,'GSBT',18UNION ALLSELECT'arbitrum',0x5270bfc224357cbf7eb76c8fbbb5d49fd4b86934,'arbitrum',0x5270bfc224357cbf7eb76c8fbbb5d49fd4b86934,'HEDGEY',18UNION ALLSELECT'optimism',0x4F604735c1cF31399C6E711D5962b2B3E0225AD3,'celo',0x4f604735C1Cf31399c6e711d5962B2B3E0225ad3,'USDGLO',18-- Can easily add more tokens here when needed),-- CTE to get successful distribute calls across multiple blockchainsdistribute_calls AS (SELECT_poolId,call_tx_hash,contract_address,'arbitrum' AS blockchainFROMallo_protocol_v2_arbitrum.Allo_call_distributeWHEREcall_success = TRUEUNION ALLSELECT_poolId,