// data.jsx — All mock data for the Ascend Client prototype, in one place.
// Each block is annotated to show which Renée note its naming/copy addresses.

// ============================================================================
// Facilities (canonical list)
// ============================================================================
const ALL_FACILITIES = [
  {
    id: "usdc-core",
    name: "USDC core facility",
    tranche: "Senior tranche",
    region: "Global",
    statusVariant: "active", statusLabel: "Active",
    eligibility: "eligible",
    rate: "5.5%", maxLtv: "67%", utilization: "60.0%",
    settlement: ["USDC", "USDT"],
    collateral: [
      { ticker: "ABN", name: "Apollo Bond Note" },
      { ticker: "SNG", name: "Senior Note Group" },
      { ticker: "FMM", name: "Frontier MMF" },
    ],
  },
  {
    id: "horizon-yield",
    name: "Horizon yield facility",
    tranche: "Mezzanine",
    region: "Europe",
    statusVariant: "paused", statusLabel: "Paused",
    eligibility: "not-eligible",
    notEligibleReason: "Jurisdiction filter: United States not permitted",
    rate: "7.8%", maxLtv: "65%", utilization: "50.0%",
    settlement: ["USDT"],
    collateral: [{ ticker: "FMM" }, { ticker: "SBC" }, { ticker: "APX" }],
  },
  {
    id: "prime-institutional",
    name: "Prime institutional facility",
    tranche: "Senior · institutional",
    region: "Global",
    statusVariant: "active", statusLabel: "Active",
    eligibility: "open",
    rate: "4.0%", maxLtv: "85%", utilization: "72.0%",
    settlement: ["USDC"],
    collateral: [{ ticker: "ABN" }, { ticker: "SNG" }],
  },
  {
    id: "zenith-multi",
    name: "Zenith multi facility",
    tranche: "Balanced",
    region: "Global",
    statusVariant: "paused", statusLabel: "Paused",
    eligibility: "open",
    rate: "5.8%", maxLtv: "71%", utilization: "0.0%",
    settlement: ["USDC", "USDT"],
    collateral: [{ ticker: "FMM" }, { ticker: "MSM" }, { ticker: "SBC" }],
  },
  {
    id: "abn-yield",
    name: "ABN yield facility",
    tranche: "Senior tranche",
    region: "Global",
    statusVariant: "active", statusLabel: "Active",
    eligibility: "open",
    rate: "4.2%", maxLtv: "77%", utilization: "40.0%",
    settlement: ["USDC"],
    collateral: [{ ticker: "ABN" }, { ticker: "APX" }],
  },
  {
    id: "sng-stable",
    name: "SNG stable facility",
    tranche: "Stable income",
    region: "Europe",
    statusVariant: "active", statusLabel: "Active",
    eligibility: "eligible",
    rate: "3.8%", maxLtv: "91%", utilization: "87.5%",
    settlement: ["USDC", "USDT", "EURC"],
    collateral: [{ ticker: "SNG" }, { ticker: "MSM" }],
  },
  {
    id: "institutional-abn",
    name: "Institutional ABN prime",
    tranche: "Premium",
    region: "Global",
    statusVariant: "active", statusLabel: "Active",
    eligibility: "partial",
    rate: "12.5%", maxLtv: "50%", utilization: "32.0%",
    settlement: ["USD1", "USDC"],
    collateral: [{ ticker: "APX" }, { ticker: "SBC" }],
  },
  {
    id: "fmm-reserve",
    name: "FMM reserve facility",
    tranche: "Reserve",
    region: "Global",
    statusVariant: "active", statusLabel: "Active",
    eligibility: "open",
    rate: "5.0%", maxLtv: "72%", utilization: "54.0%",
    settlement: ["USDC", "USDT"],
    collateral: [{ ticker: "FMM" }, { ticker: "ABN" }],
  },
  {
    id: "msm-income",
    name: "MSM income facility",
    tranche: "Income",
    region: "Europe",
    statusVariant: "active", statusLabel: "Active",
    eligibility: "open",
    rate: "6.5%", maxLtv: "68%", utilization: "44.0%",
    settlement: ["USDT", "EURC"],
    collateral: [{ ticker: "MSM" }, { ticker: "SNG" }],
  },
  {
    id: "sbc-capital",
    name: "SBC capital facility",
    tranche: "Capital",
    region: "Global",
    statusVariant: "active", statusLabel: "Active",
    eligibility: "open",
    rate: "8.3%", maxLtv: "60%", utilization: "38.0%",
    settlement: ["USD1"],
    collateral: [{ ticker: "SBC" }, { ticker: "FMM" }],
  },
  {
    id: "apx-aggressive",
    name: "APX aggressive growth",
    tranche: "Growth",
    region: "Global",
    statusVariant: "active", statusLabel: "Active",
    eligibility: "eligible",
    rate: "9.7%", maxLtv: "55%", utilization: "29.0%",
    settlement: ["USDC"],
    collateral: [{ ticker: "APX" }, { ticker: "ABN" }],
  },
  {
    id: "high-risk-alt",
    name: "High-risk alt facility",
    tranche: "Frontier",
    region: "Global",
    statusVariant: "active", statusLabel: "Active",
    eligibility: "partial",
    rate: "9.8%", maxLtv: "55%", utilization: "62.0%",
    settlement: ["USDC", "USDT"],
    collateral: [{ ticker: "SBC" }, { ticker: "USDC" }],
  },
];

// ============================================================================
// Portfolio page
// ============================================================================
const PORTFOLIO_DATA = {
  netPosition: {
    value: "$7,966,518",
    sub: "Collateral + lending − borrowed",
    trend: "+$9,147 earned · 30d",
  },
  totalCollateral: "$19.6M",
  totalBorrowed:   "$12.1M",
  lendingValue:    "$429.5K",
  lendingSub:      "+$9,147 earned · 30d",
  minHF: {
    value: "1.39",
    // C-6 fix: never a naked red number. Plain-English context line.
    sub: "Across 3 at-risk accounts · ma-1042 closest to liquidation",
  },
  balances: [
    { ticker: "ABN",  balance: "2.5" },
    { ticker: "SNG",  balance: "10,000" },
    { ticker: "FMM",  balance: "500" },
    { ticker: "APX",  balance: "0" },
    { ticker: "MSM",  balance: "8,000" },
    { ticker: "SBC",  balance: "12,500" },
    { ticker: "USDC", balance: "50,000" },
    { ticker: "USDT", balance: "10,000" },
    { ticker: "DAI",  balance: "8,000" },
  ],
  // C-2: distinguishable names — no 6× "USDC Lending Pool"
  lendingPositions: [
    { name: "USDC core · senior",      tranche: "Senior tranche",    settles: "USDC", apy: "4.7%", currentValue: "$43,023", earnedYield: "$487",   deposited: "$42,536", tvl: "$3.9M" },
    { name: "Prime institutional",     tranche: "Senior tranche",    settles: "USDC", apy: "3.9%", currentValue: "$8,650",  earnedYield: "$95",    deposited: "$8,555",  tvl: "$1.0M" },
    { name: "ABN yield · mezz",        tranche: "Mezzanine",          settles: "USDC", apy: "9.0%", currentValue: "$88,623", earnedYield: "$1,974", deposited: "$86,649", tvl: "$5.8M" },
    { name: "SNG stable income",       tranche: "Stable income",      settles: "USDC", apy: "8.3%", currentValue: "$82,091", earnedYield: "$1,520", deposited: "$79,535", tvl: "$15.4M" },
    { name: "USD1 short duration",     tranche: "Short duration",     settles: "USD1", apy: "7.8%", currentValue: "$33,275", earnedYield: "$684",   deposited: "$32,820", tvl: "$0.5M" },
    { name: "FMM reserve · senior",    tranche: "Reserve",            settles: "USDC", apy: "6.2%", currentValue: "$43,240", earnedYield: "$354",   deposited: "$42,886", tvl: "$0.4M" },
    { name: "MSM income · EU",         tranche: "Income",             settles: "USDT", apy: "6.5%", currentValue: "$22,150", earnedYield: "$210",   deposited: "$21,940", tvl: "$2.1M" },
    { name: "Horizon yield · paused",  tranche: "Mezzanine",          settles: "USDT", apy: "7.8%", currentValue: "$5,820",  earnedYield: "$0",     deposited: "$5,820",  tvl: "$0.8M" },
  ],
  // C-2: distinguishable facility names — no 6× "USDC Core Facility"
  facilities: [
    { id: "usdc-core",        name: "USDC core facility",         status: "healthy", statusLabel: "Healthy", collateralTokens: ["ABN", "FMM", "USDC"], collateral: "$111,477", borrowed: "$31,652",  hf: "3.52",  rate: "7.7%" },
    { id: "abn-yield",        name: "ABN yield facility",         status: "healthy", statusLabel: "Healthy", collateralTokens: ["SNG", "USDC", "USD1"], collateral: "$151,140", borrowed: "$58,900", hf: "2.57",  rate: "9.8%" },
    { id: "sng-stable",       name: "SNG stable facility",        status: "healthy", statusLabel: "Healthy", collateralTokens: ["APX", "MSM", "USDC"], collateral: "$35,012",  borrowed: "$2,802",  hf: "12.50", rate: "3.6%" },
    { id: "high-risk-alt",    name: "High-risk alt facility",     status: "at-risk", statusLabel: "At risk", collateralTokens: ["SBC", "USDC"],         collateral: "$151,257", borrowed: "$117,986", hf: "1.28", rate: "9.8%" },
    { id: "prime-credit",     name: "Prime credit facility",      status: "default", statusLabel: "Liquidated", collateralTokens: ["ABN", "SNG", "USDT", "USD1"], collateral: "$118,588", borrowed: "$71,840", hf: "0.00", rate: "8.1%" },
    { id: "capital-lending",  name: "Capital lending pool",        status: "healthy", statusLabel: "Healthy", collateralTokens: ["FMM", "APX", "USD1"], collateral: "$131,752", borrowed: "$44,533", hf: "2.96",  rate: "8.8%" },
  ],
};

// ============================================================================
// Credit Facilities list page
// ============================================================================
const FACILITIES_DATA = {
  kpi: {
    total: "12",
    access: "8",
    avgRate: "6.3%",
    avgUtil: "52.1%",
  },
  facilities: ALL_FACILITIES,
};

// ============================================================================
// Facility Access page
// ============================================================================
const ACCESS_IDENTITY = {
  onchainId: "0x1b75eb45f7c2bd9013f8a92e1c43d8c0e5912a4f3",
  registry: "Ascend default registry",
  claims: [
    { label: "KYC verified",                issuer: "ComplyAdvantage",     classification: "standard" },
    { label: "Accredited investor",         issuer: "Northstar Capital LP", classification: "standard" },
    // C-5: no "Ascend Governance" — there is no DAO.
    { label: "Ascend program enrollment",   issuer: "Ascend Protocol",      classification: "ascend-specific" },
  ],
  claimsVerified: 3,
};

const ACCESS_KPI = {
  total: "12",
  eligible: "10",
  open: "8",
  notEligible: 2,
};

const ACCESS_ELIGIBILITY = [
  {
    name: "USDC core facility", region: "Global", eligibility: "eligible",
    settlement: ["USDC", "USDT"], rate: "5.5%", ltv: "67%",
    requirements: [
      { label: "KYC verified",        met: true },
      { label: "Partner membership",  met: true },
    ],
  },
  {
    name: "Horizon yield facility", region: "Europe", eligibility: "not-eligible",
    settlement: ["USDT"], rate: "7.8%", ltv: "65%",
    requirements: [
      { label: "EU resident", met: false },
    ],
  },
  {
    name: "Prime institutional facility", region: "Global", eligibility: "open",
    settlement: ["USDC"], rate: "4.0%", ltv: "85%",
    requirements: [],
  },
  {
    name: "Zenith multi facility", region: "Global", eligibility: "open",
    settlement: ["USDC", "USDT"], rate: "5.8%", ltv: "71%",
    requirements: [],
  },
  {
    name: "ABN yield facility", region: "Global", eligibility: "open",
    settlement: ["USDC"], rate: "4.2%", ltv: "77%",
    requirements: [],
  },
  {
    name: "SNG stable facility", region: "Europe", eligibility: "eligible",
    settlement: ["USDC", "USDT", "EURC"], rate: "3.8%", ltv: "91%",
    requirements: [
      { label: "Corporate email verified", met: true },
    ],
  },
  {
    name: "Institutional ABN prime", region: "Global", eligibility: "partial",
    settlement: ["USD1", "USDC"], rate: "12.5%", ltv: "50%",
    requirements: [
      { label: "Qualified premium investor", met: false },
      { label: "Corporate email verified",    met: true },
    ],
  },
  {
    name: "FMM reserve facility", region: "Global", eligibility: "open",
    settlement: ["USDC", "USDT"], rate: "5.0%", ltv: "72%",
    requirements: [],
  },
  {
    name: "MSM income facility", region: "Europe", eligibility: "open",
    settlement: ["USDT", "EURC"], rate: "6.5%", ltv: "68%",
    requirements: [],
  },
  {
    name: "SBC capital facility", region: "Global", eligibility: "open",
    settlement: ["USD1"], rate: "8.3%", ltv: "60%",
    requirements: [],
  },
];

// ============================================================================
// Facility Detail page (carry over from v2)
// ============================================================================
const CURRENT_FACILITY = {
  name: "USDC core facility",
  status: "Active",
  statusVariant: "active",
  subtitle: "Senior tranche · Settles in USDC · 12 facilities issued · Ascend default registry",
  collateral: [
    { ticker: "ABN", name: "Apollo Bond Note" },
    { ticker: "SNG", name: "Senior Note Group" },
    { ticker: "FMM", name: "Frontier MMF" },
  ],
  settlement: [{ ticker: "USDC", name: "USD Coin" }],
};

const TERMS = {
  rate: "5.5%", maxLtv: "67%", liquidationThreshold: "150%",
  utilization: "60.0%", utilizationPct: 60,
  borrowed: "$7,400,000", available: "$4,933,333", totalCap: "$12,333,333",
  updatedAt: "2 min ago",
};

const IDENTITY_FULL = {
  onchainId: "0x1b75eb45f7c2bd9013f8a92e1c43d8c0e5912a4f3",
  registry: "Ascend default registry",
  claimsRequired: 3, claimsMissing: 0, verdict: "eligible",
  claims: [
    { status: "verified", label: "KYC verified",               issuer: "ComplyAdvantage",     issuerAddress: "0xA5cE12d5c6CF3Cf02BBe3eE7a9F4e0c61fABC123A", expiry: "Jan 2027", classification: "standard",        topicId: "1 · KYC",            signature: "0x8f…3a91" },
    { status: "verified", label: "Accredited investor",        issuer: "Northstar Capital LP", issuerAddress: "0x77b2De9E6F5cC4218a83Ad7cB2eF2bC0E18CE99e", expiry: "Aug 2026", classification: "standard",        topicId: "7 · Accreditation",  signature: "0x21…9d4f" },
    // C-5: "Ascend Protocol" (the immutable system), never "Ascend Governance" (no DAO).
    { status: "verified", label: "Ascend program enrollment",   issuer: "Ascend Protocol",      issuerAddress: "0xA5cE03ec4cF1f04bB94EAB7e5fE43d27C0CdABcD", expiry: "—",        classification: "ascend-specific", topicId: "1042 · Ascend program", signature: "0xF4…77b8" },
  ],
};
const IDENTITY_MISSING  = { ...IDENTITY_FULL, claimsMissing: 1, verdict: "missing", claims: IDENTITY_FULL.claims.map((c, i) => i === 2 ? { ...c, status: "missing" } : c) };
const IDENTITY_PENDING  = { ...IDENTITY_FULL, claimsMissing: 1, verdict: "missing", claims: IDENTITY_FULL.claims.map((c, i) => i === 1 ? { ...c, status: "pending" } : c) };
const IDENTITY_JURIS    = { ...IDENTITY_FULL, verdict: "jurisdiction" };

const ACCOUNTS = [
  { id: "ma-1005", status: "healthy", statusLabel: "Healthy", collateral: "$412,200", borrowed: "$190,540", hf: "2.18", opened: "Apr 2025", lastAction: "Borrow · 2d ago" },
  { id: "ma-1042", status: "at-risk", statusLabel: "At risk", collateral: "$238,878", borrowed: "$185,903", hf: "1.39", opened: "Sep 2024", lastAction: "Deposit · 18h ago" },
  { id: "ma-1078", status: "healthy", statusLabel: "Healthy", collateral: "$104,500", borrowed: "$22,000",  hf: "3.42", opened: "Feb 2026", lastAction: "Repay · 6h ago" },
];

const POLICY = {
  registry: "Ascend default registry",
  jurisdiction: "United States",
  issuerName: "Ascend compliance",
  issuerAddress: "0xA5cE03ec4cF1f04bB94EAB7e5fE43d27C0CdABcD",
  moduleName: "Strict RWA compliance",  // C-5 rename from "Aggressive"
  moduleAddress: "0xCmp2eF9aB304C9b21AeF814b22eCB44d6dDF5RWA",
  sharedCount: 4,
  gates: [
    { label: "Max transactions", value: "15 / 7d",    icon: "activity" },
    { label: "Borrow size",      value: "$25K – $25M", icon: "borrow" },
    { label: "Operating hours",  value: "24/7 UTC",    icon: "clock" },
    { label: "Cool-down",        value: "12h post-mint", icon: "refresh" },
  ],
};

// ============================================================================
// Margin Accounts list page
// ============================================================================
// Renée lens: C-2 distinguishable labels (ma-id + facility name, never a wall
// of identical rows); C-4 hairline KPI strip; C-6 the min-health-factor "0.00"
// gets a plain-English context line so it's never a naked red number.
const MARGIN_ACCOUNTS_DATA = {
  kpi: {
    equity: "$556,583",
    equitySub: "Collateral − borrowed across 7 accounts",
    totalCollateral: "$1,192,187",
    totalBorrowed: "$635,604",
    accounts: "7",
    accountsSub: "2 at risk · 1 liquidated",
    minHF: "0.00",
    minHFSub: "ma-1130 liquidated · ma-1112 lowest active at 1.28",
  },
  accounts: [
    { id: "ma-1005", facility: "USDC core facility",      facilityId: "usdc-core",     status: "healthy", statusLabel: "Healthy", collateral: "$412,200", borrowed: "$190,540", available: "$85,420",  ltv: "46%", hf: "2.18",  opened: "Apr 2025", lastAction: "Borrow · 2d ago" },
    { id: "ma-1042", facility: "USDC core facility",      facilityId: "usdc-core",     status: "at-risk", statusLabel: "At risk", collateral: "$238,878", borrowed: "$185,903", available: "$9,180",   ltv: "78%", hf: "1.39",  opened: "Sep 2024", lastAction: "Deposit · 18h ago" },
    { id: "ma-1078", facility: "ABN yield facility",      facilityId: "abn-yield",     status: "healthy", statusLabel: "Healthy", collateral: "$104,500", borrowed: "$22,000",  available: "$58,365",  ltv: "21%", hf: "3.42",  opened: "Feb 2026", lastAction: "Repay · 6h ago" },
    { id: "ma-1090", facility: "SNG stable facility",     facilityId: "sng-stable",    status: "healthy", statusLabel: "Healthy", collateral: "$35,012",  borrowed: "$2,802",   available: "$28,909",  ltv: "8%",  hf: "12.50", opened: "Nov 2025", lastAction: "Deposit · 1w ago" },
    { id: "ma-1112", facility: "High-risk alt facility",  facilityId: "high-risk-alt", status: "at-risk", statusLabel: "At risk", collateral: "$151,257", borrowed: "$117,986", available: "$4,160",   ltv: "78%", hf: "1.28",  opened: "Jan 2026", lastAction: "Borrow · 4d ago" },
    { id: "ma-1130", facility: "Prime credit facility",   facilityId: "prime-credit",  status: "default", statusLabel: "Liquidated", collateral: "$118,588", borrowed: "$71,840", available: "$0", ltv: "—", hf: "0.00", opened: "Aug 2024", lastAction: "Liquidated · 3d ago" },
    { id: "ma-1145", facility: "Capital lending pool",    facilityId: "capital-lending", status: "healthy", statusLabel: "Healthy", collateral: "$131,752", borrowed: "$44,533", available: "$42,710", ltv: "34%", hf: "2.96",  opened: "Mar 2025", lastAction: "Withdraw · 5h ago" },
  ],
};

Object.assign(window, { MARGIN_ACCOUNTS_DATA });

// ============================================================================
// Transaction History page
// ============================================================================
// Renée lens: C-2 distinguishable rows (each tx names its type + facility +
// account, never a wall of identical entries); C-5 plain-English, sentence
// case; colour used sparingly (green only for yield, red only for liquidation
// / failure) so the list reads calm.
const TX_HISTORY = {
  count: 142,
  pending: 1,
  groups: ["Today", "Yesterday", "Thu, May 28", "Wed, May 27", "Tue, May 26"],
  items: [
    { group: "Today", type: "repay",   icon: "repay",    label: "Repaid borrow",      facility: "USDC core facility",  account: "ma-1005", amount: "$25,000", token: "USDC", tone: "neutral", status: "confirmed", time: "2:41 PM", hash: "0x8f2c4e91ab3d77c0e5912a4f3bd9013f8a92e1c4", block: "21,904,118", fee: "$2.14", gate: "Passed · within 7-day cap" },
    { group: "Today", type: "borrow",  icon: "borrow",   label: "Borrowed",           facility: "High-risk alt facility", account: "ma-1112", amount: "$50,000", token: "USDC", tone: "neutral", status: "pending",   time: "1:12 PM", hash: "0x2174f9ab304c9b21aef814b22ecb44d6ddf5a1c", block: "—", fee: "~$3.80", gate: "Evaluating compliance gates…" },
    { group: "Today", type: "deposit", icon: "deposit",  label: "Deposited collateral", facility: "USDC core facility", account: "ma-1042", amount: "2.50", token: "ABN", tone: "neutral", status: "confirmed", time: "11:03 AM", hash: "0xF477b8a5cE03ec4cF1f04bB94EAB7e5fE43d27C0", block: "21,903,402", fee: "$1.92", gate: "Passed · transfer rule ok" },

    { group: "Yesterday", type: "withdraw", icon: "withdraw", label: "Withdrew collateral", facility: "ABN yield facility", account: "ma-1078", amount: "1.00", token: "ABN", tone: "neutral", status: "confirmed", time: "6:20 PM", hash: "0x9c2d77b2De9E6F5cC4218a83Ad7cB2eF2bC0E18C", block: "21,898,771", fee: "$2.05", gate: "Passed · health factor ok post-withdraw" },
    { group: "Yesterday", type: "supply",   icon: "facility", label: "Supplied to lending pool", facility: "SNG stable lending", account: null, amount: "$40,000", token: "USDC", tone: "neutral", status: "confirmed", time: "3:48 PM", hash: "0x779e18CE99eA5cE12d5c6CF3Cf02BBe3eE7a9F4e", block: "21,898,002", fee: "$1.74", gate: "Passed" },
    { group: "Yesterday", type: "borrow",   icon: "borrow",  label: "Borrow failed", facility: "ABN yield facility", account: "ma-1078", amount: "$30,000", token: "USDC", tone: "danger", status: "failed", time: "9:15 AM", hash: "0x1bf375eb45f7c2bd9013f8a92e1c43d8c0e5912a", block: "—", fee: "$0.41", gate: "Blocked · exceeds 7-day max-transaction cap" },

    { group: "Thu, May 28", type: "yield",  icon: "refresh", label: "Yield claimed", facility: "ABN yield lending", account: null, amount: "+$1,974", token: "USDC", tone: "success", status: "confirmed", time: "5:00 PM", hash: "0xA5cD03ec4cF1f04bB94EAB7e5fE43d27C0CdAB12", block: "21,889,540", fee: "$1.20", gate: "Passed" },
    { group: "Thu, May 28", type: "repay",  icon: "repay",   label: "Repaid borrow", facility: "Capital lending pool", account: "ma-1145", amount: "$12,000", token: "USDC", tone: "neutral", status: "confirmed", time: "2:30 PM", hash: "0xCmWA2eF9aB304C9b21AeF814b22eCB44d6dDF5a3", block: "21,889,002", fee: "$1.88", gate: "Passed" },

    { group: "Wed, May 27", type: "liquidation", icon: "alert", label: "Position liquidated", facility: "Prime credit facility", account: "ma-1130", amount: "−$71,840", token: "USDC", tone: "danger", status: "confirmed", time: "8:05 AM", hash: "0xa42c26d5c6CF3Cf02BBe3eE7a9F4e0c61fABC123", block: "21,880,114", fee: "$4.62", gate: "Health factor fell below 1.00" },
    { group: "Wed, May 27", type: "claim", icon: "shieldCheck", label: "Claim renewed", facility: "KYC verified · ComplyAdvantage", account: null, amount: null, token: null, tone: "neutral", status: "confirmed", time: "7:00 AM", hash: "0x5e12d5c6CF3Cf02BBe3eE7a9F4e0c61fABC123A5", block: "21,879,900", fee: "$0.88", gate: "Issuer signature verified" },

    { group: "Tue, May 26", type: "deposit", icon: "deposit", label: "Deposited collateral", facility: "Prime institutional facility", account: "ma-1005", amount: "$100,000", token: "USDC", tone: "neutral", status: "confirmed", time: "4:12 PM", hash: "0x33ec4cF1f04bB94EAB7e5fE43d27C0CdAB12a5cE", block: "21,871,330", fee: "$2.30", gate: "Passed" },
    { group: "Tue, May 26", type: "borrow",  icon: "borrow",  label: "Borrowed", facility: "USDC core facility", account: "ma-1005", amount: "$25,000", token: "USDC", tone: "neutral", status: "confirmed", time: "10:48 AM", hash: "0x90ab304C9b21AeF814b22eCB44d6dDF5a3eF9aB3", block: "21,870,021", fee: "$3.05", gate: "Passed · within borrow-size range" },
  ],
};

Object.assign(window, { TX_HISTORY });

// ============================================================================
// Profile page
// ============================================================================
const PROFILE_IDENTITY = {
  displayName: "Maren Reilly",
  role: "Investor · Northstar Capital",
  walletProvider: "MetaMask",
  walletAddress: "0x1b75eb45f7c2bd9013f8a92e1c43d8c0e5912a4f3",
  onchainId:     "0x9CdAB02ec4cF1f04bB94EAB7e5fE43d27C0CdABcD",
  network: "Ethereum mainnet",
  claims: [
    { status: "verified", label: "KYC verified",            issuer: "ComplyAdvantage",      expiry: "Jan 2027", classification: "standard" },
    { status: "verified", label: "Accredited investor",     issuer: "Northstar Capital LP", expiry: "Aug 2026", classification: "standard" },
    { status: "verified", label: "Corporate email verified", issuer: "Ascend Protocol",      expiry: "—",        classification: "ascend-specific" },
    { status: "pending",  label: "Qualified premium investor", issuer: "Apex Capital Verifiers", expiry: "—",   classification: "standard" },
  ],
};

const PROFILE_TOKENS = [
  { ticker: "USDC", name: "USD Coin",        balance: "50,000.00", usd: "$50,000" },
  { ticker: "USDT", name: "Tether USD",      balance: "10,000.00", usd: "$10,000" },
  { ticker: "DAI",  name: "Dai Stablecoin",   balance: "8,000.00",  usd: "$8,000"  },
  { ticker: "ABN",  name: "Apollo Bond Note", balance: "2.50",      usd: "$248,000" },
  { ticker: "SNG",  name: "Senior Note Group", balance: "10,000.00", usd: "$10,400" },
  { ticker: "FMM",  name: "Frontier MMF",     balance: "500.00",    usd: "$50,250" },
  { ticker: "MSM",  name: "MSM Income Note",  balance: "8,000.00",  usd: "$8,160"  },
  { ticker: "SBC",  name: "SBC Capital Note", balance: "12,500.00", usd: "$12,938" },
];

const PROFILE_SESSIONS = [
  { device: "MacBook Pro · Chrome",    location: "New York, NY",  lastActive: "now",          current: true },
  { device: "iPhone 17 · Safari",      location: "New York, NY",  lastActive: "2 hours ago",  current: false },
  { device: "MacBook Air · Firefox",   location: "Boston, MA",    lastActive: "3 days ago",   current: false },
];

const PROFILE_PREFERENCES = [
  { label: "Default settlement token", description: "Used when borrowing without specifying", value: "USDC" },
  { label: "Email notifications",      description: "Health-factor alerts and tx confirmations", value: "On" },
  { label: "Time zone",                description: "Used for activity and rate snapshots",     value: "UTC" },
  { label: "Currency display",         description: "Fiat unit shown alongside on-chain values", value: "USD" },
];

Object.assign(window, {
  ALL_FACILITIES,
  PORTFOLIO_DATA,
  FACILITIES_DATA,
  ACCESS_IDENTITY, ACCESS_KPI, ACCESS_ELIGIBILITY,
  CURRENT_FACILITY, TERMS,
  IDENTITY_FULL, IDENTITY_MISSING, IDENTITY_PENDING, IDENTITY_JURIS,
  ACCOUNTS, POLICY,
  PROFILE_IDENTITY, PROFILE_TOKENS, PROFILE_SESSIONS, PROFILE_PREFERENCES,
});
