PageSourceSearch

https://trustsec.xyz/assets/BugBounties-NZuXH4Dg.js

js trustsec.xyz collected 2026-10-09 17:36:51 UTC 17,836 bytes, 19 lines download raw bytes

1import{c as Z,u as q,t as k,r as u,j as e,I as J,A as C,T as X,C as ee,b as te,d as se,e as ae,L as ne}from"./index-DDatQ7fe.js";import{C as ie,A as oe}from"./circle-alert-Dy1h_nsu.js";import{C as ce}from"./chevron-up-CdgjYrvv.js";import{L as $}from"./lock-_OhIkAMc.js";import{E as S}from"./external-link-D2-vgGWO.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const L=Z("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),j=10,g={Critical:{color:"text-red-400",bg:"bg-red-400/10",border:"border-red-400/20",icon:X},High:{color:"text-orange-400",bg:"bg-orange-400/10",border:"border-orange-400/20",icon:ie},Medium:{color:"text-yellow-400",bg:"bg-yellow-400/10",border:"border-yellow-400/20",icon:L},Low:{color:"text-emerald-400",bg:"bg-emerald-400/10",border:"border-emerald-400/20",icon:L}},v=["Critical","High","Medium","Low"],le=["All","Critical","High","Medium","Low"];function re(t){if(t<=0)return"$0";const n=1e5,i=Math.floor(t/n)*n;if(i>=1e6){const a=i/1e6;return`$${Number.isInteger(a)?a:a.toFixed(1)}M`}return`$${(i/1e3).toFixed(0)}K`}function T(t){if(!t)return null;try{return new Date(t+"T00:00:00").toLocaleDateString("en-US",{month:"short",year:"numeric"})}catch{return t}}function M(t){if(!t)return 0;try{return new Date(t+"T00:00:00").getTime()}catch{return 0}}function z({url:t}){const n=t.startsWith("http://")||t.startsWith("https://"),i="inline-flex items-center justify-center p-1.5 rounded text-xs bg-[#005EFF]/10 text-[#005EFF] border border-[#005EFF]/20 hover:bg-[#005EFF]/20 hover:border-[#005EFF]/40 transition-all duration-200 flex-shrink-0";return n?e.jsx("a",{"data-loc":"client/src/pages/BugBounties.tsx:107",href:t,target:"_blank",rel:"noopener noreferrer",className:i,onClick:a=>a.stopPropagation(),title:"Open link",children:e.jsx(S,{"data-loc":"client/src/pages/BugBounties.tsx:108",size:11})}):e.jsx(ne,{"data-loc":"client/src/pages/BugBounties.tsx:113",href:t,className:i,onClick:a=>a.stopPropagation(),title:"Open link",children:e.jsx(S,{"data-loc":"client/src/pages/BugBounties.tsx:114",size:11})})}function de({label:t}){return e.jsxs("span",{"data-loc":"client/src/pages/BugBounties.tsx:121",className:`inline-flex items-center gap-1.5 px-2 py-0.5 rounded font-mono text-xs
7                 bg-[#FAFAFA]/5 border border-[#FAFAFA]/10 text-[#FAFAFA]/25
8                 select-none tracking-widest`,title:"Redacted under NDA",children:[e.jsx($,{"data-loc":"client/src/pages/BugBounties.tsx:127",size:9,className:"text-[#FAFAFA]/20"}),t]})}function I({severity:t}){const n=g[t]||g.Medium,i=n.icon;return e.jsxs("span",{"data-loc":"client/src/pages/BugBounties.tsx:137",className:`inline-flex items-center gap-1 px-2 py-0.5 text-xs font-medium rounded ${n.bg} ${n.color} flex-shrink-0`,children:[e.jsx(i,{"data-loc":"client/src/pages/BugBounties.tsx:138",size:10}),t]})}function D({entry:t,showDescription:n,date:i}){const a=g[t.severity]||g.Medium;return e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:148",className:`flex flex-col sm:flex-row sm:items-start gap-3 py-4 px-5 border-t ${a.border} border-opacity-10 first:border-t-0`,children:[e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:150",className:"w-9 h-9 rounded-md bg-[#005EFF]/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:t.nda?e.jsx($,{"data-loc":"client/src/pages/BugBounties.tsx:152",size:14,className:"text-[#005EFF]/40"}):e.jsx(ae,{"data-loc":"client/src/pages/BugBounties.tsx:154",size:15,className:"text-[#005EFF]"})}),e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:159",className:"flex-1 min-w-0",children:[e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:161",className:"flex flex-wrap items-center gap-2 mb-1",children:[t.nda?e.jsx(de,{"data-loc":"client/src/pages/BugBounties.tsx:163",label:"CONFIDENTIAL"}):e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:165",className:"font-heading font-semibold text-[#FAFAFA] text-sm",children:t.client}),e.jsx(I,{"data-loc":"client/src/pages/BugBounties.tsx:167",severity:t.severity}),i&&e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:169",className:"text-xs text-[#FAFAFA]/20 font-mono",children:T(i)}),t.url&&e.jsx(z,{"data-loc":"client/src/pages/BugBounties.tsx:172",url:t.url})]}),n&&t.description&&e.jsx("p",{"data-loc":"client/src/pages/BugBounties.tsx:177",className:"text-sm text-[#FAFAFA]/40 leading-relaxed mb-1.5",children:t.description}),e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:181",className:"flex flex-wrap items-center gap-2 mt-1",children:[t.platform?e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:183",className:"text-xs text-[#FAFAFA]/25 font-mono",children:t.platform}):null,t.productCategory&&e.jsxs(e.Fragment,{children:[t.platform&&e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:187",className:"text-xs text-[#FAFAFA]/15",children:"·"}),e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:188",className:"text-xs text-[#FAFAFA]/25 font-mono",children:t.productCategory})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:195",className:"flex-shrink-0 text-right sm:pl-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:196",className:"font-heading text-lg font-bold text-[#005EFF]",children:["$",t.bounty.toLocaleStr
8ing()]}),e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:199",className:"text-xs text-[#FAFAFA]/20 font-mono",children:"awarded"})]})]})}function ue({group:t}){const[n,i]=u.useState(!1);return g[t.topSeverity]||g.Medium,t.isGroup?e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:220",className:"glass-card rounded-lg overflow-hidden group/card hover:border-[#005EFF]/20 transition-all duration-500",children:[e.jsxs("button",{"data-loc":"client/src/pages/BugBounties.tsx:222",onClick:()=>i(a=>!a),className:"w-full text-left px-5 py-4 flex items-start gap-3 hover:bg-white/[0.02] transition-colors group","aria-expanded":n,children:[e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:228",className:"w-9 h-9 rounded-md bg-[#005EFF]/10 flex items-center justify-center flex-shrink-0 mt-0.5 group-hover:bg-[#005EFF]/15 transition-colors",children:n?e.jsx(ce,{"data-loc":"client/src/pages/BugBounties.tsx:230",size:15,className:"text-[#005EFF]"}):e.jsx(se,{"data-loc":"client/src/pages/BugBounties.tsx:231",size:15,className:"text-[#005EFF]"})}),e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:235",className:"flex-1 min-w-0",children:[e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:237",className:"flex flex-wrap items-center gap-2 mb-1.5",children:[(()=>{if(t.mergeSummary)return e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:241",className:"font-heading font-semibold text-[#FAFAFA] text-sm",children:t.mergeSummary});const a=t.entries.map(d=>d.client).filter(d=>d!==null&&d.trim()!=="");return a.length===0?null:e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:251",className:"font-heading font-semibold text-[#FAFAFA] text-sm",children:a.join(" / ")})})(),e.jsx(I,{"data-loc":"client/src/pages/BugBounties.tsx:256",severity:t.topSeverity}),e.jsxs("span",{"data-loc":"client/src/pages/BugBounties.tsx:257",className:"text-xs font-mono text-[#FAFAFA]/30 bg-[#FAFAFA]/5 px-2 py-0.5 rounded",children:[t.entries.length," affected"]}),t.date&&e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:261",className:"text-xs text-[#FAFAFA]/20 font-mono",children:T(t.date)}),t.sharedUrl&&e.jsx(z,{"data-loc":"client/src/pages/BugBounties.tsx:264",url:t.sharedUrl})]}),e.jsx("p",{"data-loc":"client/src/pages/BugBounties.tsx:268",className:"text-sm text-[#FAFAFA]/50 leading-relaxed line-clamp-2",children:t.description})]}),e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:274",className:"flex-shrink-0 text-right pl-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:275",className:"font-heading text-lg font-bold text-[#005EFF]",children:["$",t.totalBounty.toLocaleString()]}),e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:278",className:"text-xs text-[#FAFAFA]/20 font-mono",children:"total"})]})]}),n&&e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:284",className:"border-t border-white/[0.06]",children:t.entries.map(a=>e.jsx(D,{"data-loc":"client/src/pages/BugBounties.tsx:286",entry:t.sharedUrl?{...a,url:null}:a,showDescription:!1},a.id))})]}):e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:213",className:"glass-card rounded-lg overflow-hidden group hover:border-[#005EFF]/20 transition-all duration-500",children:e.jsx(D,{"data-loc":"client/src/pages/BugBounties.tsx:214",entry:t.entries[0],showDescription:!0,date:t.date})})}function he(){q({title:"Bug Bounties",description:"Over $500K earned hunting critical vulnerabilities across top-tier Web3 protocols including Chainlink, Ethereum, OpenSea, and Optimism."});const{data:t=[],isLoading:n}=k.bounties.list.useQuery(),{data:i,isLoading:a}=k.bounties.stats.useQuery(),[d,m]=u.useState(0),[p,R]=u.useState("All"),[f,O]=u.useState("bounty"),G=u.useRef(null),x=u.useMemo(()=>{const s=new Map;for(const r of t){const o=(r.description??"").trim();s.has(o)||s.set(o,[]),s.get(o).push(r)}const l=[];for(const[r,o]of Array.from(s.entries())){o.sort((c,F)=>{const A=v.indexOf(c.severity),b=v.indexOf(F.severity);return A!==b?(A===-1?99:A)-(b===-1?99:b):F.bounty-c.bounty});const W=o.find(c=>
8v.includes(c.severity))?.severity??"Medium",K=o.find(c=>c.date)?.date??null,Q=o.reduce((c,F)=>c+F.bounty,0),w=o.length>1,E=o.map(c=>c.url).filter(c=>c!==null),V=E[0]??null,Y=o.find(c=>c.mergeSummary)?.mergeSummary??null;l.push({description:r,mergeSummary:Y,entries:o,isGroup:w,date:K,topSeverity:W,totalBounty:Q,sharedUrl:V})}return l},[t]),N=u.useMemo(()=>p==="All"?x:x.filter(s=>s.topSeverity===p),[x,p]),B=u.useMemo(()=>{const s=[...N];return f==="bounty"?s.sort((l,r)=>r.totalBounty-l.totalBounty):s.sort((l,r)=>M(r.date)-M(l.date)),s},[N,f]),h=Math.ceil(B.length/j),P=B.slice(d*j,(d+1)*j),y=n||a;function U(s){R(s),m(0)}function H(){O(s=>s==="bounty"?"recent":"bounty"),m(0)}const _=u.useMemo(()=>{const s={};for(const l of x){const r=l.topSeverity;s[r]=(s[r]??0)+1}return s},[x]);return e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:397",className:"min-h-screen pt-24 lg:pt-32 pb-24",children:[e.jsxs("section",{"data-loc":"client/src/pages/BugBounties.tsx:399",className:"relative mb-16 overflow-hidden",children:[e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:400",className:"absolute inset-0 pointer-events-none",children:[e.jsx("img",{"data-loc":"client/src/pages/BugBounties.tsx:401",src:J.heroBounty,alt:"",className:"w-full h-full object-cover opacity-15"}),e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:402",className:"absolute inset-0 bg-gradient-to-b from-[#0D0D0D] via-[#0D0D0D]/90 to-[#0D0D0D]"})]}),e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:404",className:"container relative z-10 py-16",children:[e.jsxs(C,{"data-loc":"client/src/pages/BugBounties.tsx:405",children:[e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:406",className:"section-label mb-4",children:"// Bug Bounties"}),e.jsx("h1",{"data-loc":"client/src/pages/BugBounties.tsx:407",className:"font-heading text-4xl sm:text-5xl lg:text-5xl font-bold text-[#FAFAFA] mb-4",children:"Bug Bounty Track Record"}),e.jsxs("p",{"data-loc":"client/src/pages/BugBounties.tsx:410",className:"text-[#FAFAFA]/40 text-lg max-w-xl mb-8",children:["Our auditors are elite bounty hunters who have earned over"," ",e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:412",className:"text-[#FAFAFA]/70",children:a?"…":re(i?.totalAwarded??0)})," ","across top-tier protocols. This attacker mindset is what makes our audits different."]})]}),e.jsx(C,{"data-loc":"client/src/pages/BugBounties.tsx:420",delay:.2,children:e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:421",className:"flex flex-wrap gap-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:422",className:"glass-card rounded-lg px-6 py-4",children:[e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:423",className:"font-heading text-2xl font-bold text-[#005EFF]",children:a?e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:424",className:"opacity-30",children:"-"}):`$${(i?.totalAwarded??0).toLocaleString()}`}),e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:426",className:"text-xs text-[#FAFAFA]/30 font-mono",children:"Total Awarded"})]}),e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:428",className:"glass-card rounded-lg px-6 py-4",children:[e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:429",className:"font-heading text-2xl font-bold text-[#FAFAFA]",children:a?e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:430",className:"opacity-30",children:"-"}):i?.totalCount??0}),e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:432",className:"text-xs text-[#FAFAFA]/30 font-mono",children:"Bounties Claimed"})]})]})})]})]}),e.jsx("section",{"data-loc":"client/src/pages/BugBounties.tsx:441",className:"relative container max-w-5xl mx-auto",children:e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:443",className:"relative z-10",children:[!y&&x.length>0&&e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:445",className:"flex flex-wrap items-center justify-between gap-3 mb-6",children:[e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:447",className:"flex flex-wrap items-center gap-2",children:le.map(s=>{const l=p===s,r=s==="All"?x.length:_[s]??0,o=s!=="All"?g[s]:null;return e.jsxs("button",{"data-loc":"client/src/pages/BugBounties.tsx:453",onClick:()=>U(s),className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-all duration-200
9                      ${l?o?`${o.bg} ${o.color} border border-current/20`:"bg-[#005EFF]/15 text-[#005EFF] border border-[#005EFF]/30":"bg-[#FAFAFA]/5 text-[#FAFAFA]/40 border border-transparent hover:border-white/10 hover:text-[#FAFAFA]/60"}`,children:[s,e.jsx("span",{"data-loc":"client/src/pages/BugBounties.tsx:465",className:`text-[10px] font-mono px-1 py-0.5 rounded ${l?"bg-white/10":"bg-white/5"}`,children:r})]},s)})}),e.jsxs("button",{"data-loc":"client/src/pages/BugBounties.tsx:474",onClick:H,className:`inline-flex items-center gap-2 px-3 py-1.5 rounded-md text-xs font-medium
10                         bg-[#FAFAFA]/5 text-[#FAFAFA]/40 border border-transparent
11                         hover:border-white/10 hover:text-[#FAFAFA]/60 transition-all duration-200`,children:[e.jsx(oe,{"data-loc":"client/src/pages/BugBounties.tsx:480",size:12}),f==="bounty"?"Highest Bounty":"Most Recent"]})]}),y?e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:487",className:"space-y-3",children:Array.from({length:6}).map((s,l)=>e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:489",className:"glass-card rounded-lg p-5 flex items-center gap-4 animate-pulse",children:[e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:490",className:"w-9 h-9 rounded-md bg-[#FAFAFA]/5 flex-shrink-0"}),e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:491",className:"flex-1 space-y-2",children:[e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:492",className:"h-3 bg-[#FAFAFA]/5 rounded w-1/4"}),e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:493",className:"h-3 bg-[#FAFAFA]/5 rounded w-3/4"})]}),e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:495",className:"w-20 h-7 bg-[#FAFAFA]/5 rounded flex-shrink-0"})]},l))}):B.length===0?e.jsxs("p",{"data-loc":"client/src/pages/BugBounties.tsx:500",className:"text-center text-[#FAFAFA]/30 py-16 font-mono text-sm",children:["No ",p!=="All"?p.toLowerCase()+" ":"","bounty entries found."]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{"data-loc":"client/src/pages/BugBounties.tsx:505",ref:G,className:"space-y-3",children:P.map(s=>e.jsx(ue,{"data-loc":"client/src/pages/BugBounties.tsx:507",group:s},s.description+s.entries[0].id))}),h>1&&e.jsxs("div",{"data-loc":"client/src/pages/BugBounties.tsx:513",className:"flex items-center justify-between mt-8 pt-6 border-t border-white/[0.06]",children:[e.jsxs("button",{"data-loc":"client/src/pages/BugBounties.tsx:514",onClick:()=>{m(s=>Math.max(0,s-1))},disabled:d===0,className:`inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md
12                             border border-white/[0.10] text-[#FAFAFA]/60
13                             hover:border-[#005EFF]/40 hover:text-[#FAFAFA]
14                             disabled:opacity-25 disabled:cursor-not-allowed
15                             transition-all duration-200`,children:[e.jsx(ee,{"data-loc":"client/src/pages/BugBounties.tsx:523",size:15})," Previous"]}),e.jsxs("span",{"data-loc":"client/src/pages/BugBounties.tsx:526",className:"text-xs font-mono text-[#FAFAFA]/30",children:["Page ",d+1," of ",h,e.jsxs("span",{"data-loc":"client/src/pages/BugBounties.tsx:528",className:"ml-2 text-[#FAFAFA]/15",children:["· ",B.length," bounties"]})]}),e.jsxs("button",{"data-loc":"client/src/pages/BugBounties.tsx:531",onClick:()=>{m(s=>Math.min(h-1,s+1))},disabled:d>=h-1,className:`inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md
16                             border border-white/[0.10] text-[#FAFAFA]/60
17                             hover:border-[#005EFF]/40 hover:text-[#FAFAFA]
18                             disabled:opacity-25 disabled:cursor-not-allowed
19                             transition-all duration-200`,children:["Next ",e.jsx(te,{"data-loc":"client/src/pages/BugBounties.tsx:540",size:15})]})]})]})]})})]})}export{he 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.