Query editor
-- Dune query 8372385: "[ll] Vault per-asset limits" · https://dune.com/queries/8372385-- One row per (vault, supported asset): curator, vault TVL, asset + its issuer, and the curator-set limit.---- WHAT THE LIMIT IS. `LiquidLaneAdapter.setLimit(tokenToRedeem, newLimit)` (onlyOwner = curator) sets-- `limit[tokenToRedeem]`, checked in swap() as-- IAccount(accounts[tokenIn]).totalAssets() + tokenOutToAllocate > limit[tokenIn] -> revert LimitExceeded-- so it caps OUTSTANDING vault exposure to that redeem token (current Account holdings + the payout about-- to be allocated), denominated in the VAULT ASSET. It is revolving, not a cumulative volume quota: as the-- Account redeems with the issuer and proceeds recycle back, headroom frees up.-- * It does NOT bound fills covered by pre-funded inventory (`acquireBalance` of curator/market maker) ---- that path skips the check entirely because it spends no vault capital.-- * It is the innermost of several caps. getMaxAssets() also mins against the vault-level-- UniversalDelegator.limitOf(adapter) - adapter.totalAssets() (one budget for ALL of the adapter's-- assets) and VaultV2.withdrawable(); and if delegator.sweepPending() > 0 vault capacity is 0.-- So this column is a ceiling, not available capacity. Per-asset limits do NOT partition the vault:-- they routinely sum to more than TVL.---- CURATOR (added 2026-08-20): `curatorId` from the Symbiotic API via query_8391975, falling back to the-- vault's own name where the API has no curator for it. The API exposes the curator SLUG here-- (keyrock, mev-capital); /api/v1/entities/curators carries display names if a prettier label is wanted.---- ISSUER (added 2026-08-21): who tokenizes the redeem asset (Midas, Centrifuge, ...) from the hardcoded-- map query_8398481, joined on TICKER. LEFT JOIN on purpose -- a newly wired token that is not in the map-- yet shows a NULL issuer rather than vanishing from the panel. That query also carries the underlying-- asset MANAGER (Fasanara, Janus Henderson, ...), deliberately not selected here.---- BASIS: USD (changed 2026-08-21) = raw limit / 10^asset_decimals * asset market price. SetLimit is-- denominated in the VAULT ASSET, so the raw figure is only USD-equivalent by coincidence on a stablecoin-- vault; multiplying by asset_price keeps the column collateral-agnostic and comparable across vaults ---- it stays correct if an ETH- or BTC-collateralised LL vault ever appears (par would silently emit ETH-- units under a USD label). Consequence: USDC prices at ~0.999977, so a curator's round 100,000 USDC-- setting reads as $99,997.70 rather than $100,000.---- NULL vs 0: NULL = no SetLimit event was ever emitted for the pair, i.e. the asset is whitelisted with no-- vault capacity at all (fillable only from pre-funded inventory). 0 = a limit was explicitly set to zero.-- Columns: vault_name, curator, vault_tvl_usd, asset, issuer, limit_usd. tags: [ll]-- Depends on: query_8179210 (base_ll_tokens), query_8178635 (base_ll_adapters), query_8128675-- (base_vault_state), query_8128650 (base_vaults), query_8391975 (vault names & curators, LiveFetch),-- query_8398481 (asset issuers); reads ethereum.logs, symbiotic_ethereum.vaultfactory_call_create.WITH vault_names AS ( -- on-chain vault name from the factory InitParams (see 8178968 for the layout)SELECTvault,FROM_UTF8(bytearray_substring(data, 33 + name_ptr + 32,CAST(bytearray_to_uint256(bytearray_substring(data, 33 + name_ptr, 32)) AS bigint))) AS vault_labelFROM (SELECT output_entity_ AS vault, data,CAST(bytearray_to_uint256(bytearray_substring(data, 33, 32)) AS bigint) AS name_ptrFROM symbiotic_ethereum.vaultfactory_call_createWHERE contract_address = 0xAEb6bdd95c502390db8f52c8909F703E9Af6a346AND call_success = trueAND version = 3)),limits AS ( -- latest SetLimit per (adapter, token): token in topic1 (indexed), newLimit in dataSELECT adapter, token, limit_rawFROM (SELECT contract_address AS adapter,bytearray_substring(topic1, 13, 20) AS token,bytearray_to_uint256(bytearray_substring(data, 1, 32)) AS limit_raw,ROW_NUMBER() OVER (