Query editor
WITH arbitrum_response AS (SELECT json_parse(http_post('https://api.goldsky.com/api/public/project_cmtl4l9r20lgu01wh6l4la8uf/subgraphs/venzo-subgraph-arbitrum/0.2.8/gn','{"query": "query($ids: [Bytes!]!) { vaults(where: {id_in: $ids}) { id latestSharePrice totalSupply } }","variables": {"ids": ["0x2bdf0ed5dae7c37b314ec1f7dcf401bb52ea967a","0x9519217e8926a2b39bacd2d6ec3efd02503595e2","0x99d0d52b75b74fdfc3ac6f0536aa8ad959f82e76","0xd302e7971002891529ded41a3014f7ebda1eee2a"]}}',ARRAY['Content-Type: application/json'])) AS body),arbitrum_tvls AS (SELECTjson_extract_scalar(vault, '$.id') AS vault_id,CAST(json_extract_scalar(vault, '$.latestSharePrice') AS DOUBLE) * CAST(json_extract_scalar(vault, '$.totalSupply') AS DOUBLE) AS tvl_usdFROM arbitrum_responseCROSS JOIN UNNEST(CAST(json_extract(body, '$.data.vaults') AS ARRAY(JSON))) AS t(vault)),base_response AS (SELECT json_parse(http_post('https://api.goldsky.com/api/public/project_cmtl4l9r20lgu01wh6l4la8uf/subgraphs/venzo-subgraph-base/0.2.8/gn','{"query": "query($ids: [Bytes!]!) { vaults(where: {id_in: $ids}) { id latestSharePrice totalSupply } }","variables": {"ids": ["0x1896e36b8f3a9b36bf958962104a0695274a5aa0"]}}',ARRAY['Content-Type: application/json'])) AS body),base_tvls AS (SELECTjson_extract_scalar(vault, '$.id') AS vault_id,CAST(json_extract_scalar(vault, '$.latestSharePrice') AS DOUBLE) * CAST(json_extract_scalar(vault, '$.totalSupply') AS DOUBLE) AS tvl_usd