PageSourceSearch

https://kyberswap.com/assets/TrendingPoolBanner-4dc2563d.js

js kyberswap.com collected 2026-10-01 11:50:33 UTC 1,885 bytes, 1 lines download raw bytes

1import{cc as f,O as I,id as j,r as t,j as n,vY as C,vP as T,cq as _,vZ as v,a1 as P,v_ as H,i7 as p,v$ as R,w0 as y,ia as S,w1 as L,w2 as w,cf as i,it as B}from"./index-23810fa3.js";let l;function O(){const{trackingHandler:o}=f(),{account:A}=I(),{data:r}=j({userAddress:A}),[c,k]=t.useState(0),[E,d]=t.useState(!1),[m,u]=t.useState(!1),s=t.useMemo(()=>(r==null?void 0:r.data.highlightedPools[c])||null,[r,c]),N=()=>{o(i.EARN_BANNER_CLICK,{banner_name:"HomePage_Earn_Banner",page:"HomePage",destination_url:_.EARN})},x=e=>{var a;return B(((a=e.chain)==null?void 0:a.id)??e.chainId,e.exchange,e.address)},b=e=>{var g;const a=x(e);o(i.EARN_BANNER_POOL_CLICK,{banner_name:"HomePage_Pool_Banner",page:"HomePage",pool_pair:`${e.tokens[0].symbol}-${e.tokens[1].symbol}`,destination_url:a}),o(i.TRENDING_POOL_CLICKED,{pool_pair:`${e.tokens[0].symbol}/${e.tokens[1].symbol}`,pool_apr:e.allApr,pool_type:"trending",chain:((g=e.chain)==null?void 0:g.name)||""})};t.useEffect(()=>(l=setInterval(()=>{m||(d(!0),setTimeout(()=>k(a=>a>=9?0:a+1),200),setTimeout(()=>d(!1),1e3))},4e3),()=>l&&clearInterval(l)),[m]);const h=`${s==null?void 0:s.tokens[0].symbol}/${s==null?void 0:s.tokens[1].symbol}`;return n.jsxs(C,{children:[n.jsxs(T,{onClick:N,to:_.EARN,children:[n.jsx(v,{width:24,height:24,className:"text-primary"}),n.jsx("span",{className:"font-medium text-primary",children:P._({id:"besU/3"})})]}),s?n.jsxs(H,{animate:E,onClick:()=>b(s),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),to:x(s),children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx(p,{src:s.tokens[0].logoURI,boxShadowColor:"#0b2e24"}),n.jsx(p,{src:s.tokens[1].logoURI,boxShadowColor:"#0b2e24",translateLeft:!0}),n.jsx("span",{className:"ml-2 truncate",title:h,children:h})]}),n.jsx(R,{children:n.jsxs(y,{children:[S(s.allApr),"% ",n.jsx(L,{children:P._({id:"70wH1Q"})})]})})]}):n.jsx(w,{})]})}export{O 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.