{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pigi-finance/json-schema/pigi-finance-concentration-schema.json",
  "title": "Concentration",
  "description": "Holder concentration of the vault's share-token map, computed by the scanner at the block the scan completed. Shares are fractions in [0, 1].",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pigi-finance-openapi.yml#/components/schemas/Concentration",
  "type": "object",
  "properties": {
    "block_number": {
      "type": "integer"
    },
    "computed_at": {
      "type": "string"
    },
    "holders": {
      "type": "integer",
      "description": "Addresses with a positive balance."
    },
    "total_balance": {
      "type": "number",
      "description": "Sum of positive balances, raw share-token units (loses precision above 2^53)."
    },
    "decimals": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Share-token decimals; null for Uniswap liquidity or when unreadable."
    },
    "top1_share": {
      "type": "number",
      "description": "Share held by the largest address."
    },
    "top5_share": {
      "type": "number"
    },
    "top10_share": {
      "type": "number"
    },
    "hhi": {
      "type": "number",
      "description": "Herfindahl-Hirschman index, sum of squared shares; 1 = a single holder."
    },
    "gini": {
      "type": "number",
      "description": "Gini coefficient of positive balances; 0 = all holders equal."
    },
    "holders_gt_1pct": {
      "type": "integer",
      "description": "Addresses holding more than 1% of the total."
    },
    "deposit_events": {
      "type": "integer",
      "description": "Deposit events over the indexed life — the same figure as Vault.deposit_count."
    },
    "active_addresses_30d": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Distinct depositors in the trailing 30 days — the same figure as Vault.active_addresses_30d."
    },
    "window_start_block": {
      "type": [
        "integer",
        "null"
      ],
      "description": "First block of that 30-day window."
    }
  }
}