PageSourceSearch

https://grxswap.io/_next/static/chunks/pages/info-57c49ea59fd63a99.js

js grxswap.io collected 2026-10-08 20:58:56 UTC 14,043 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9776],{80454:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/info",function(){return r(9367)}])},9367:function(n,e,r){"use strict";r.r(e),r.d(e,{default:function(){return z}});var t=r(96227),i=r(33983),s=r(26743),o=r(85764),c=r(38756),a=r(70241),l=r(65952),d=r(28814),u=r(65567),x=r(30984),f=r(44172),p=r(20709),h=r(28582),j=r(83996),m=r(3921),Z=r(58422),g=r(90784),y=r(38009),v=r(79006),b=r(17130);function S(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}function w(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var r=null==n?null:"undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var t,i,s=[],o=!0,c=!1;try{for(r=r.call(n);!(o=(t=r.next()).done)&&(s.push(t.value),!e||s.length!==e);o=!0);}catch(a){c=!0,i=a}finally{try{o||null==r.return||r.return()}finally{if(c)throw i}}return s}}(n,e)||function(n,e){if(!n)return;if("string"===typeof n)return S(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);"Object"===r&&n.constructor&&(r=n.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(n,e)}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(){var n,e,r=(n=["\n  justify-content: space-between;\n  flex-direction: column;\n  width: 100%;\n  padding: 0;\n  gap: 1em;\n\n  & > * {\n    width: 100%;\n  }\n\n  "," {\n    flex-direction: row;\n  } ;\n"],e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}})));return k=function(){return r},r}var D=(0,o.ZP)(c.Z).withConfig({componentId:"sc-3ce02bf4-0"})(k(),(function(n){return n.theme.mediaQueries.md})),C=function(){var n=(0,p.$G)(),e=n.t,r=n.currentLanguage.locale,i=(0,s.use
1State)(),o=i[0],c=i[1],S=(0,s.useState)(),k=S[0],C=S[1],P=(0,s.useState)(),z=P[0],_=P[1],O=(0,s.useState)(),T=O[0],U=O[1],E=w((0,v.rf)(),1)[0],$=w((0,v.B5)(),1)[0],I=w((0,v.Wz)(),1)[0],F=(new Date).toLocaleString(r,{month:"short",year:"numeric",day:"numeric"});(0,s.useEffect)((function(){null==z&&E&&_(E.volumeUSD)}),[E,z]),(0,s.useEffect)((function(){null==o&&E&&c(E.liquidityUSD)}),[o,E]);var J=(0,s.useMemo)((function(){return $?$.map((function(n){return{time:(0,f.Z)(n.date),value:n.liquidityUSD}})):[]}),[$]),A=(0,s.useMemo)((function(){return $?$.map((function(n){return{time:(0,f.Z)(n.date),value:n.volumeUSD}})):[]}),[$]),M=(0,v.jv)(),q=(0,s.useMemo)((function(){return Object.values(M).map((function(n){return n.data})).filter((function(n){return n}))}),[M]),L=(0,v.JX)(),H=(0,s.useMemo)((function(){return Object.values(L).map((function(n){return n.data})).filter((function(n){return n}))}),[L]),W=(0,s.useMemo)((function(){return Object.values(L).some((function(n){return!n.data}))}),[L]);return(0,t.jsxs)(h.Z,{children:[(0,t.jsx)(a.Z,{scale:"lg",mb:"16px",id:"info-overview-title",children:e("GrxSwap Info & Analytics")}),(0,t.jsxs)(D,{children:[(0,t.jsx)(l.Z,{children:(0,t.jsxs)(d.Z,{p:["16px","16px","24px"],children:[(0,t.jsx)(u.Z,{bold:!0,color:"secondary",children:e("Liquidity")}),o>0?(0,t.jsxs)(u.Z,{bold:!0,fontSize:"24px",children:["$",(0,g.d)(o)]}):(0,t.jsx)(x.Z,{width:"128px",height:"36px"}),(0,t.jsx)(u.Z,{children:null!==k&&void 0!==k?k:F}),(0,t.jsx)(d.Z,{height:"250px",children:(0,t.jsx)(j.Z,{data:J,setHoverValue:c,setHoverDate:C})})]})}),(0,t.jsx)(l.Z,{children:(0,t.jsxs)(d.Z,{p:["16px","16px","24px"],children:[(0,t.jsx)(u.Z,{bold:!0,color:"secondary",children:e("Volume 24H")}),z>0?(0,t.jsxs)(u.Z,{bold:!0,fontSize:"24px",children:["$",(0,g.d)(z)]}):(0,t.jsx)(x.Z,{width:"128px",height:"36px"}),(0,t.jsx)(u.Z,{children:null!==T&&void 0!==T?T:F}),(0,t.jsx)(d.Z,{height:"250px",children:(0,t.jsx)(y.Z,{data:A,setHoverValue:_,setHoverDate:U})})]})})]}),(0,t.jsx)(a.Z,{scale:"lg",mt:"40px",mb:"16px",children:e("Top Tokens")}),(0,t.jsx)(m.Z,{tokenDatas:q}),(0,t.jsx)(a.Z,{scale:"lg",mt:"40px",mb:"16px",children:e("Top Pools")}),(0,t.jsx)(Z.Z,{poolDatas:H,loading:W}),(0,t.jsx)(a.Z,{scale:"lg",mt:"40px",mb:"16px",children:e("Transactions")}),(0,t.jsx)(b.Z,{transactions:I})]})},P=function(){return(0,t.jsx)(C,{})};P.Layout=i.O;var z=P},58422:function(n,e,r){"use strict";var t=r(96227),i=r(26743),s=r(85764),o=r(98139),c=r(30984),a=r(65567),l=r(38756),d=r(65633),u=r(8704),x=r(28814),f=r(90784),p=r(43861),h=r(55970),j=r(20709),m=r(38738);function Z(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function g(){var n=Z(["\n  display: grid;\n  grid-gap: 1em;\n  align-items: center;\n  grid-template-columns: 20px 3.5fr repeat(5, 1fr);\n\n  padding: 0 24px;\n  @media screen and (max-width: 900px) {\n    grid-template-columns: 20px 1.5fr repeat(3, 1fr);\n    & :nth-child(4),\n    & :nth-child(5) {\n      display: none;\n    }\n  }\n  @media screen and (max-width: 500px) {\n    grid-template-columns: 20px 1.5fr repeat(1, 1fr);\n    & :nth-child(4),\n    & :nth-child(5),\n    & :nth-child(6),\n    & :nth-child(7) {\n      display: none;\n    }\n  }\n  @media screen and (max-width: 480px) {\n    grid-template-columns: 2.5fr repeat(1, 1fr);\n    > *:nth-child(1) {\n      display: none;\n    }\n  }\n"]);return g=function(){return n},n}function y(){var n=Z(["\n  text-decoration: none;\n  :hover {\n    cursor: pointer;\n    opacity: 0.7;\n  }\n"]);return y=function(){return n},n}var v=s.ZP.div.withConfig({componentId:"sc-2a44d31e-0"})(g()),b=(0,s.ZP)(o.a).withConfig({componentId:"sc-2a44d31e-1"})(y()),S="volumeUSD",w="liquidityUSD",k="volumeUSDWeek",D="lpFees24h",C="lpApr7d",P=function(){return(0,t.jsxs)(v,{children:[(0,t.jsx)(c.Z,{}),(0,t.jsx)(c.Z,{}),(0,t.jsx)(c.Z,{}),(0,t.jsx)(c.Z,{}),(0,t.jsx)(c.Z,{}),(0,t.jsx)(c.Z,{}),(0,t.jsx)(c.Z,{})]})},z=function(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P,{}),(0,t.jsx)(P,{}),(0,t.jsx)(P,{})]})},_=function(n){var e=n.poolData,r=n.index;return(0,t.jsx)(b,{to:"/info/pool/".concat(e.address),children:(0,t.jsxs)(v,{children:[(0,t.jsx)(a.Z,{children:r+1}),(0,t.jsxs)(l.Z,{children:[(0,t.jsx)(h.g,{address0:e.token0.address,address1:e.token1.address}),(0,t.jsxs)(a.Z,{ml:"8px",children:[e.token0.symbol,"/",e.token1.symbol]})]}),(0,t.jsxs)(a.Z,{children:["$",(0,f.d)(e.volumeUSD)]}),(0,t.jsxs)(a.Z,{children:["$",(0,f.d)(e.volumeUSDWeek)]}),(0,t.jsxs)(a.Z,{children:["$",(0,f.d)(e.lpFees24h)]}),(0,t.jsxs)(a.Z,{children:[(0,f.d)(e.lpApr7d),"%"]}),(0,t.jsxs)(a.Z,{children:["$",(0,f.d)(e.liquidityUSD)]})]})})};e.Z=function(n){var e=n.poolDatas,r=n.loading,s=n.emptyText,o=(0,i.useState)(S),c=o[0],f=
1o[1],h=(0,i.useState)(!0),Z=h[0],g=h[1],y=(0,j.$G)().t,b=(0,i.useState)(1),O=b[0],T=b[1],U=(0,i.useState)(1),E=U[0],$=U[1];(0,i.useEffect)((function(){var n=1;e.length%p.si===0&&(n=0),$(Math.floor(e.length/p.si)+n)}),[e]);var I=(0,i.useMemo)((function(){return e?e.sort((function(n,e){return n&&e?n[c]>e[c]?1*(Z?-1:1):-1*(Z?-1:1):-1})).slice(p.si*(O-1),O*p.si):[]}),[O,e,Z,c]),F=(0,i.useCallback)((function(n){f(n),g(c!==n||!Z)}),[Z,c]),J=(0,i.useCallback)((function(n){return c===n?Z?"\u2193":"\u2191":""}),[Z,c]);return(0,t.jsxs)(m.y6,{children:[(0,t.jsxs)(v,{children:[(0,t.jsx)(a.Z,{color:"secondary",fontSize:"12px",bold:!0,children:"#"}),(0,t.jsx)(a.Z,{color:"secondary",fontSize:"12px",bold:!0,textTransform:"uppercase",children:y("Pool")}),(0,t.jsxs)(m._J,{color:"secondary",fontSize:"12px",bold:!0,onClick:function(){return F(S)},textTransform:"uppercase",children:[y("Volume 24H")," ",J(S)]}),(0,t.jsxs)(m._J,{color:"secondary",fontSize:"12px",bold:!0,onClick:function(){return F(k)},textTransform:"uppercase",children:[y("Volume 7D")," ",J(k)]}),(0,t.jsxs)(m._J,{color:"secondary",fontSize:"12px",bold:!0,onClick:function(){return F(D)},textTransform:"uppercase",children:[y("LP reward fees 24H")," ",J(D)]}),(0,t.jsxs)(m._J,{color:"secondary",fontSize:"12px",bold:!0,onClick:function(){return F(C)},textTransform:"uppercase",children:[y("LP reward APR")," ",J(C)]}),(0,t.jsxs)(m._J,{color:"secondary",fontSize:"12px",bold:!0,onClick:function(){return F(w)},textTransform:"uppercase",children:[y("Liquidity")," ",J(w)]})]}),(0,t.jsx)(m.SS,{}),I.length>0?(0,t.jsxs)(t.Fragment,{children:[I.map((function(n,e){return n?(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)(_,{index:(O-1)*p.si+e,poolData:n}),(0,t.jsx)(m.SS,{})]},n.address):null})),r&&(0,t.jsx)(P,{}),(0,t.jsxs)(m.Ob,{children:[(0,t.jsx)(m.Eh,{onClick:function(){T(1===O?O:O-1)},children:(0,t.jsx)(d.Z,{color:1===O?"textDisabled":"primary"})}),(0,t.jsx)(a.Z,{children:y("Page %page% of %maxPage%",{page:O,maxPage:E})}),(0,t.jsx)(m.Eh,{onClick:function(){T(O===E?O:O+1)},children:(0,t.jsx)(u.Z,{color:O===E?"textDisabled":"primary"})})]})]}):(0,t.jsx)(t.Fragment,{children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(z,{}),(0,t.jsx)(x.Z,{})]}):(0,t.jsx)(l.Z,{px:"24px",py:"24px",justifyContent:"center",children:(0,t.jsx)(a.Z,{color:"textSubtle",children:null!==s&&void 0!==s?s:y("No pools data available")})})})]})}},3921:function(n,e,r){"use strict";var t=r(96227),i=r(26743),s=r(85764),o=r(30984),c=r(21041),a=r(38756),l=r(65567),d=r(65633),u=r(8704),x=r(28814),f=r(98139),p=r(55970),h=r(90784),j=r(26398),m=r(20709),Z=r(13509),g=r.n(Z),y=r(38738);function v(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function b(){var n=v(["\n  display: grid;\n  grid-gap: 1em;\n  align-items: center;\n\n  padding: 0 24px;\n\n  grid-template-columns: 20px 3fr repeat(4, 1fr);\n\n  @media screen and (max-width: 900px) {\n    grid-template-columns: 20px 2fr repeat(3, 1fr);\n    & :nth-child(4) {\n      display: none;\n    }\n  }\n\n  @media screen and (max-width: 800px) {\n    grid-template-columns: 20px 2fr repeat(2, 1fr);\n    & :nth-child(6) {\n      display: none;\n    }\n  }\n\n  @media screen and (max-width: 670px) {\n    grid-template-columns: 1fr 1fr;\n    > *:first-child {\n      display: none;\n    }\n    > *:nth-child(3) {\n      display: none;\n    }\n  }\n"]);return b=function(){return n},n}function S(){var n=v(["\n  text-decoration: none;\n  :hover {\n    cursor: pointer;\n    opacity: 0.7;\n  }\n"]);return S=function(){return n},n}function w(){var n=v(["\n  @media screen and (max-width: 670px) {\n    width: 16px;\n    height: 16px;\n  }\n"]);return w=function(){return n},n}var k=s.ZP.div.withConfig({componentId:"sc-20f79d13-0"})(b()),D=(0,s.ZP)(f.a).withConfig({componentId:"sc-20f79d13-1"})(S()),C=(0,s.ZP)(p.X).withConfig({componentId:"sc-20f79d13-2"})(w()),P=function(){var n=(0,t.jsxs)(k,{children:[(0,t.jsx)(o.Z,{}),(0,t.jsx)(o.Z,{}),(0,t.jsx)(o.Z,{}),(0,t.jsx)(o.Z,{}),(0,t.jsx)(o.Z,{}),(0,t.jsx)(o.Z,{})]});return(0,t.jsxs)(t.Fragment,{children:[n,n,n]})},z=function(n){var e=n.tokenData,r=n.index,i=(0,c.Z)(),s=i.isXs,o=i.isSm;return(0,t.jsx)(D,{to:"/info/token/".concat(e.address),children:(0,t.jsxs)(k,{children:[(0,t.jsx)(a.Z,{children:(0,t.jsx)(l.Z,{children:r+1})}),(0,t.jsxs)(a.Z,{alignItems:"center",children:[(0,t.jsx)(C,{address:e.address}),(s||o)&&(0,t.jsx)(l.Z,{ml:"8px",children:e.symbol}),!s&&!o&&(0,t.jsxs)(a.Z,{marginLeft:"10px",children:[(0,t.jsx)(l.Z,{children:e.name}),(0,t.jsxs)(l.Z,{ml:"8px",children:["(",e.symbol,")"]})]})]}),(0,t.jsxs)(l.Z,{fontWeight:400,children:["$",(0,h.d)(e.priceUSD,{notation:"standard"})]}),(0,t.jsx)(l.Z,{fontWeight:400,children:(0,t.jsx)(j.Z,{value:e.priceUSDChange,fontWeight:400})}),(0,t.jsxs)(l.Z,{fontWeight:400,children:["$",(0,h.d)(e.volumeUSD)]}),(0,t.jsxs)(l.Z,{fontWeight:400,children:["$",(0,h.d)(e.liquidityUSD)]})]})})},_="name",O="volumeUSD",T="liquidityUSD",U="priceUSD",E="priceUSDChange";e.Z=function(n){var e=n.tokenDatas,r=n.maxItems,s=void 0===r?10:r,c=(0,i.useState)(O),a=c[0],f=c[1],p=(0,i.useState)(!0),h=p[0],j=p[1],Z=(0,m.$G)().t,v=(0,i.useState)(1),b=v[0],S=v[1],w=(0,i.useState)(1),D=w[0],C=w[1];(0,i.useEffect)((function(){var n=1;e&&(e.length%s===0&&(n=0),C(Math.floor(e.length/s)+n))}),[s,e]);var $=(0,i.useMemo)((function(){return e?g()(e,(function(n){return n[a]}),h?"desc":"asc").slice(s*(b-1),b*s):[]}),[e,s,b,h,a]),I=(0,i.useCallback)((function(n){f(n),j(a!==n||!h)}),[h,a]),F=(0,i.useCallback)((function(n){return a===n?h?"\u2193":"\u2191":""}),[h,a]);return e?(0,t.jsxs)(y.y6,{children:[(0,t.jsxs)(k,{children:[(0,t.jsx)(l.Z,{color:"secondary",fontSize:"12px",bold:!0,children:"#"}),(0,t.jsxs)(y._J,{color:"secondary",fontSize:"12px",bold:!0,onClick:function(){return I(_)},textTransform:"uppercase",children:[Z("Name")," ",F(_)]}),(0,t.jsxs)(y._J,{color:"secondary",fontSize:"12px",bold:!0,onClick:function(){return I(U)},textTransform:"uppercase",children:[Z("Price")," ",F(U)]}),(0,t.jsxs)(y._J,{color:"secondary",fontSize:"12px",bold:!0,onClick:function(){return I(E)},textTransform:"uppercase",children:[Z("Price Change")," ",F(E)]}),(0,t.jsxs)(y._J,{color:"secondary",fontSize:"12px",bold:!0,onClick:function(){return I(O)},textTransform:"uppercase",children:[Z("Volume 24H")," ",F(O)]}),(0,t.jsxs)(y._J,{color:"secondary",fontSize:"12px",bold:!0,onClick:function(){return I(T)},textTransform:"uppercase",children:[Z("Liquidity")," ",F(T)]})]}),(0,t.jsx)(y.SS,{}),$.length>0?(0,t.jsxs)(t.Fragment,{children:[$.map((function(n,e){return n?(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)(z,{index:10*(b-1)+e,tokenData:n}),(0,t.jsx)(y.SS,{})]},n.address):null})),(0,t.jsxs)(y.Ob,{children:[(0,t.jsx)(y.Eh,{onClick:function(){S(1===b?b:b-1)},children:(0,t.jsx)(d.Z,{color:1===b?"textDisabled":"primary"})}),(0,t.jsx)(l.Z,{children:Z("Page %page% of %maxPage%",{page:b,maxPage:D})}),(0,t.jsx)(y.Eh,{onClick:function(){S(b===D?b:b+1)},children:(0,t.jsx)(u.Z,{color:b===D?"textDisabled":"primary"})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P,{}),(0,t.jsx)(x.Z,{})]})]}):(0,t.jsx)(o.Z,{})}}},function(n){n.O(0,[8508,8596,3905,7438,7889,1109,6335,5080,9774,2888,179],(function(){return e=80454,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
2//# sourceMappingURL=info-57c49ea59fd63a99.js.map

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.