Query editor
-- account_pool if it is an orca pool woould be the whirlpool ddress-- so how would figure out how much revenue kamino generates for us?-- It would have to be based on the ammount of fees that are compounded over time for each kamino position-- then we would, then if it is a high fee pool, then we would have to see, but I think most of kaminos vaults, open-- pools that don't pass the protocol fee threshold.-- with deposits as (-- SELECT-- call_tx_id-- , date_trunc('minute', call_block_time) as minute-- , account_tokenAMint-- , bytearray_to_bigint (-- bytearray_reverse (-- bytearray_substring (-- from_base58 (call_inner_instructions[1] [1]),-- 2,-- 8-- )-- )-- ) as amountA-- , account_tokenBMint-- , bytearray_to_bigint (-- bytearray_reverse (-- bytearray_substring (-- from_base58 (call_inner_instructions[2] [1]),-- 2,-- 8-- )-- )-- ) as amountB-- FROM kamino_solana.yvaults_call_deposit-- where 1=1-- -- and account_pool = 'AxqAWNZqozhTn2pkDPgpf5kc5DeBuhLKKNWnt3dLrxdi'-- and call_tx_id = '2MFiNDG2tHfkauYrr95U7rgKtBr1Fet6Gj7Fjtgcq1Sa3XdBsnDY2x3HggT8DYuCdqMicjiHA2YNBXGhhioydKiK'-- )-- SELECT-- d.*-- FROM deposits d-- LEFT JOIN prices.minute pm ON pm.blockchain = 'solana' and pm.timestamp = d.minute AND pm.contract_address = d.account_tokenAMint-- SELECT *-- FROM prices.usd-- WHERE-- contract_address = fromBase58('USDSwr9ApdHk5bvJKMjzff41FfuX8bSxdKcR81vTwcA')-- -- blockchain = 'solana'-- limit 5SELECT *FROM prices_solana.minuteWHEREcontract_address = 'USDSwr9ApdHk5bvJKMjzff41FfuX8bSxdKcR81vTwcA'-- blockchain = 'solana'limit 5