Query editor
/*func:"vote"args:{tokenId:"26"_poolVote:["0x2071a39da7450d68e4f4902774203df208860da2" Gauge receiving 60%"0x984c4c9836cb005476d0590684049ebcc978291e" Gauge receiving 40%]_weights:["6,000" which represents 60% of "weight" (which is total voting pwer of "tokenId")"4,000"]}*/withget_now AS (SELECTMAX(block_time) btFROMavalanche_c.transactionsWHEREblock_time > NOW() - interval '7' day),epochs AS (SELECTepochFROM(SELECT DISTINCT(date_diff('week',TIMESTAMP '2023-12-13 00:00',date_trunc('week', dr.evt_block_time - interval '3' day) + interval '10' day)) AS epochFROMpharaoh_avalanche_c.Voter_evt_DistributeReward dr) drGROUP BYepoch),all_pairs AS (SELECT"token0",e.symbol AS token0_symbol,"token1",f.symbol AS token1_symbol,-- stable,false as v3,pair as output_pairFROMpharaoh_avalanche_c.PairFactory_evt_PairCreated AS pLEFT JOIN tokens.erc20 AS e ON e.contract_address = p."token0"LEFT JOIN tokens.erc20 AS f ON f.contract_address = p."token1"WHEREf.blockchain = 'avalanche_c'AND e.blockchain = 'avalanche_c'