(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{42565:function(e,l,t){Promise.resolve().then(t.bind(t,64572)),Promise.resolve().then(t.bind(t,73615)),Promise.resolve().then(t.bind(t,18142)),Promise.resolve().then(t.t.bind(t,73913,23)),Promise.resolve().then(t.t.bind(t,37726,23)),Promise.resolve().then(t.t.bind(t,62655,23)),Promise.resolve().then(t.bind(t,83306)),Promise.resolve().then(t.t.bind(t,88194,23)),Promise.resolve().then(t.t.bind(t,63609,23)),Promise.resolve().then(t.t.bind(t,79033,23)),Promise.resolve().then(t.t.bind(t,41228,23))},64572:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return y}});var n=t(20984);t(85733),t(48646),t(1244),t(15455);var r=t(22194),s=t(32394);let a=t.n(s)()(()=>Promise.resolve().then(t.bind(t,11508)),{loadableGenerated:{webpack:()=>[11508]},ssr:!1,loading:()=>(0,n.jsx)("button",{className:"inline-flex flex-row items-center gap-0.5 whitespace-nowrap rounded-lg bg-black/5 px-3 py-1.5 text-sm text-text-primary transition-colors hover:bg-black/10 md:px-3",children:(0,n.jsxs)("span",{className:"inline-flex flex-row items-center gap-1.5 text-sm font-medium text-gray-600",children:["Network",(0,n.jsx)("span",{className:"size-2 rounded-full bg-yellow-500"})]})})});var o=()=>(0,n.jsx)(a,{}),i=t(54554),c=t(28915),d=t(65513),f=t(54563),m=t(68754),u=t(28602),x=t(52319),p=t(80797),h=t(8088),g=t(30208);function b(){let[e,l]=(0,g.useState)(null),{protocolRates:t,isFetched:r}=(0,m.Z)(),{connected:s}=(0,f.V)(),{data:a,isFetched:o}=(0,d.Z)(),b=(0,g.useMemo)(()=>(null==a?void 0:a.tokenBalances)&&0!=a.tokenBalances.length?null==a?void 0:a.tokenBalances.reduce((e,l)=>e.usdValue>l.usdValue?e:l):null,[null==a?void 0:a.tokenBalances]),v=(0,g.useMemo)(()=>e||(b?p.L.find(e=>e.id===b.mint):p.L[0]),[e,b]),y=(0,g.useMemo)(()=>{var e;return r&&null!==(e=null==t?void 0:t.filter(e=>!!e.rates[v.id]&&"flexlend"!==e.protocol).map(e=>({protocolInfo:(0,x.sA)((0,u.Wv)(e.protocol)),lendingRate:e.rates[v.id].CURRENT})).sort((e,l)=>l.lendingRate-e.lendingRate))&&void 0!==e?e:[]},[t,r,v]);return r&&(o||!s)?(0,n.jsx)("div",{className:"flex w-full flex-row items-center justify-center bg-black/[4%] ",children:(0,n.jsxs)("div",{className:"relative flex w-full max-w-[1216px] flex-row items-center justify-center gap-4 xl:max-w-[1216px]",children:[(0,n.jsx)("div",{className:"min-w-fit pl-2 lg:pl-1",children:(0,n.jsx)("div",{className:"flex md:ml-0",children:(0,n.jsxs)(i.h_,{children:[(0,n.jsx)(i.$F,{className:"h-full",children:(0,n.jsxs)("div",{className:"flex h-full flex-row items-center gap-2",children:[(0,n.jsxs)("div",{className:"relative size-2",children:[(0,n.jsx)("div",{className:"absolute left-1/2 top-1/2 size-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-emerald-600"}),(0,n.jsx)("div",{className:"absolute size-2 animate-ping rounded-full bg-emerald-600"})]}),(0,n.jsx)("div",{className:"relative size-5",children:(0,n.jsx)(h.default,{src:v.logo,alt:v.display+"_logo",width:20,height:20,className:"size-5 rounded-sm"})}),(0,n.jsx)("span",{className:"font-secondary text-xs font-medium text-emerald-600",children:"Live Rates"})]})}),(0,n.jsx)(i.AW,{className:"w-min min-w-min border-none",children:p.L.map(e=>(0,n.jsxs)(i.Xi,{className:"w-min justify-start",onClick:()=>l(e),children:[(0,n.jsx)("div",{className:"relative mr-2 size-4",children:(0,n.jsx)(h.default,{src:e.logo,alt:e.display+"_logo",fill:!0,className:"rounded-sm"})}),e.display]},e.id))})]})})}),(0,n.jsx)(c.x,{className:"",children:(0,n.jsxs)("div",{className:"flex flex-row gap-4 py-2.5 pr-4 md:pr-0",children:[y.map((e,l)=>(0,n.jsxs)("div",{className:"flex w-full flex-row items-center gap-2 whitespace-nowrap",children:[(0,n.jsx)("div",{className:"relative size-6",children:(0,n.jsx)(h.default,{src:e.protocolInfo.logo,className:"rounded-lg",alt:"protocol_logo",fill:!0})}),(0,n.jsx)("span",{className:"font-secondary text-sm font-medium text-gray-500",children:e.protocolInfo.display}),(0,n.jsx)("span",{className:"font-secondary text-sm font-semibold text-gray-800",children:(0,x.cW)(e.lendingRate)})]},l)),(0,n.jsx)(c.B,{orientation:"horizontal"})]})})]})}):(0,n.jsx)(j,{})}let j=e=>{let{className:l}=e;return(0,n.jsx)("div",{className:(0,x.cn)("scroller relative overflow-hidden [mask-image:linear-gradient(to_right,transparent,white_20%,white_80%,transparent)]",l),children:(0,n.jsx)("ul",{className:(0,x.cn)("flex h-[38px] w-max min-w-full shrink-0 flex-nowrap gap-0.5"),children:Array(50).fill(0).map((e,l)=>(0,n.jsx)("li",{className:"relative max-w-full flex-shrink-0 animate-pulse rounded-2xl px-1 py-1.5",style:{background:"linear-gradient(180deg, var(--slate-800), var(--slate-900)"},children:(0,n.jsxs)("blockquote",{children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"user-select-none -z-1 pointer-events-none absolute -left-0.5 -top-0.5 h-[calc(100%_+_4px)] w-[calc(100%_+_4px)]"}),(0,n.jsx)("div",{className:"relative flex flex-row items-center rounded-xl bg-gray-300/50",children:(0,n.jsxs)("span",{className:"flex flex-row items-center gap-2",children:[(0,n.jsx)("span",{className:"size-6 rounded-full bg-gray-300/0"}),(0,n.jsx)("span",{className:" mr-2 h-5 w-8 rounded-full bg-gray-300/0"})]})})]})},l))})})};var v=t(34594),y=function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("nav",{className:"flex h-11 w-full flex-row justify-center border-b border-b-gray-300",children:(0,n.jsxs)("div",{className:"flex h-11 w-full max-w-[1076px] flex-row items-center justify-between",children:[(0,n.jsx)("div",{className:"flex flex-row md:gap-8",children:(0,n.jsx)("div",{className:"ml-3.5 flex flex-row items-center gap-3.5",children:(0,n.jsx)(r.K,{href:"/",children:(0,n.jsx)("img",{src:"/logo.svg",alt:"lulo header"})})})}),(0,n.jsxs)("div",{className:"flex h-full flex-row items-center gap-2",children:[(0,n.jsx)(o,{}),(0,n.jsx)(v.Z,{})]})]})}),(0,n.jsx)(b,{})]})}},28915:function(e,l,t){"use strict";t.d(l,{B:function(){return i},x:function(){return o}});var n=t(20984),r=t(52319),s=t(65647),a=t(30208);let o=a.forwardRef((e,l)=>{let{className:t,children:a,...o}=e;return(0,n.jsxs)(s.fC,{ref:l,className:(0,r.cn)("relative overflow-hidden",t),...o,children:[(0,n.jsx)(s.l_,{className:"h-full w-full rounded-[inherit]",children:a}),(0,n.jsx)(i,{}),(0,n.jsx)(s.Ns,{})]})});o.displayName=s.fC.displayName;let i=a.forwardRef((e,l)=>{let{className:t,orientation:a="vertical",...o}=e;return(0,n.jsx)(s.gb,{ref:l,orientation:a,className:(0,r.cn)("flex touch-none select-none transition-colors","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...o,children:(0,n.jsx)(s.q4,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=s.gb.displayName},73615:function(e,l,t){"use strict";t.r(l),t.d(l,{JLPKaminoBanner:function(){return v}});var n=t(20984),r=t(69474),s=t(9589),a=t(48646),o=t(1244),i=t(15455),c=t(38644),d=t(28602),f=t(44624),m=t(7973),u=t(94074),x=t(81577),p=t(63071),h=t(8088);t(990),t(30208);let g=(0,u.O4)("pyusdBanner",!0,void 0,{getOnInit:!0});var b=t(3228);let j=(0,u.O4)("jlpKaminoBanner",!0,void 0,{getOnInit:!0});function v(){let{connected:e}=(0,f.O)(),[l,t]=(0,m.KO)(j),u=(0,c.a)("(min-width: 768px)"),v=d.Ew.kamino_jlp;return(0,m.Dv)(g)?null:u?(0,n.jsx)(r.Vq,{open:l&&e,onOpenChange:t,children:(0,n.jsxs)(r.cZ,{className:"max-w-[492px] px-4",children:[(0,n.jsxs)(r.fK,{className:"font-primary text-xl font-medium",children:[(0,n.jsxs)("span",{className:"inline-flex flex-row items-center gap-2 font-primary text-xl font-medium",children:[(0,n.jsx)("div",{className:"relative size-7",children:(0,n.jsx)(h.default,{src:v.logo,fill:!0,alt:"jlp-logo",sizes:"32x32"})}),(0,n.jsxs)("p",{className:"font-primary text-xl font-medium",children:["New Lending Pool:"," ",(0,n.jsx)("span",{className:"font-primary text-xl font-semibold",children:"Kamino JLP"})]})]}),(0,n.jsx)("p",{className:"font-secondary text-sm text-gray-500",children:"Kamino's JLP pool is now available to all users! To start earning from Kamino's JLP pool, please opt-in from your settings."})]}),(0,n.jsxs)("div",{className:"mb-12 mt-1 flex flex-col gap-1.5",children:[(0,n.jsx)("div",{className:"my-3 h-11 min-w-[60%] self-center rounded bg-emerald-600 text-center font-secondary text-sm font-semibold leading-none text-white transition-all *:h-11  *:*:!text-white disabled:cursor-not-allowed md:text-base [&>button]:w-full [&>button]:justify-center",children:(0,n.jsx)(b.Z,{onClose:()=>t(!1)})}),(0,n.jsx)("span",{className:"font-primary text-lg font-semibold",children:"Resources"}),(0,n.jsx)("div",{className:"flex flex-row flex-wrap gap-3",children:(0,n.jsxs)("a",{href:"https://app.kamino.finance/lending/reserve/DxXdAyU3kCjnyggvHmY5nAwg5cRbbmdyX3npfDMjjMek/Ga4rZytCpq1unD4DbEJ5bkHeUz9g3oh9AAFEi6vSauXp",target:"_blank",rel:"noopener noreferrer",className:"inline-flex flex-row items-center gap-1 font-secondary text-sm leading-none tracking-tight text-gray-500",children:["Learn more about the Kamino JLP pool",(0,n.jsx)(x.Z,{className:"size-4 stroke-gray-500"})]})})]}),(0,n.jsxs)(r.cN,{className:"absolute bottom-0 left-0 flex w-full flex-row items-center rounded-lg bg-gray-50 px-5 py-2.5 sm:justify-between",children:[(0,n.jsx)("span",{className:"font-secondary text-sm font-medium text-gray-400",children:"Need help?"}),(0,n.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,n.jsx)("a",{href:"https://docs.lulo.fi/",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(p.Z,{className:"size-4 stroke-gray-400"})}),(0,n.jsx)("a",{href:"https://x.com/uselulo",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(i.Z,{className:"size-3.5 fill-gray-400"})}),(0,n.jsx)("a",{href:"http://discord.gg/lulo",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(a.Z,{className:"size-4 fill-gray-400"})}),(0,n.jsx)("a",{href:"https://t.me/uselulo",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(o.Z,{className:"size-4 fill-gray-400"})})]})]})]})}):(0,n.jsx)(s.dy,{disablePreventScroll:!0,preventScrollRestoration:!0,open:l&&e,onOpenChange:t,children:(0,n.jsxs)(s.sc,{allowOverflow:!1,className:"",children:[(0,n.jsxs)(s.OX,{className:"mb-3",children:[(0,n.jsxs)(s.iI,{className:"mb-0 inline-flex flex-row gap-2 text-start font-primary text-xl font-semibold",children:[(0,n.jsx)("div",{className:"relative size-7",children:(0,n.jsx)(h.default,{src:v.logo,fill:!0,alt:"jlp-logo",sizes:"32x32"})}),(0,n.jsxs)("p",{className:"font-primary text-xl font-medium",children:["New Lending Pool:"," ",(0,n.jsx)("span",{className:"font-primary text-xl font-semibold",children:"Kamino JLP"})]})]}),(0,n.jsx)(s.u6,{className:"text-start font-secondary text-sm text-gray-500",children:"Kamino's JLP pool is now available to all users! To start earning from Kamino's JLP pool, please opt-in from your settings."})]}),(0,n.jsxs)("div",{className:"mb-12 mt-1 flex flex-col gap-1.5",children:[(0,n.jsx)("div",{className:"my-3 h-11 min-w-[60%] self-center rounded bg-emerald-600 text-center font-secondary text-sm font-semibold leading-none text-white transition-all *:h-11  *:*:!text-white disabled:cursor-not-allowed md:text-base [&>button]:w-full [&>button]:justify-center",children:(0,n.jsx)(b.Z,{onClose:()=>t(!1)})}),(0,n.jsx)("span",{className:"font-primary text-lg font-semibold",children:"Resources"}),(0,n.jsx)("div",{className:"flex flex-row flex-wrap gap-3",children:(0,n.jsxs)("a",{href:"https://app.kamino.finance/lending/reserve/DxXdAyU3kCjnyggvHmY5nAwg5cRbbmdyX3npfDMjjMek/Ga4rZytCpq1unD4DbEJ5bkHeUz9g3oh9AAFEi6vSauXp",target:"_blank",rel:"noopener noreferrer",className:"inline-flex flex-row items-center gap-1 font-secondary text-sm leading-none tracking-tight text-gray-500",children:["Learn more about the Kamino JLP pool",(0,n.jsx)(x.Z,{className:"size-4 stroke-gray-500"})]})})]})," ",(0,n.jsxs)(s.ze,{className:"absolute bottom-0 left-0 flex w-full flex-row items-center justify-between bg-gray-50 px-5 py-2.5 sm:justify-between",children:[(0,n.jsx)("span",{className:"font-secondary text-xs font-medium text-gray-400",children:"Need help?"}),(0,n.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,n.jsx)("a",{href:"https://docs.lulo.fi/",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(p.Z,{className:"size-4 stroke-gray-400"})}),(0,n.jsx)("a",{href:"https://x.com/uselulo",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(i.Z,{className:"size-3.5 fill-gray-400"})}),(0,n.jsx)("a",{href:"http://discord.gg/lulo",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(a.Z,{className:"size-4 fill-gray-400"})}),(0,n.jsx)("a",{href:"https://t.me/uselulo",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(o.Z,{className:"size-4 fill-gray-400"})})]})]})]})})}},68754:function(e,l,t){"use strict";var n=t(17088),r=t(70381),s=t(27147);let a=s.z.object({data:s.z.array(s.z.object({protocol:s.z.string(),rates:s.z.record(s.z.string(),s.z.object({"1HR":s.z.string().optional().transform(e=>Number(null!=e?e:0)),"24HR":s.z.string().optional().transform(e=>Number(null!=e?e:0)),"7DAY":s.z.string().optional().transform(e=>Number(null!=e?e:0)),"30DAY":s.z.string().optional().transform(e=>Number(null!=e?e:0)),CURRENT:s.z.string().optional().transform(e=>Number(null!=e?e:0))}))}))});l.Z=function(){let{data:e,isFetched:l}=(0,r.a)({queryKey:["protocolRates"],queryFn:()=>(0,n.g4)("/protocols/rates").then(e=>e.json()).then(a.parse).then(e=>e.data).catch(e=>(console.error(e),[])),refetchInterval:6e4});return{protocolRates:e,isFetched:l}}},32394:function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return s}});let n=t(96731);t(20984),t(30208);let r=n._(t(17491));function s(e,l){let t={loading:e=>{let{error:l,isLoading:t,pastDelay:n}=e;return null}};return"function"==typeof e&&(t.loader=e),(0,r.default)({...t,...l})}("function"==typeof l.default||"object"==typeof l.default&&null!==l.default)&&void 0===l.default.__esModule&&(Object.defineProperty(l.default,"__esModule",{value:!0}),Object.assign(l.default,l),e.exports=l.default)},75549:function(e,l,t){"use strict";function n(e){let{reason:l,children:t}=e;return t}Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),t(36181)},17491:function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return i}});let n=t(20984),r=t(30208),s=t(75549);function a(e){var l;return{default:null!=(l=null==e?void 0:e.default)?l:e}}let o={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},i=function(e){let l={...o,...e},t=(0,r.lazy)(()=>l.loader().then(a)),i=l.loading;function c(e){let a=i?(0,n.jsx)(i,{isLoading:!0,pastDelay:!0,error:null}):null,o=l.ssr?(0,n.jsx)(t,{...e}):(0,n.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(t,{...e})});return(0,n.jsx)(r.Suspense,{fallback:a,children:o})}return c.displayName="LoadableComponent",c}},62655:function(){},41228:function(){},37726:function(){},88194:function(e){e.exports={style:{fontFamily:"'__Inter_d65c78', '__Inter_Fallback_d65c78'",fontStyle:"normal"},className:"__className_d65c78",variable:"__variable_d65c78"}},79033:function(e){e.exports={style:{fontFamily:"'__commitMono_b7930a', '__commitMono_Fallback_b7930a'"},className:"__className_b7930a",variable:"__variable_b7930a"}},63609:function(e){e.exports={style:{fontFamily:"'__overusedGrotesk_f9eea8', '__overusedGrotesk_Fallback_f9eea8'"},className:"__className_f9eea8",variable:"__variable_f9eea8"}},83306:function(e,l,t){"use strict";t.r(l),t.d(l,{Analytics:function(){return i},track:function(){return o}});var n=t(30208),r=()=>{window.va||(window.va=function(){for(var e=arguments.length,l=Array(e),t=0;t<e;t++)l[t]=arguments[t];(window.vaq=window.vaq||[]).push(l)})};function s(){return window.vam||"production"}function a(){return"development"===s()}function o(e,l){var t,n;if(!l){null==(t=window.va)||t.call(window,"event",{name:e});return}try{let t=function(e,l){if(!e)return;let t=e,n=[];for(let[r,s]of Object.entries(e))"object"==typeof s&&null!==s&&(l.strip?t=function(e,l){let{[e]:t,...n}=l;return n}(r,t):n.push(r));if(n.length>0&&!l.strip)throw Error("The following properties are not valid: ".concat(n.join(", "),". Only strings, numbers, booleans, and null are allowed."));return t}(l,{strip:"production"===s()});null==(n=window.va)||n.call(window,"event",{name:e,data:t})}catch(e){e instanceof Error&&a()&&console.error(e)}}function i(e){let{beforeSend:l,debug:t=!0,mode:s="auto"}=e;return(0,n.useEffect)(()=>{!function(){var e;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam="production";return}window.vam=e})(l.mode),r(),l.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",l.beforeSend));let t=a()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js";if(document.head.querySelector('script[src*="'.concat(t,'"]')))return;let n=document.createElement("script");n.src=t,n.defer=!0,n.setAttribute("data-sdkn","@vercel/analytics"),n.setAttribute("data-sdkv","1.1.2"),n.onerror=()=>{let e=a()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(t,". ").concat(e))},a()&&!1===l.debug&&n.setAttribute("data-debug","false"),document.head.appendChild(n)}({beforeSend:l,debug:t,mode:s})},[l,t,s]),null}}},function(e){e.O(0,[7163,3163,7007,7266,6971,569,907,5266,1753,6485,5647,2014,9806,4990,4594,9383,7115,9069,1744],function(){return e(e.s=42565)}),_N_E=e.O()}]);