1import{d as N,j as e}from"./index-CudHG6B4.js";import{T as v}from"./TreasuryLayout-CuFAanQM.js";import{C as t,b as d,c as n,d as u,a as l}from"./card-5b9UOcPu.js";import{B as m}from"./badge-CMf0SrHQ.js";import{S as o}from"./skeleton-BegiI0pz.js";import{T as b,a as y,b as x,c as f,d as w,e as a}from"./table-Hzp9xhRa.js";import{D as L}from"./droplets-Dmddv33X.js";import{C as S}from"./chart-column-DgRxdEWl.js";import{T as A}from"./trending-up-C66B21n6.js";import{D as P}from"./dollar-sign-BcfyEtLy.js";import{W as T}from"./connectors-BciFpN0c.js";import{L as C}from"./ProtocolPage-UaH8jgc9.js";import{A as q}from"./activity-bEZHpmO8.js";import"./InstitutionRegister-CdUSyHyq.js";import"./alert-kp6gCZ70.js";import"./label-B2onvOiF.js";import"./useMutation-CBAYgnG2.js";import"./input-kx1YXBs7.js";import"./index-C1iJF-SR.js";import"./chevron-up-qSRaMRim.js";import"./check-D8BjNWtW.js";import"./building-2-CMfa6c9V.js";import"./shield-check-ic92rXB7.js";import"./users-DX1W4CCh.js";import"./AuthenticatedApplication-C2-e6xTS.js";import"./circle-alert-CRUc3mQk.js";import"./textarea-C9FUOvKW.js";import"./circle-C1ccQMbh.js";import"./chevron-right-Dr8cwl4J.js";import"./user-DCnI1kiW.js";import"./arrow-left-lxn-dpfG.js";import"./clock-DzjvzExH.js";import"./triangle-alert-BA2tGhup.js";import"./file-text-76AiIfll.js";import"./circle-check-CTosiqnS.js";import"./AboutPage-CamkJ7cK.js";import"./PrivacyPage-Beavwhs0.js";import"./TermsPage-SeBMfIpe.js";import"./BackingDashboard-CVY4Rsg2.js";import"./shield-Hr0aqzVI.js";import"./layers-Ca3pv70P.js";import"./LandVerifyPage-NEwI3vUf.js";import"./award-BusU1ju6.js";import"./hash-DyzAXdJv.js";import"./globe-NLl4Wr5a.js";import"./scale-DM0tAT-O.js";import"./calendar-BTBtzozc.js";import"./landmark-BA_0Cnnl.js";import"./LandCertificate-Du_3NAH9.js";import"./printer-C2HCk7DD.js";import"./OnchainDocsPage-DDA6342p.js";import"./book-open-DvSukaGG.js";import"./code-CMLileHq.js";import"./sprout-z_rucUaP.js";import"./TransparencyPage-Ylxz21fu.js";import"./LandProtocolDevRef-_yp8P5Ot.js";import"./InstitutionInvitePage-CIc8kA4i.js";import"./FlowOfFundsPage-BjbpHgzo.js";import"./CapitalProviderChoice-C78InrEx.js";import"./arrow-right-B1UlrPw0.js";import"./IndividualProviderRegister-DyWPKEYx.js";function p(s){const c=typeof s=="string"?parseFloat(s):s;return isNaN(c)?"$0.00":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(c)}function D({status:s,isLoading:c}){if(c)return e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:[...Array(2)].map((g,j)=>e.jsxs(t,{children:[e.jsx(d,{className:"pb-2",children:e.jsx(o,{className:"h-4 w-24"})}),e.jsx(l,{children:e.jsx(o,{className:"h-8 w-32"})})]},j))}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:[...Array(2)].map((g,j)=>e.jsxs(t,{children:[e.jsx(d,{className:"pb-2",children:e.jsx(o,{className:"h-4 w-24"})}),e.jsx(l,{children:e.jsx(o,{className:"h-8 w-32"})})]},j))})]});const i=parseFloat((s==null?void 0:s.totalDeposited)||"0"),h=parseFloat((s==null?void 0:s.availableLiquidity)||"0"),r=i>0?h/i*100:0;return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-3 px-1",children:"Assets"}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs(t,{children:[e.jsx(d,{className:"pb-2",children:e.jsxs(n,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[e.jsx(P,{className:"h-4 w-4"}),"Total Pool"]})}),e.jsxs(l,{children:[e.jsx("div",{className:"text-2xl font-bold",children:p((s==null?void 0:s.totalDeposited)||"0")}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[(s==null?void 0:s.lpCount)||0," liquidity providers"]})]})]}),e.jsxs(t,{children:[e.jsx(d,{className:"pb-2",children:e.jsxs(n,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[e.jsx(T,{className:"h-4 w-4"}),"Available Liquidity"]})}),e.jsxs(l,{children:[e.jsx("div",{className:"text-2xl font-bold text-green-600",children:p((s==null?void 0:s.availableLiquidity)||"0")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Ready for deployment"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-3 px-1",children:"Obligations"}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs(t,{children:[e.jsx(d,{className:"pb-2",children:e.jsxs(n,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[e.jsx(C,{className:"h-4 w-4"}),"Deployed (Settlement Lock)"]})}),e.jsxs(l,{children:[e.jsx("div",{className:"text-2xl font-bold text-amber-600",children:p((s==null?void 0:s.encumberedLiquidity)||(s==null?void 0:s.deployedLiquidity)||"0")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Gross deployed value"})]})]}),e.jsxs(t,{children:[e.jsx(d,{className:"pb-2",children:e.jsxs(n,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[e.jsx(q,{className:"h-4 w-4"}),"Coverage Ratio"]})}),e.jsxs(l,{children:[e.jsxs("div",{className:"text-2xl font-bold",children:[r.toFixed(1),"%"]}),e.jsx("div",{className:"mt-2 h-2 bg-muted rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-primary rounded-full transition-all",style:{width:`${Math.min(r,100)}%`}})})]})]})]})]})]})}function Ie(){const{data:s,isLoading:c}=N({queryKey:["/api/lp/pool-status"],refetchInterval:3e4}),{data:i,isLoading:h}=N({queryKey:["/api/v2/market/health"],refetchInterval:6e4});return e.jsx(v,{children:e.jsxs("div",{className:"max-w-5xl mx-auto
1space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("h1",{className:"text-2xl font-bold flex items-center gap-2",children:[e.jsx(L,{className:"h-6 w-6 text-amber-600"}),"Balance Sheet Overview"]}),e.jsx("p",{className:"text-muted-foreground",children:"Assets, obligations, and coverage at a glance."})]}),e.jsx(D,{status:s,isLoading:c}),e.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:e.jsxs(t,{children:[e.jsxs(d,{children:[e.jsxs(n,{className:"flex items-center gap-2",children:[e.jsx(S,{className:"h-5 w-5"}),"Market Depth"]}),e.jsx(u,{children:"AMM liquidity and estimated slippage from the Aerodrome USLT/USDC pool."})]}),e.jsx(l,{className:"space-y-4",children:h?e.jsxs("div",{className:"space-y-3",children:[e.jsx(o,{className:"h-6 w-48"}),e.jsx(o,{className:"h-6 w-48"}),e.jsx(o,{className:"h-6 w-48"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-3 text-sm",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:"Pool Status"}),e.jsx(m,{variant:i!=null&&i.poolExists?"default":"destructive",children:i!=null&&i.poolExists?"Active":"No Pool"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:"USLT Reserve"}),e.jsx("span",{className:"font-mono",children:(i==null?void 0:i.usltReserve)||"0"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:"USDC Reserve"}),e.jsx("span",{className:"font-mono",children:(i==null?void 0:i.usdcReserve)||"0"})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-muted-foreground",children:"Total AMM Liquidity"}),e.jsx("span",{className:"font-mono font-bold",children:p((i==null?void 0:i.totalLiquidity)||0)})]})]}),(i==null?void 0:i.slippageAtSizes)&&i.slippageAtSizes.length>0&&e.jsxs("div",{className:"pt-3 border-t",children:[e.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Slippage Estimates"}),e.jsx("div",{className:"space-y-1",children:i.slippageAtSizes.map(r=>e.jsxs("div",{className:"flex items-center justify-between text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:["$",r.amount.toLocaleString()]}),e.jsx("span",{className:"font-mono",children:r.slippagePct<0?e.jsx(m,{variant:"destructive",className:"text-xs",children:"N/A"}):e.jsxs("span",{className:r.slippagePct>2?"text-red-600":r.slippagePct>.5?"text-amber-600":"text-green-600",children:[r.slippagePct.toFixed(3),"%"]})})]},r.amount))})]})]})})]})}),e.jsxs(t,{children:[e.jsxs(d,{children:[e.jsxs(n,{className:"flex items-center gap-2",children:[e.jsx(A,{className:"h-5 w-5"}),"Realized Pricing Outcomes"]}),e.jsx(u,{children:"All liquidity clears at market-discovered prices. Land Ledger does not set prices."})]}),e.jsx(l,{children:e.jsxs(b,{children:[e.jsx(y,{children:e.jsxs(x,{children:[e.jsx(f,{children:"Product"}),e.jsx(f,{children:"Pricing Source"}),e.jsx(f,{children:"Fee"})]})}),e.jsxs(w,{children:[e.jsxs(x,{children:[e.jsx(a,{className:"font-medium",children:"Instant Liquidity"}),e.jsx(a,{children:e.jsx(m,{children:"Public Market (AMM)"})}),e.jsx(a,{className:"text-muted-foreground",children:"1% coordination fee at settlement"})]}),e.jsxs(x,{children:[e.jsx(a,{className:"font-medium",children:"Pay with Land"}),e.jsx(a,{children:e.jsx(m,{children:"Public Market (AMM)"})}),e.jsx(a,{className:"text-muted-foreground",children:"1% coordination fee at settlement"})]}),e.jsxs(x,{children:[e.jsx(a,{className:"font-medium",children:"Planned Liquidity"}),e.jsx(a,{children:e.jsx(m,{variant:"secondary",children:"Private Market (Windows)"})}),e.jsx(a,{className:"text-muted-foreground",children:"1% coordination fee at settlement"})]})]})]})})]}),e.jsx(t,{className:"bg-amber-50 border-amber-200",children:e.jsx(l,{className:"py-4",children:e.jsxs("p",{className:"text-sm text-amber-800",children:[e.jsx("strong",{children:"Note:"})," All data is derived from onchain state and the LP pool contract. Treasury cannot manually edit pool balances or override market pricing."]})})})]})})}export{Ie as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.