-
Notifications
You must be signed in to change notification settings - Fork 0
/
607.async.js
1 lines (1 loc) · 21.8 KB
/
607.async.js
1
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[607],{6466:function(t,e,s){s.d(e,{Z:function(){return Z}});var a=s(4942),n=s(1413),i=s(91),r=s(28459),c=s(93967),l=s.n(c),o=s(62435),d=s(63330),u=s(44962),x=s(98082),m=function(t){return(0,a.Z)({},t.componentCls,{display:"flex",flexDirection:"column",justifyContent:"flex-end",marginBlock:t.marginLG,marginInline:0,color:t.colorText,fontWeight:"500",fontSize:"20px",lineHeight:"38px"})};var p=s(86074),h=function(t){var e=t.className,s=t.style,a=void 0===s?{}:s,i=t.children,c=(0,(0,o.useContext)(r.ZP.ConfigContext).getPrefixCls)("pro-card-operation"),d=function(t){return(0,x.Xj)("ProCardOperation",(function(e){var s=(0,n.Z)((0,n.Z)({},e),{},{componentCls:".".concat(t)});return[m(s)]}))}(c),u=d.wrapSSR,h=d.hashId,f=l()(c,e,h);return u((0,p.jsx)("div",{className:f,style:a,children:i}))},f=s(10357),g=function(t){return(0,a.Z)({},t.componentCls,{"&-chart":{display:"flex",flexDirection:"column",marginBlockStart:8,marginBlockEnd:8,"&-left":{marginBlockStart:0,marginInlineEnd:"16px"},"&-right":{marginBlockStart:0,marginInlineStart:"16px"}},"&-content":{display:"flex",flexDirection:"column","&-horizontal":(0,a.Z)({flexDirection:"row"},"".concat(t.componentCls,"-chart"),{alignItems:"center",alignSelf:"flex-start"})},"&-footer":{marginBlockStart:8,paddingBlockStart:"16px",borderBlockStart:"rgba(0, 0, 0, 0.08) solid ".concat(t.colorBorder)}})};var v=["children","statistic","className","chart","chartPlacement","footer"],j=function(t){var e,s=t.children,c=t.statistic,u=t.className,m=t.chart,h=t.chartPlacement,j=t.footer,Z=(0,i.Z)(t,v),y=(0,(0,o.useContext)(r.ZP.ConfigContext).getPrefixCls)("pro-statistic-card"),S=function(t){return(0,x.Xj)("StatisticCard",(function(e){var s=(0,n.Z)((0,n.Z)({},e),{},{componentCls:".".concat(t)});return[g(s)]}))}(y),N=S.wrapSSR,b=S.hashId,C=l()(y,u,b),M=c&&(0,p.jsx)(f.Z,(0,n.Z)({layout:"vertical"},c)),k=l()("".concat(y,"-chart"),b,(e={},(0,a.Z)(e,"".concat(y,"-chart-left"),"left"===h&&m&&c),(0,a.Z)(e,"".concat(y,"-chart-right"),"right"===h&&m&&c),e)),F=m&&(0,p.jsx)("div",{className:k,children:m}),B=l()("".concat(y,"-content "),b,(0,a.Z)({},"".concat(y,"-content-horizontal"),"left"===h||"right"===h)),I=(F||M)&&("left"===h?(0,p.jsxs)("div",{className:B,children:[F,M]}):(0,p.jsxs)("div",{className:B,children:[M,F]})),w=j&&(0,p.jsx)("div",{className:"".concat(y,"-footer ").concat(b).trim(),children:j});return N((0,p.jsxs)(d.Z,(0,n.Z)((0,n.Z)({className:C},Z),{},{children:[I,s,w]})))};j.Statistic=f.Z,j.Divider=u.Z,j.Operation=h,j.isProCard=!0,j.Group=function(t){return(0,p.jsx)(j,(0,n.Z)({bodyStyle:{padding:0}},t))};var Z=j},10357:function(t,e,s){s.d(e,{Z:function(){return v}});var a=s(1413),n=s(4942),i=s(91),r=s(25035),c=s(28459),l=s(83062),o=s(40411),d=s(55054),u=s(93967),x=s.n(u),m=s(62435),p=s(98082),h=function(t){var e,s,a;return(0,n.Z)({},t.componentCls,(a={display:"flex",fontSize:t.fontSize,"& + &":{marginBlockStart:4},"&-tip":{marginInlineStart:4},"&-wrapper":(0,n.Z)({display:"flex",width:"100%"},"".concat(t.componentCls,"-status"),{width:"14px"}),"&-icon":{marginInlineEnd:16},"&-trend-icon":{width:0,height:0,borderInlineEnd:"3.5px solid transparent",borderBlockEnd:"9px solid #000",borderInlineStart:"3.5px solid transparent","&-up":{transform:"rotate(0deg)"},"&-down":{transform:"rotate(180deg)"}},"&-content":(0,n.Z)({width:"100%"},"".concat(t.antCls,"-statistic-content"),{"&-value-int":{fontSize:t.fontSizeHeading3}}),"&-description":{width:"100%"}},(0,n.Z)(a,"".concat(t.antCls,"-statistic-title"),{color:t.colorText}),(0,n.Z)(a,"&-trend-up",(0,n.Z)({},"".concat(t.antCls,"-statistic-content"),(0,n.Z)({color:"#f5222d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#f5222d"}))),(0,n.Z)(a,"&-trend-down",(0,n.Z)({},"".concat(t.antCls,"-statistic-content"),(0,n.Z)({color:"#389e0d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#52c41a"}))),(0,n.Z)(a,"& &-layout-horizontal",(e={display:"flex",justifyContent:"space-between"},(0,n.Z)(e,"".concat(t.antCls,"-statistic-title"),{marginBlockEnd:0}),(0,n.Z)(e,"".concat(t.antCls,"-statistic-content-value"),{fontWeight:500}),(0,n.Z)(e,"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSize}),e)),(0,n.Z)(a,"& &-layout-inline",(s={display:"inline-flex",color:t.colorTextSecondary},(0,n.Z)(s,"".concat(t.antCls,"-statistic-title"),{marginInlineEnd:"6px",marginBlockEnd:0}),(0,n.Z)(s,"".concat(t.antCls,"-statistic-content"),{color:t.colorTextSecondary}),(0,n.Z)(s,"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSizeSM}),s)),a))};var f=s(86074),g=["className","layout","style","description","children","title","tip","status","trend","prefix","icon"],v=function(t){var e,s=t.className,u=t.layout,v=void 0===u?"inline":u,j=t.style,Z=t.description,y=(t.children,t.title),S=t.tip,N=t.status,b=t.trend,C=t.prefix,M=t.icon,k=(0,i.Z)(t,g),F=(0,(0,m.useContext)(c.ZP.ConfigContext).getPrefixCls)("pro-card-statistic"),B=function(t){return(0,p.Xj)("Statistic",(function(e){var s=(0,a.Z)((0,a.Z)({},e),{},{componentCls:".".concat(t)});return[h(s)]}))}(F),I=B.wrapSSR,w=B.hashId,R=x()(F,s,w),_=x()("".concat(F,"-status"),w),P=x()("".concat(F,"-icon"),w),D=x()("".concat(F,"-wrapper"),w),T=x()("".concat(F,"-content"),w),E=x()(w,(e={},(0,n.Z)(e,"".concat(F,"-layout-").concat(v),v),(0,n.Z)(e,"".concat(F,"-trend-").concat(b),b),e)),V=S&&(0,f.jsx)(l.Z,{title:S,children:(0,f.jsx)(r.Z,{className:"".concat(F,"-tip ").concat(w).trim()})}),z=x()("".concat(F,"-trend-icon"),w,(0,n.Z)({},"".concat(F,"-trend-icon-").concat(b),b)),Q=b&&(0,f.jsx)("div",{className:z}),A=N&&(0,f.jsx)("div",{className:_,children:(0,f.jsx)(o.Z,{status:N,text:null})}),O=M&&(0,f.jsx)("div",{className:P,children:M});return I((0,f.jsxs)("div",{className:R,style:j,children:[O,(0,f.jsxs)("div",{className:D,children:[A,(0,f.jsxs)("div",{className:T,children:[(0,f.jsx)(d.Z,(0,a.Z)({title:(y||V)&&(0,f.jsxs)(f.Fragment,{children:[y,V]}),prefix:(Q||C)&&(0,f.jsxs)(f.Fragment,{children:[Q,C]}),className:E},k)),Z&&(0,f.jsx)("div",{className:"".concat(F,"-description ").concat(w).trim(),children:Z})]})]})]}))}},70607:function(t,e,s){s.r(e),s.d(e,{default:function(){return b}});var a=s(15009),n=s.n(a),i=s(99289),r=s.n(i),c=s(5574),l=s.n(c),o=s(9004),d=s(64119),u=s(11774),x=s(38345),m=s(6466),p=s(10357),h=s(59530),f=s(45360),g=s(71230),v=s(15746),j=s(38703),Z=s(9669),y=s.n(Z),S=s(62435),N=s(86074),b=function(){var t=(0,h.useDispatch)(),e=(0,h.useSelector)((function(t){return t.global.session})),s=(0,h.useSelector)((function(t){return t.global.contractKit})),a=(0,h.useSelector)((function(t){return t.dash.chainInfo})),i=(0,h.useSelector)((function(t){return t.dash.ramInfo})),c=(0,h.useSelector)((function(t){return t.dash.nodeInfo})),Z=(0,h.useSelector)((function(t){return t.dash.marketInfo})),b=(0,h.useSelector)((function(t){return t.dash.supplyInfo})),C=(0,h.useSelector)((function(t){return t.dash.convertInfo})),M=(0,h.useSelector)((function(t){return t.dash.bridgeInfo})),k=f.ZP.useMessage(),F=l()(k,2),B=F[0],I=F[1],w=(0,h.useIntl)(),R=w.formatMessage({id:"dash.intlChainInfo"}),_=w.formatMessage({id:"dash.intlBlockTime"}),P=w.formatMessage({id:"dash.intlSecond"}),D=w.formatMessage({id:"dash.intlTotalBlocks"}),T=w.formatMessage({id:"dash.intlAccounts"}),E=w.formatMessage({id:"dash.intlContracts"}),V=w.formatMessage({id:"dash.intlRamInfo"}),z=w.formatMessage({id:"dash.intlRamPrice"}),Q=w.formatMessage({id:"dash.intlTotalRam"}),A=w.formatMessage({id:"dash.intlFreeRam"}),O=w.formatMessage({id:"dash.intlBoughtRam"}),G=w.formatMessage({id:"dash.intlBought"}),U=w.formatMessage({id:"dash.intlRamStake"}),$=w.formatMessage({id:"dash.intlRamFee"}),q=w.formatMessage({id:"dash.intlNodeInfo"}),H=w.formatMessage({id:"dash.intlNodes"}),L=w.formatMessage({id:"dash.intlOnline"}),K=w.formatMessage({id:"dash.intlProducers"}),X=w.formatMessage({id:"dash.intlBuffer"}),W=w.formatMessage({id:"dash.intlMinVotes"}),J=w.formatMessage({id:"dash.intlDFSSupply"}),Y=w.formatMessage({id:"dash.intlRewardPool"}),tt=w.formatMessage({id:"dash.intlMarketInfo"}),et=w.formatMessage({id:"dash.intlDFSPrice"}),st=w.formatMessage({id:"dash.intlMarketCap"}),at=w.formatMessage({id:"dash.intlSwapPairs"}),nt=w.formatMessage({id:"dash.intlSwapTVL"}),it=w.formatMessage({id:"dash.intl24HVolume"}),rt=w.formatMessage({id:"dash.intlTotalVolume"}),ct=w.formatMessage({id:"dash.intlSupplyInfo"}),lt=w.formatMessage({id:"dash.intlDailySupply"}),ot=w.formatMessage({id:"dash.intlHalving"}),dt=w.formatMessage({id:"dash.intlSupply"}),ut=w.formatMessage({id:"dash.intlConvertInfo"}),xt=w.formatMessage({id:"dash.intlDFSNToDFS"}),mt=w.formatMessage({id:"dash.intlDFSToDFS"}),pt=w.formatMessage({id:"dash.intlBridgeInfo"}),ht=w.formatMessage({id:"dash.intlTotalTokens"}),ft=w.formatMessage({id:"dash.intlTotalValue"}),gt=(0,S.useCallback)(function(){var e=r()(n()().mark((function e(s,a){var i,r,c,u,x,m,p,h,f,g,v,j,Z,S,N,b,C,M,k,F,I,w,R,_,P,D,T,E,V,z,Q,A,O,G,U,$,q,H,L,K,X,W,J,Y,tt,et,st,at,nt,it,rt,ct;return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a.load("eosio");case 3:return i=e.sent,e.next=6,a.load("dfsbpsvoters");case 6:return r=e.sent,e.next=9,a.load("swapswapswap");case 9:return c=e.sent,e.next=12,a.load("dfsbridgeeos");case 12:return u=e.sent,x=i.table("global"),m=i.table("producers"),p=i.table("rammarket"),h=i.table("abihash"),f=r.table("bpstatus"),g=c.table("markets"),v=u.table("convertlog"),j=u.table("convertlog2"),e.next=23,x.get();case 23:return Z=e.sent,e.next=26,m.all();case 26:return S=e.sent,e.next=29,h.all();case 29:return N=e.sent,e.next=32,p.get();case 32:return b=e.sent,e.next=35,f.all();case 35:return C=e.sent,e.next=38,g.all();case 38:return M=e.sent,e.next=41,v.get();case 41:return k=e.sent,e.next=44,j.get();case 44:return F=e.sent,e.next=47,y().get("https://api.dfs.land/dfschain/infos");case 47:return I=e.sent.data,e.next=50,s.client.v1.chain.get_info();case 50:return w=e.sent,R={blockTime:.5,totalBlocks:Number(w.head_block_num.toString()),totalAccounts:I.total_account,totalContracts:N.length},t(o.N.setChainInfo(R)),e.next=55,s.client.v1.chain.get_currency_balance("eosio.token","eosio.ramfee","DFS");case 55:return _=e.sent,P=Z.max_ram_size.toNumber(),D=Z.total_ram_bytes_reserved.toNumber(),T=P-D,E=Z.total_ram_stake.toNumber(),V={ramPrice:b.quote.balance.value/b.base.balance.value*1024,totalRam:P/1073741824,boughtRam:D/1024,freeRam:T,boughtRamRatio:D/P*100,freeRamRatio:T/P*100,totalRamStake:E/Math.pow(10,_[0].symbol.precision),ramfee:_[0].value},t(o.N.setRamInfo(V)),e.next=64,s.client.v1.chain.get_currency_balance("eosio.token","dfsminingout","DFS");case 64:return z=e.sent,e.next=67,s.client.v1.chain.get_currency_stats("eosio.token","DFS");case 67:return Q=e.sent,A={totalMinted:Q.DFS.supply.value,maxSupply:Q.DFS.max_supply.value,lpRewardPoolBal:z[0].value},t(o.N.setSupplyInfo(A)),e.next=72,s.client.v1.chain.get_producer_schedule();case 72:return O=e.sent,e.next=75,s.client.v1.chain.get_currency_balance("eosio.token","dfsbpsvoters","DFS");case 75:G=e.sent,U=O.active.producers,$=C.reduce((function(t,e){return t+e.current_status.toNumber()}),0),q={totalNodes:S.length,totalProducers:U.length,totalNodesOnline:$,rewardMinVotes:A.totalMinted/1e4,bpRewardPoolBal:G[0].value},t(o.N.setNodeInfo(q)),H=0,L=M[0].reserve0.value/M[0].reserve1.value,M.forEach((function(t){"usdtusdtusdt"===t.contract0.toString()?H+=2*t.reserve0.value:"usdtusdtusdt"===t.contract1.toString()?H+=2*t.reserve1.value:"eosio.token"===t.contract0.toString()?H+=2*t.reserve0.value*L:"eosio.token"===t.contract1.toString()&&(H+=2*t.reserve1.value*L)})),K={dfsPrice:L,dfsMarketCap:I.dfs_market_cap,swapTVL:H,swapPairs:M.length,last24hVolumeUsd:I.last24h_volume_usd,totalVolumeUsd:I.total_volume_usd},t(o.N.setMarketInfo(K)),X={dfsCurrentQuantity:k.current_quantity.value,dfsMaxQuantity:k.max_quantity.value,dfsnCurrentQuantity:F.current_quantity.value,dfsnMaxQuantity:F.max_quantity.value},t(o.N.setConvertInfo(X)),W=["btcbtcbtcbtc-BTC","usdtusdtusdt-USDT","satsstasstas-SATS","ordiordiordi-ORDI","ratsratsrats-RATS","mmssmmssmmss-MMSS","brc.token-BTCS","brc.token-BEAR","brc.token-PIIN","brc.token-MICE"],J=[],Y={},M.forEach((function(t){var e=t.contract0.toString()+"-"+t.sym0.toString().split(",")[1],s=t.contract1.toString()+"-"+t.sym1.toString().split(",")[1];J.includes(e)||J.push(e),J.includes(s)||J.push(s),"usdtusdtusdt"===t.contract0.toString()?Y[s]=(0,d.ri)(t.reserve0)/(0,d.ri)(t.reserve1):"usdtusdtusdt"===t.contract1.toString()&&(Y[e]=(0,d.ri)(t.reserve1)/(0,d.ri)(t.reserve0))})),tt=0,Y["usdtusdtusdt-USDT"]=1,et=0;case 94:if(!(et<J.length)){e.next=105;break}if(W.includes(J[et])){e.next=97;break}return e.abrupt("continue",102);case 97:return st=J[et].split("-"),at=l()(st,2),nt=at[0],it=at[1],e.next=100,s.client.v1.chain.get_currency_stats(nt,it);case 100:rt=e.sent,tt+=(0,d.ri)(rt[it].supply)*Y[J[et]];case 102:et++,e.next=94;break;case 105:ct={totalValue:tt,totalTokens:W.length},t(o.N.setBridgeInfo(ct)),e.next=112;break;case 109:e.prev=109,e.t0=e.catch(0),(0,d.Tv)(e.t0,B,"handleGetAllInfo");case 112:case"end":return e.stop()}}),e,null,[[0,109]])})));return function(t,s){return e.apply(this,arguments)}}(),[B]);return(0,S.useEffect)((function(){e&&s&>(e,s)}),[e,s,gt]),(0,N.jsxs)(u._z,{className:"dash",ghost:!0,children:[(0,N.jsx)(x.Z,{title:(0,N.jsx)("span",{className:" text-xl font-semibold",children:R}),headerBordered:!0,headStyle:{justifyContent:"center"},children:(0,N.jsxs)(g.Z,{gutter:10,children:[(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:_}),value:a.blockTime,suffix:"".concat(P)}})}),(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:D}),value:a.totalBlocks}})}),(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:T}),value:a.totalAccounts}})}),(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:E}),value:a.totalContracts}})})]})}),(0,N.jsx)(x.Z,{title:(0,N.jsx)("span",{className:"text-xl font-semibold",children:q}),headerBordered:!0,headStyle:{justifyContent:"center"},children:(0,N.jsxs)(g.Z,{gutter:10,children:[(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"",children:H}),value:c.totalNodes,description:(0,N.jsx)(p.Z,{className:"text-center",title:"".concat(L,": "),value:"".concat(c.totalNodesOnline," ").concat((c.totalNodesOnline/c.totalNodes*100).toFixed(0),"%")})}})}),(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"",children:K}),value:c.totalProducers,description:(0,N.jsx)(p.Z,{className:"text-center",title:"".concat(X,": "),value:"+30%"})}})}),(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"",children:W}),value:c.rewardMinVotes.toFixed(0),description:(0,N.jsx)(p.Z,{className:"",title:"",value:"".concat(J," * 1/10000")})}})}),(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"",children:Y}),value:c.bpRewardPoolBal.toFixed(0),suffix:"DFS"}})})]})}),(0,N.jsx)(x.Z,{title:(0,N.jsx)("span",{className:" text-xl font-semibold",children:tt}),headerBordered:!0,headStyle:{justifyContent:"center"},children:(0,N.jsxs)(g.Z,{gutter:10,children:[(0,N.jsx)(v.Z,{lg:{span:"8"},md:{span:"8"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:et}),prefix:"$",value:Z.dfsPrice.toFixed(4)}})}),(0,N.jsx)(v.Z,{lg:{span:"8"},md:{span:"8"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:st}),prefix:"$",value:Z.dfsMarketCap}})}),(0,N.jsx)(v.Z,{lg:{span:"8"},md:{span:"8"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:at}),value:Z.swapPairs}})}),(0,N.jsx)(v.Z,{lg:{span:"8"},md:{span:"8"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:nt}),prefix:"$",value:Z.swapTVL.toFixed(0)}})}),(0,N.jsx)(v.Z,{lg:{span:"8"},md:{span:"8"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:it}),prefix:"$",value:Z.last24hVolumeUsd}})}),(0,N.jsx)(v.Z,{lg:{span:"8"},md:{span:"8"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:rt}),prefix:"$",value:Z.totalVolumeUsd}})})]})}),(0,N.jsx)(x.Z,{title:(0,N.jsx)("span",{className:" text-xl font-semibold",children:ct}),headerBordered:!0,headStyle:{justifyContent:"center"},children:(0,N.jsxs)(g.Z,{gutter:10,children:[(0,N.jsx)(v.Z,{lg:{span:"5"},md:{span:"5"},sm:{span:"8"},xs:{span:"8"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:lt}),value:8640*Math.pow(.75,Math.floor(b.totalMinted/1e6))}})}),(0,N.jsx)(v.Z,{lg:{span:"5"},md:{span:"5"},sm:{span:"8"},xs:{span:"8"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:ot}),value:"".concat((1e6-b.totalMinted%1e6).toFixed(0))}})}),(0,N.jsx)(v.Z,{lg:{span:"5"},md:{span:"5"},sm:{span:"8"},xs:{span:"8"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:Y}),value:b.lpRewardPoolBal.toFixed(0),suffix:"DFS"}})}),(0,N.jsx)(v.Z,{lg:{span:"8"},md:{span:"8"},sm:{span:"23"},xs:{span:"23"},children:(0,N.jsx)(m.Z,{className:"progress",layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:dt}),valueStyle:{textAlign:"center"},value:"".concat(b.totalMinted.toFixed(0),"/").concat(b.maxSupply)},chart:(0,N.jsx)(j.Z,{percent:Number((b.totalMinted/b.maxSupply*100).toFixed(2))})})})]})}),(0,N.jsx)(x.Z,{title:(0,N.jsx)("span",{className:" text-xl font-semibold",children:ut}),headerBordered:!0,headStyle:{justifyContent:"center"},children:(0,N.jsxs)(g.Z,{gutter:10,children:[(0,N.jsx)(v.Z,{lg:{span:"12"},md:{span:"12"},sm:{span:"12"},xs:{span:"23"},children:(0,N.jsx)(m.Z,{className:"progress",layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:xt}),valueStyle:{textAlign:"center"},value:"".concat(C.dfsnCurrentQuantity.toFixed(0),"/").concat(C.dfsnMaxQuantity)},chart:(0,N.jsx)(j.Z,{percent:Number((C.dfsnCurrentQuantity/C.dfsnMaxQuantity*100).toFixed(2))})})}),(0,N.jsx)(v.Z,{lg:{span:"11"},md:{span:"11"},sm:{span:"11"},xs:{span:"23"},children:(0,N.jsx)(m.Z,{className:"progress",layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:mt}),valueStyle:{textAlign:"center"},value:"".concat(C.dfsCurrentQuantity.toFixed(0),"/").concat(C.dfsMaxQuantity)},chart:(0,N.jsx)(j.Z,{percent:Number((C.dfsCurrentQuantity/C.dfsMaxQuantity*100).toFixed(2))})})})]})}),(0,N.jsx)(x.Z,{title:(0,N.jsx)("span",{className:" text-xl font-semibold",children:pt}),headerBordered:!0,headStyle:{justifyContent:"center"},children:(0,N.jsxs)(g.Z,{gutter:10,children:[(0,N.jsx)(v.Z,{lg:{span:"12"},md:{span:"12"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:ht}),value:"".concat(M.totalTokens)}})}),(0,N.jsx)(v.Z,{lg:{span:"12"},md:{span:"12"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:ft}),prefix:"$",value:M?Number(M.totalValue).toFixed(0):0}})})]})}),(0,N.jsx)(x.Z,{title:(0,N.jsx)("span",{className:" text-xl font-semibold",children:V}),headerBordered:!0,headStyle:{justifyContent:"center"},children:(0,N.jsxs)(g.Z,{gutter:10,children:[(0,N.jsx)(v.Z,{lg:{span:"24"},md:{span:"24"},sm:{span:"24"},xs:{span:"24"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:z}),value:i.ramPrice.toFixed(8),suffix:"DFS/KB"}})}),(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"",children:Q}),value:i.totalRam,suffix:"GB",description:(0,N.jsx)(p.Z,{className:"text-center",title:"".concat(A,": "),value:"".concat((i.freeRam/1024/1024/1024).toFixed(2),"G ").concat(i.freeRamRatio.toFixed(2),"%")})}})}),(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:O}),value:i.boughtRam.toFixed(0),suffix:"K",description:(0,N.jsx)(p.Z,{className:"text-center",title:"".concat(G,": "),value:"".concat((i.boughtRam/1024/1024).toFixed(2),"G ").concat(i.boughtRamRatio.toFixed(2),"%")})}})}),(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"",children:U}),value:i.totalRamStake.toFixed(0),suffix:"DFS"}})}),(0,N.jsx)(v.Z,{lg:{span:"6"},md:{span:"6"},sm:{span:"12"},xs:{span:"12"},children:(0,N.jsx)(m.Z,{layout:"center",statistic:{title:(0,N.jsx)("div",{className:"text-center",children:$}),value:i.ramfee.toFixed(4),suffix:"DFS"}})})]})}),I]})}}}]);