Query editor
-- Bitget Onchain DEX Route Volume-- Tracks swaps through Bitget Omnibus addresses (1inch Fusion format)-- Used for: GM-020 (Race 14), GM-024 (Race 15), GM-029 (Stock Reward Vault), GM-034 (HodlerYield)WITH token_addresses AS (SELECT address, symbol, price, 'ethereum' AS blockchainFROM dune.ondo_team.result_ondo_assetsUNION ALLSELECT address_bnb AS address, symbol, price, 'bnb' AS blockchainFROM dune.ondo_team.result_ondo_assets),bitget_omnibus (address, blockchain) AS (VALUES(0x67ccc64e3fc774e65192c2fb52b4b605c55547ef, 'ethereum'),(0xa3a961f860808fb971ac854570f74a11384b6410, 'ethereum'),(0x2409b99d8ae26be02f3ef1ca9b0c1d279eacd408, 'ethereum'),(0xd2e784daa6caada0cd2ad3d0f69d57609d61054c, 'ethereum'),(0x85e6fb3c048f78e417b3c49b31688afcc97217f7, 'ethereum'),(0xd3833b5944894a7dd2460f4c6384fd09e6eb35b4, 'ethereum'),(0x95f76ec1492083eeb65a9f9222ff0b4430455ace, 'ethereum'),(0x4adbd6399acbc5c059f8f8ae580448f431f63d01, 'ethereum'),(0x7733c074889aeb4ac26de3be8122f663fdc8947f, 'ethereum'),(0xa3c09654498652ee1006548259abaa7fd85037ab, 'ethereum'),(0xa3328ebbb14b95ce760effd11d1914b905d97ac2, 'ethereum'),(0x027c368a8e6720f501d99f78d2630e56ca0a6878, 'ethereum'),(0xd652f4a38575997029142a31d61728e3cc5813fe, 'ethereum'),(0x78edaae7267fa4704f6d74b8f40ba5d6c73a484d, 'ethereum'),(0x0c9bf33a6f4496843a41a90bf66ce3c6fe856e25, 'ethereum'),(0x01ffdd7a6513fba93ff0d4febfe7679746227777, 'ethereum'),(0xdf32330f807ce33e1549e22a640e2d6b81d2ebad, 'ethereum'),(0xb347abf310504e239c4a96d7fab6d7e55a73e31c, 'ethereum'),(0x789363becc4cc4982f1eda3de9ec82cb693e3af1, 'ethereum'),(0xce12d7dd9cb5ce30994465e2085ceb727d2a37ce, 'ethereum'),(0x9019809cb3ffbc41ff8b3839de5493005678eeb4, 'bnb'),(0xbb964dfe9f23ae9a75cbb9585faa51d62982cc23, 'bnb'),(0xc0a5058258be5764fd4ad71fe4e32bdc8ae27e0a, 'bnb'),(0x6fbc87bb02f61c4e3909f9f6599e149841370f78, 'bnb'),(0x2177a30609500b91f66e8c322b3304d99d83ea33, 'bnb'),(0xb426e20bcb7121d2a8130d257cfceec66d8e9159, 'bnb')),logs AS (SELECT block_date, contract_address, topic0, topic2, data, tx_hash, 'ethereum' AS blockchainFROM ethereum.logsWHERE block_date >= DATE '{{start_date}}'AND block_date <= DATE '{{end_date}}'AND topic0 = 0xdfe4debbd7bc491e9db43820916e30a4ef9490863fc22b1e79e2f76013901035UNION ALLSELECT block_date, contract_address, topic0, topic2, data, tx_hash, 'bnb' AS blockchainFROM bnb.logsWHERE block_date >= DATE '{{start_date}}'AND block_date <= DATE '{{end_date}}'AND topic0 = 0xdfe4debbd7bc491e9db43820916e30a4ef9490863fc22b1e79e2f76013901035),transfer_logs AS (SELECT tx_hash, contract_address, topic0, topic2, 'ethereum' AS blockchain