(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8571],{23362:function(e,l,a){Promise.resolve().then(a.bind(a,54823))},54823:function(e,l,a){"use strict";a.r(l),a.d(l,{default:function(){return p}});var s=a(57437),r=a(79352),t=a(2265);let n=t.forwardRef(function({title:e,titleId:l,...a},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:s,"aria-labelledby":l},a),e?t.createElement("title",{id:l},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z",clipRule:"evenodd"}))});var c=a(16691),d=a.n(c),i=a(61396),o=a.n(i),m=a(1383),x=a(63262),h=a(50812);let u=e=>{let l,{tokenAddress:a,index:t,volume:n}=e,{targetNetwork:c}=(0,x.p)(),{data:i}=(0,m.Xy)({contractName:"Token",address:a,functionName:"name"}),{data:u}=(0,m.Xy)({contractName:"Token",address:a,functionName:"symbol"}),{data:f}=(0,m.Xy)({contractName:"Token",address:a,functionName:"desc"}),{data:p}=(0,m.Xy)({contractName:"TokenController",functionName:"getMcap",args:[a]});try{l=JSON.parse(f||"{}")}catch(e){l={img:"",desc:f||""}}let v="https://blush-genuine-alpaca-303.mypinata.cloud/ipfs/".concat(null==l?void 0:l.img,"?pinataGatewayToken=s0mK3mOADQ791g1vCQig6k1vM42LMFW3ri5SjmRad-iqj53QqEWLzsZYjhkWu6j8");return(0,s.jsx)(o(),{href:"/token/".concat(a),className:"".concat(t," md:w-1/3 md:h-[150px] w-full rounded-[1rem] bg-gradient-to-tr bg-base-100 p-[1px] overflow-y-hidden  hover:shadow-center hover:shadow-[#FFB702] duration-300"),children:(0,s.jsx)("div",{className:"card rounded-[1rem] h-full image-full overflow-hidden md:text-base text-xs",children:(0,s.jsxs)("div",{className:"relative card-body p-0 pl-2 bg-gradient-to-tl from-base-200 to-base-100 md:flex-col flex-row bg-opacity-60 pointer-events-none",children:[(0,s.jsx)("img",{className:"z-10 absolute opacity-40 md:h-[150px] h-[90px] md:w-[150px] w-[90px] right-0 bottom-0",src:"/placeholders/lottery.png",alt:"Lottery"}),(0,s.jsx)("div",{className:"z-20 flex flex-row my-auto items-center w-full h-full md:py-0 py-2",children:(0,s.jsxs)("div",{className:"w-full h-full flex flex-col justify-between md:p-2",children:[(0,s.jsxs)("span",{className:"md:text-xl text-base oonga-boonga",children:["Daily Leader #",t+1]}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)("div",{className:"aspect-square w-[1rem] h-[1rem] overflow-hidden mr-[0.5rem] rounded-sm",children:(0,s.jsx)(d(),{className:"aspect-square w-full object-cover opacity-80",src:v,alt:"placeholder",width:30,height:30})}),(0,s.jsx)("span",{className:"text-neutral md:text-base text-sm font-bold",children:u}),(0,s.jsxs)("span",{className:"md:block hidden ml-2",children:["(",i,")"]})]}),(0,s.jsxs)("div",{className:"flex md:flex-row flex-col w-full md:gap-2 gap-1",children:[(0,s.jsxs)("div",{className:"md:w-1/2 w-full flex md:flex-col flex-row",children:[(0,s.jsx)("span",{className:"text-neutral",children:"Market Cap:"}),(0,s.jsx)("div",{className:"flex flex-row pt-0 m-0",children:(0,s.jsxs)("p",{className:"text-accent m-0 p-0 md:pl-0 pl-1",children:[(0,h.Q)(Number((0,r.d)(p||BigInt(0))),2)," ",c.nativeCurrency.symbol]})})]}),(0,s.jsxs)("div",{className:"md:w-1/2 w-full flex md:flex-col flex-row",children:[(0,s.jsx)("span",{className:"text-neutral",children:"Daily Volume:"}),(0,s.jsxs)("p",{className:"text-accent m-0 p-0 md:pl-0 pl-1",children:[(0,h.Q)(Number((0,r.d)(n||BigInt(0))),2)," ",c.nativeCurrency.symbol]})]})]})]})]})})]})})})},f=()=>{var e;let{targetNetwork:l}=(0,x.p)(),a=Math.floor(new Date().getTime()/864e5),t=Math.floor(new Date().getTime()/36e5),{data:c}=(0,m.Xy)({contractName:"TokenController",functionName:"dailyJackpot",args:[a]}),{data:d}=(0,m.Xy)({contractName:"TokenController",functionName:"getDailyVolumeLeaders",args:[a]}),{data:i}=(0,m.Xy)({contractName:"TokenController",functionName:"hourlyJackpot",args:[t]}),{data:o}=(0,m.Xy)({contractName:"TokenController",functionName:"hourlyJackpot",args:[t-1]});return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex flex-col min-h-full w-full mx-auto md:gap-5 gap-2",children:[(0,s.jsx)("div",{className:"w-full z-10 md:block hidden rounded-[1rem] bg-gradient-to-tr from-[#0F161D] via-[#C9FFFF] to-[#0F161D] hover:shadow-center hover:shadow-accent duration-300 p-[1px] md:mb-0 mb-2",children:(0,s.jsxs)("div",{className:"relative flex flex-row h-full w-full rounded-[1rem] items-center bg-[#0F161D] justify-between md:p-2 py-2 back",children:[(0,s.jsx)("img",{src:"/placeholders/banner.png",className:"absolute z-[20] left-0 -bottom-[20px] h-[250px]"}),(0,s.jsx)("img",{src:"/placeholders/banner3.svg",className:"absolute banner-image-shadow z-[19] left-0 -bottom-[20px] h-[250px]"}),(0,s.jsxs)("div",{className:"w-full z-30 flex flex-col justify-center items-center py-2",children:[(0,s.jsx)("p",{className:"md:text-6xl text-3xl font-bold hero-title mb-2 pb-0 mx-auto banner-neon tracking-wider",children:"DAILY JACKPOT"}),(0,s.jsxs)("p",{className:"md:text-4xl text-xl text-accent font-bold tracking-wider mb-6 pb-0 mx-auto",children:["REWARD: ",(0,h.Q)(Number((0,r.d)(c||BigInt(0))),8)," ",l.nativeCurrency.symbol]}),(0,s.jsxs)("div",{className:"flex flex-row",children:[(0,s.jsx)("div",{className:"w-[150px] opacity-20 text-center p-2 tradecard-gradient-0 rounded-[1rem] hover:shadow-center hover:shadow-[#FFB702] duration-300",children:(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)(n,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Previous"})]}),(0,s.jsxs)("p",{children:[(0,r.d)(o||BigInt(0))," ",l.nativeCurrency.symbol]})]})}),(0,s.jsx)("div",{className:"w-[150px] scale-125 z-20 tradecard-gradient-0 p-2 rounded-[1rem] shadow-center shadow-[#FFB702] duration-300",children:(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)(n,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Hourly Jackpot"})]}),(0,s.jsxs)("p",{children:[(0,h.Q)(Number((0,r.d)(i||BigInt(0))),8)," ",l.nativeCurrency.symbol]})]})}),(0,s.jsx)("div",{className:"w-[150px] opacity-40 text-center p-2 tradecard-gradient-0 rounded-[1rem] hover:shadow-center hover:shadow-[#FFB702] duration-300",children:(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)(n,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Next Hour"})]}),(0,s.jsxs)("p",{children:["??? ",l.nativeCurrency.symbol]})]})})]})]})]})}),(0,s.jsx)("div",{className:"w-full z-10 md:hidden block rounded-[1rem] bg-gradient-to-tr from-[#0F161D] via-[#C9FFFF] to-[#0F161D] hover:shadow-center hover:shadow-accent duration-300 p-[1px] md:mb-0 mb-2",children:(0,s.jsx)("div",{className:"relative flex flex-row h-full w-full rounded-[1rem] items-center bg-[#0F161D] justify-between md:p-2 py-2 back",children:(0,s.jsxs)("div",{className:"w-full z-30 flex flex-col justify-center items-center py-2",children:[(0,s.jsx)("p",{className:"md:text-6xl text-3xl font-bold hero-title mb-2 pb-0 mx-auto banner-neon tracking-wider",children:"DAILY JACKPOT"}),(0,s.jsxs)("p",{className:"md:text-4xl text-xl text-accent font-bold tracking-wider mb-6 pb-0 mx-auto",children:["REWARD: ",(0,h.Q)(Number((0,r.d)(c||BigInt(0))),8)," ",l.nativeCurrency.symbol]}),(0,s.jsxs)("div",{className:"flex flex-row",children:[(0,s.jsx)("div",{className:"w-[100px] h-[65px] text-xs opacity-20 text-center p-2 tradecard-gradient-0 rounded-[1rem] hover:shadow-center hover:shadow-[#FFB702] duration-300",children:(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)(n,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Previous"})]}),(0,s.jsxs)("p",{children:[(0,h.Q)(Number((0,r.d)(o||BigInt(0))),8)," ",l.nativeCurrency.symbol]})]})}),(0,s.jsx)("div",{className:"w-[100px] h-[65px] text-xs scale-125 z-20 tradecard-gradient-0 py-2 px-1 rounded-[1rem] hover:shadow-center hover:shadow-[#FFB702] duration-300",children:(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)(n,{className:"h-2 w-2"}),(0,s.jsx)("span",{children:"Hourly Jackpot"})]}),(0,s.jsxs)("p",{children:[(0,h.Q)(Number((0,r.d)(i||BigInt(0))),8)," ",l.nativeCurrency.symbol]})]})}),(0,s.jsx)("div",{className:"w-[100px] h-[65px] text-xs opacity-40 text-center p-2 tradecard-gradient-0 rounded-[1rem] hover:shadow-center hover:shadow-[#FFB702] duration-300",children:(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)(n,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Next Hour"})]}),(0,s.jsxs)("p",{children:["??? ",l.nativeCurrency.symbol]})]})})]})]})})}),(0,s.jsx)("div",{className:"w-full flex md:flex-row flex-col md:gap-5 gap-2",children:null==d?void 0:null===(e=d[0])||void 0===e?void 0:e.map((e,l)=>{if("0x0000000000000000000000000000000000000000"!==e){var a;return(0,s.jsx)(u,{index:l,tokenAddress:e,volume:null==d?void 0:null===(a=d[1])||void 0===a?void 0:a[l]},l)}})})]})})};var p=e=>{let{}=e;return(0,s.jsx)("div",{className:"w-full gap-5",children:(0,s.jsx)(f,{})})}},50812:function(e,l,a){"use strict";a.d(l,{Q:function(){return s}});let s=(e,l)=>{if(!Number.isFinite(e)||!Number.isInteger(l)||l<0)throw Error("Invalid input");let a=Math.pow(10,l);return Math.round(e*a)/a}}},function(e){e.O(0,[9472,2078,6691,1396,2328,2971,4938,1744],function(){return e(e.s=23362)}),_N_E=e.O()}]);