Query editor
-- Query: kpk | Symbiotic | USDC RWA Liquidity | Liquid Lane Activity-- Dune: https://dune.com/queries/8286791-- Version: 10-- One row per Liquid Lane fill (DoSwap event) on the KPK USDC RWA Liquidity adapter.---- Scan floor 2026-07-01: the Liquid Lane adapter 0x97C0BAef... was created 2026-07-27,-- so no earlier transfer can match. Lower it if an older address is added.---- LL adapter (0x97C0BAefCF688A8389108a0893144ae0a1408B3a) is an EIP-1967 proxy for-- LiquidLaneAdapter (0xc41b9c2300E444d7031EBDe8aE24e40C268FaE91).-- event DoSwap(Swap swap), Swap = { address recipient; address tokenIn;-- uint256 amountIn; uint256 amountOut; }-- topic0 = 0x4152adf3390c14101d81fa2579ca39f6cddb604f4245a525490a777afafcaa1e-- The struct is non-indexed and ABI-encodes as 4 contiguous 32-byte words in declaration-- order: recipient word 1, tokenIn word 2 (address right-aligned, so offset 45), amountIn-- word 3 (offset 65), amountOut word 4 (offset 97). Offsets, token and Account addresses-- and decimals match Symbiotic's own base_ll_fills / base_ll_tokens queries-- (symbiotic/symbiotic-liquid-lane dashboard).---- Each RWA token has its own settlement "Account" contract deployed by the adapter-- (`mapping(address tokenToRedeem => address account) public accounts`); the fill price-- comes from IOracle(IAccount(accounts[token]).ORACLE()).getPrice(), selector 0x98d5fdca.-- deJAAA's Account is 0x6bA583CE..., not the deJAAA token contract. JAAA and JTRSY are-- 6-decimal tokens, the rest are 18. Symbols follow Symbiotic's canonical casing.---- nav_price: several getPrice() calls can land in the same tx with identical output, so-- the oracle join is keyed on tx_hash and collapsed to one row per tx; joining on a-- truncated timestamp fans one fill out into duplicate rows.---- settled means "redeemed back to USDC", not "trade executed" (a row existing here-- already means the fill executed). Redemption proceeds route holding account -> LL-- adapter -> vault in one tx (the vault's Push(assets, owner = LL adapter) event fires on-- the last leg), so settlement is detected as USDC from the token's Account to the LL-- adapter after the fill, per token via the Account address.WITH ll_fills AS (SELECTblock_time,tx_hash,bytearray_to_uint256(bytearray_substring(data, 1, 32)) AS recipient_raw,bytearray_substring(data, 33 + 12, 20) AS token_raw, -- RWA token address (right-aligned in the 32-byte word)bytearray_to_uint256(bytearray_substring(data, 65, 32)) AS amount_in_raw, -- RWA token amountbytearray_to_uint256(bytearray_substring(data, 97, 32)) AS amount_out_raw -- USDC paid by vaultFROM ethereum.logsWHERE contract_address = 0x97C0BAefCF688A8389108a0893144ae0a1408B3a -- LL adapterAND topic0 = 0x4152adf3390c14101d81fa2579ca39f6cddb604f4245a525490a777afafcaa1e -- DoSwapAND block_time >= TIMESTAMP '2026-07-01'),-- token_address, decimals and each token's IAccount settlement contract (see header).rwa_tokens AS (SELECT * FROM (VALUES('JAAA', 0x5A0F93D040dE44e78F251b03c43BE9CF317DcF64, 6, 0x8a35D8E6F728C570cD9fe236768e903AeeB92879),('deJAAA', 0xAAA0008C8CF3A7Dca931adaF04336A5D808C82Cc, 18, 0x6bA583CEC99B595a8f72C14f1eC9891B80Dc9152),('JTRSY', 0x8c213eE79581Ff4984583C6a801e5263418C4B86, 6, 0xd68335cE59e200A5c8d94683a3b7E6D5DFaA877a),('deJTRSY', 0xA6233014B9b7AAA74f38fa1977fFC7A89642DC72, 18, 0x131e5b5bc50C30c56D6784E0004B2B30F0da1146),('mF-ONE', 0x238A700eD6165261Cf8B2E544bA797Bc11E466bA, 18, 0x2A55A6cE07cC34E1A8714a5BBc8F47A3A7af347A),('mGLOBAL', 0x7433806912EAe67919e66aeA853D46fA0aEf98a8, 18, 0x99E123eaEfEe2Ded725f2416839b5Abc02022595),('HYBOND', 0x1204371Ac0e5176F4b8C5b2F16C2beC551B6fC1a, 18, 0xd911E3569B4980947A75Cf5Be11DC423a4fB71b6)