PageSourceSearch

https://primestaking.xyz/_next/static/chunks/0qgpy48ymtkf-.js

js primestaking.xyz collected 2026-10-09 03:28:55 UTC 9,099 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,930960,e=>{"use strict";var t=e.i(474076),r=e.i(271645),n=e.i(657688),i=e.i(666855),s=e.i(879812),o=e.i(324600),a=e.i(283425),l=e.i(46525);function c(e,t=2){return Math.abs(e)>=1e6?(0,a.default)(e,0):(0,a.default)(e,t)}e.s(["default",0,function(){let{store$:e,setState$:a}=(0,s.useStore)(),u=(0,i.useObservableState)(e),{nativeToken:C}=u.userControl,{xdcPrice:d}=u.stakingControl,h=(0,r.useMemo)(()=>Number(C?.balance||0)*Number(d||0),[C?.balance,d]),f=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{let t=async()=>{if(!f.current){f.current=!0;try{let t=await (0,l.getDataXDCblocksscan)();if(t>0){let r=e.value;a({...r,stakingControl:{...r.stakingControl,xdcPrice:String(t)}})}}finally{f.current=!1}}};d&&0!==Number(d)||t()},[d,a,e]),(0,t.jsxs)("div",{className:"flex gap-3 justify-between items-center flex-wrap w-full",children:[(0,t.jsx)(o.default,{}),(0,t.jsxs)("div",{className:"flex items-center gap-[24px]",children:[C?.symbol&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,t.jsx)(n.default,{src:`/logos/${C.symbol.toLowerCase()}.svg`,alt:C.symbol,width:24,height:24,unoptimized:!0,onError:e=>{e.target.src="/icons/icon-xdc.svg"}}),(0,t.jsx)("p",{className:"heading-h4 text-[var(--text-primary)] whitespace-nowrap",children:c(Number(C.balance||"0"),2)})]}),(0,t.jsx)("div",{className:"h-[24px] w-px bg-[#E8DCFF]"})]}),(0,t.jsxs)("p",{className:"heading-h4 text-[var(--text-primary)] whitespace-nowrap",children:["$",c(h,2)]})]})]})}])},948537,e=>{"use strict";var t=e.i(874728);e.s(["default",0,function(e){return t.default.liquidStakingApyPercentage}])},258697,e=>{"use strict";var t=e.i(474076);e.s(["default",0,function({width:e=22,height:r=20,className:n,id:i,color:s="var(--color-main)"}){return(0,t.jsx)("svg",{id:i,className:n,width:e,height:r,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M12 3C12 4.10457 9.53757 5 6.5 5C3.46243 5 1 4.10457 1 3M12 3C12 1.89543 9.53757 1 6.5 1C3.46243 1 1 1.89543 1 3M12 3V7.45715C10.7785 7.82398 10 8.37893 10 9M1 3V15C1 16.1046 3.46243 17 6.5 17C7.82963 17 9.04906 16.8284 10 16.5429V9M1 7C1 8.10457 3.46243 9 6.5 9C7.82963 9 9.04906 8.82843 10 8.54285M1 11C1 12.1046 3.46243 13 6.5 13C7.82963 13 9.04906 12.8284 10 12.5429M21 9C21 10.1046 18.5376 11 15.5 11C12.4624 11 10 10.1046 10 9M21 9C21 7.89543 18.5376 7 15.5 7C12.4624 7 10 7.89543 10 9M21 9V17C21 18.1046 18.5376 19 15.5 19C12.4624 19 10 18.1046 10 17V9M21 13C21 14.1046 18.5376 15 15.5 15C12.4624 15 10 14.1046 10 13",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}])},203565,e=>{"use strict";var t=e.i(474076);e.s(["default",0,function({width:e=20,height:r=20,className:n,id:i,color:s="var(--color-main)"}){return(0,t.jsx)("svg",{id:i,className:n,width:e,height:r,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M10 14L14 10M14 10L10 6M14 10H6M5.8 19H14.2C15.8802 19 16.7202 19 17.362 18.673C17.9265 18.3854 18.3854 17.9265 18.673 17.362C19 16.7202 19 15.8802 19 14.2V5.8C19 4.11984 19 3.27976 18.673 2.63803C18.3854 2.07354 17.9265 1.6146 17.362 1.32698C16.7202 1 15.8802 1 14.2 1H5.8C4.11984 1 3.27976 1 2.63803 1.32698C2.07354 1.6146 1.6146 2.07354 1.32698 2.63803C1 3.27976 1 4.11984 1 5.8V14.2C1 15.8802 1 16.7202 1.32698 17.362C1.6146 17.9265 2.07354 18.3854 2.63803 18.673C3.27976 19 4.11984 19 5.8 19Z",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}])},721248,e=>{"use strict";var t=e.i(271645),r=e.i(666855),n=e.i(879812);async function i(){try{let e=await fetch(`${window.location.origin}/api/prfi-price`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error(`API error: ${e.status} ${e.statusText}`);let t=await e.json();if("error"in t)throw Error(t.error);return t.price||0}catch(e){return console.warn("Could not fetch PRFI price:",e),0}}e.s(["default",0,function(){let{store$:e,setState$:s}=(0,n.useStore)(),o=Number((0,r.useObservableState)(e).stakingControl.prfiPrice||0),a=(0,t.useRef)(!1);return(0,t.useEffect)(()=>
1{if(o>0||a.current)return;a.current=!0;let t=!1;return(async()=>{try{let r=await i();if(t||!(r>0))return;let n=e.value;s({...n,stakingControl:{...n.stakingControl,prfiPrice:r}})}finally{a.current=!1}})(),()=>{t=!0}},[o,s,e]),o}],721248)},403128,e=>{"use strict";var t=e.i(474076);e.s(["default",0,function({width:e=17,height:r=17,className:n,id:i,color:s="var(--color-main)"}){return(0,t.jsxs)("svg",{id:i,className:n,width:e,height:r,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M5.5 1H2.33333C1.86662 1 1.63327 1 1.45501 1.09083C1.29821 1.17072 1.17072 1.29821 1.09083 1.45501C1 1.63327 1 1.86662 1 2.33333V5.5C1 5.96671 1 6.20007 1.09083 6.37833C1.17072 6.53513 1.29821 6.66261 1.45501 6.74251C1.63327 6.83333 1.86662 6.83333 2.33333 6.83333H5.5C5.96671 6.83333 6.20007 6.83333 6.37833 6.74251C6.53513 6.66261 6.66261 6.53513 6.74251 6.37833C6.83333 6.20007 6.83333 5.96671 6.83333 5.5V2.33333C6.83333 1.86662 6.83333 1.63327 6.74251 1.45501C6.66261 1.29821 6.53513 1.17072 6.37833 1.09083C6.20007 1 5.96671 1 5.5 1Z",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M14.6667 1H11.5C11.0333 1 10.7999 1 10.6217 1.09083C10.4649 1.17072 10.3374 1.29821 10.2575 1.45501C10.1667 1.63327 10.1667 1.86662 10.1667 2.33333V5.5C10.1667 5.96671 10.1667 6.20007 10.2575 6.37833C10.3374 6.53513 10.4649 6.66261 10.6217 6.74251C10.7999 6.83333 11.0333 6.83333 11.5 6.83333H14.6667C15.1334 6.83333 15.3667 6.83333 15.545 6.74251C15.7018 6.66261 15.8293 6.53513 15.9092 6.37833C16 6.20007 16 5.96671 16 5.5V2.33333C16 1.86662 16 1.63327 15.9092 1.45501C15.8293 1.29821 15.7018 1.17072 15.545 1.09083C15.3667 1 15.1334 1 14.6667 1Z",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M14.6667 10.1667H11.5C11.0333 10.1667 10.7999 10.1667 10.6217 10.2575C10.4649 10.3374 10.3374 10.4649 10.2575 10.6217C10.1667 10.7999 10.1667 11.0333 10.1667 11.5V14.6667C10.1667 15.1334 10.1667 15.3667 10.2575 15.545C10.3374 15.7018 10.4649 15.8293 10.6217 15.9092C10.7999 16 11.0333 16 11.5 16H14.6667C15.1334 16 15.3667 16 15.545 15.9092C15.7018 15.8293 15.8293 15.7018 15.9092 15.545C16 15.3667 16 15.1334 16 14.6667V11.5C16 11.0333 16 10.7999 15.9092 10.6217C15.8293 10.4649 15.7018 10.3374 15.545 10.2575C15.3667 10.1667 15.1334 10.1667 14.6667 10.1667Z",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M5.5 10.1667H2.33333C1.86662 10.1667 1.63327 10.1667 1.45501 10.2575C1.29821 10.3374 1.17072 10.4649 1.09083 10.6217C1 10.7999 1 11.0333 1 11.5V14.6667C1 15.1334 1 15.3667 1.09083 15.545C1.17072 15.7018 1.29821 15.8293 1.45501 15.9092C1.63327 16 1.86662 16 2.33333 16H5.5C5.96671 16 6.20007 16 6.37833 15.9092C6.53513 15.8293 6.66261 15.7018 6.74251 15.545C6.83333 15.3667 6.83333 15.1334 6.83333 14.6667V11.5C6.83333 11.0333 6.83333 10.7999 6.74251 10.6217C6.66261 10.4649 6.53513 10.3374 6.37833 10.2575C6.20007 10.
11667 5.96671 10.1667 5.5 10.1667Z",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}])},60548,e=>{"use strict";var t=e.i(271645),r=e.i(394367);e.s(["useXdcNftOnChainData",0,function(e,n,i={}){return{onChainData:(0,t.useMemo)(()=>{let t=new Map;return e.forEach(e=>{let n=String(e.totalStaked??e.total??"0"),i=String(e.pendingReward??"0"),s=e.claimedAmount,o=null!=s&&""!==s?String(s):function(e){let t=e.rewardsEarned;if(!t)return"0";try{return(0,r.formatEther)(BigInt(t))}catch{return"0"}}(e),a=e.lockedAmount??"0",l=Number(e.tokenLevel??0)||0,c=!!e.isLocked;t.set(e.idAsset,{tokenId:e.idAsset,level:l,pendingReward:i,claimedAmount:o,lockedAmount:String(a),staked:n,multiplier:e.multiplier?.toString?.()??"0",isLocked:c})}),t},[e])}}])},493262,e=>{"use strict";let t={plentiful:3,common:4,uncommon:5,rare:7,epic:9,legendary:12,mythic:15,godly:19,handcrafted:20,og:19,handmade:20};e.s(["V3_RARITY_MULTIPLIER",0,t,"v3TotalMultiplierOf",0,function(e,r){var n;let i=r??(Number(e.tokenLevel??0)||0),s=e.isLocked&&Number(e.lockBoost??0)||0;return((n=e.type)?t[n.toLowerCase().trim().replace(/\d+$/,"").trim()]??0:0)+i+s}])},884859,e=>{"use strict";var t=e.i(474076);e.s(["default",0,function({width:e=22,height:r=22,className:n,id:i,color:s="var(--color-main)"}){return(0,t.jsx)("svg",{id:i,className:n,width:e,height:r,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M13.5 18L15.5 20L20 15.5M20.9851 11.5499C20.995 11.3678 21 11.1845 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.4354 5.33651 20.858 10.7385 20.9966M11 5V11L14.7384 12.8692",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}])},328760,e=>{e.v(t=>Promise.all(["static/chunks/09h6yoc.c0n66.js"].map(t=>e.l(t))).then(()=>t(851694)))},724860,e=>{e.v(e=>Promise.resolve().then(()=>e(4715)))},235070,e=>{e.v(e=>Promise.resolve().then(()=>e(32245)))}]);

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.