PageSourceSearch

https://goldentree.netlify.app/static/js/14.ff44402c.chunk.js

js goldentree.netlify.app collected 2026-10-03 10:50:58 UTC 50,343 bytes, 2 lines download raw bytes

1(this.webpackJsonpsmartecosystem=this.webpackJsonpsmartecosystem||[]).push([[14],{1008:function(t,e,n){"use strict";n.r(e);var a=n(224),r=n(159),i=n(450),o=n(83),c=n(449),s=n(0),l="hero",d="/static/img/main_golden/hero.svg",x="heroMobile",p="/static/img/main_golden/mobileHero.svg",h=Object(c.a)((function(t){return{heroCustomStyle:{height:"289px",display:"block",overflow:"hidden",width:"100%","@media (max-width: 1280px)":{marginTop:"100px"}},heroMobileCustomStyle:{height:"200px",display:"block",overflow:"hidden",width:"100%",position:"relative","@media (max-width: 1280px)":{marginTop:"100px"}},heroTitle:{position:"absolute",top:"121px",left:"50px",textShadow:"4px 4px 6px rgba(0, 0, 0, 0.5)",color:"#EDEDED",lineHeight:"29px !important",fontSize:"24px !important",fontWeight:"700 !important"}}}));var u=function(){var t=h();return Object(s.jsxs)(r.a,{sx:{flexGrow:1,position:"relative",background:"rgba(0, 0, 0, .25)"},children:[Object(s.jsx)(i.a,{mdDown:!0,children:Object(s.jsxs)(r.a,{className:t.heroCustomStyle,children:[Object(s.jsx)(r.a,{component:"img",src:d,alt:l,sx:{position:"absolute",top:"21px",right:"246px"}}),Object(s.jsxs)(r.a,{sx:{position:"absolute",bottom:"70px",left:"90px"},children:[Object(s.jsx)(o.a,{sx:{fontSize:"36px",fontWeight:"600",color:"#EDEDED",textShadow:"4px 4px 6px rgba(0, 0, 0, 0.5)",lineHeight:"100%"},children:"Contribute on growing"}),Object(s.jsx)(o.a,{sx:{fontSize:"36px",fontWeight:"600",color:"#E0A501",textShadow:"4px 4px 6px rgba(0, 0, 0, 0.5)",lineHeight:"100%"},children:"the Golden Tree,"}),Object(s.jsx)(o.a,{sx:{fontSize:"36px",fontWeight:"600",color:"#E0A501",textShadow:"4px 4px 6px rgba(0, 0, 0, 0.5)",lineHeight:"100%"},children:"grab your future!"})]})]})}),Object(s.jsx)(i.a,{mdUp:!0,children:Object(s.jsxs)(r.a,{className:t.heroMobileCustomStyle,children:[Object(s.jsx)(r.a,{component:"img",src:p,alt:x,position:"absolute",bottom:"0",right:"20px"}),Object(s.jsxs)(r.a,{sx:{position:"absolute",bottom:"82px",left:"20px"},children:[Object(s.jsx)(o.a,{sx:{fontSize:"20px",fontWeight:"600",color:"#EDEDED",textShadow:"4px 4px 6px rgba(0, 0, 0, 0.5)",lineHeight:"100%"},children:"Contribute on growing"}),Object(s.jsx)(o.a,{sx:{fontSize:"20px",fontWeight:"600",color:"#E0A501",textShadow:"4px 4px 6px rgba(0, 0, 0, 0.5)",lineHeight:"100%"},children:"the Golden Tree,"}),Object(s.jsx)(o.a,{sx:{fontSize:"20px",fontWeight:"600",color:"#E0A501",textShadow:"4px 4px 6px rgba(0, 0, 0, 0.5)",lineHeight:"100%"},children:"grab your future!"})]})]})})]})},b=n(489),g=n(497),j=n(18),m=n(24),f=n(13),O=n(4),w=n.n(O),S=n(1),v=n.n(S),y=n(468),E=n(117),T=n.n(E),D=n(541),A=n.n(D),k=n(115),C=n(160),W=n(461),P=n(44),z=n(84),I=n.n(z),N=n(469),G=n(452),M=n(225),B=n(51),H=n(41),R=n(228),_=n(488),L=n(26),F=n(31),U=n(116),q=n(501),X=n(495),J=n(58),Y=Object(c.a)((function(t){return{searchCustomStyle:{width:"100%",height:"40px",position:"relative",justifyContent:"center","@media (max-width: 968px)":{}},outBoxStyle:{padding:"30px 30px 50px 30px !important",position:"relative",background:"linear-gradient(180deg, #212121 0%, #000000 100%)",boxSizing:"border-box",borderRadius:"10px",width:"100%",textAlign:"center"},innerBoxStyle:{padding:"20px 55px 0 55px","@media (max-width: 968px)":{padding:"20px 0"}},closeIconStyle:{cursor:"pointer",position:"absolute",top:"31px",right:"31px",color:"#EDEDED"},descStyle:{padding:"0 82px","@media (max-width: 968px)":{padding:"0"}},cardBoxStyle:{width:"37%"},cardInnerBoxStyle:{padding:"20px 0",textAlign:"center"},cardHeadingStyle:{"@media (max-width: 968px)":{fontSize:"8px !important"}},cardContentTitleStyle:function(t){return{color:t.colors.primary.main,fontSize:"40px !important",fontWeight:"700",height:"59px",lineHeight:"100% !important",marginTop:"10px !important","@media (max-width: 968px)":{fontSize:"30px !important",height:"37px",marginTop:"6px !important"}}},noteStyle:{marginTop:"30px !important","@media (max-width: 968px)":{marginTop:"17px !important",fontSize:"10px !important"}},innerInputStyle:function(t){return{padding:"9px 60px 9px 20px",height:"100%",borderRadius:"10px !important",background:"#EDEDED",color:"#5A5A5A !important",fontSize:"18px !important",fontWeight:"600 !important","@media (max-width: 968px)":{fontSize:"14px !important",padding:"5px 60px 5px 0 !important"}}},innerInputTitleStyle:function(t){return{margin:"0 auto",position:"absolute",right:"20px",color:t.colors.blackAlt.main,"@media (max-width: 968px)":{fontSize:"11px !important"}}},priceStyle:{marginTop:"20px",padding:"0 130px","@media (max-width: 968px)":{padding:"0 20px"}}}})),Q=["10%","25%","50%","75%","100%"],Z=function(t){var e=Object(P.a)(),n=Y(e),a=Object(F.c)(),c=a.account,l=a.chainId,d=Object(R.b)().fetchTokenBalance,x=Object(_.a)(),p=x.sellSmtc,h=x.isLoading,u=Object(S.useState)(""),b=Object(f.a)(u,2),g=b[0],j=b[1],O=Object(S.useState)(0),v=Object(f.a)(O,2),y=v[0],E=v[1],T=Object(S.useState)("0"),D=Object(f.a)(T,2),A=D[
10],z=D[1],Z=function(){var e=Object(m.a)(w.a.mark((function e(n){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g&&0!==Number(g)){e.next=3;break}return J.c.error("Please input desire smtc amount"),e.abrupt("return");case 3:if(!(Object(L.j)(A)-parseFloat(g)<0)){e.next=6;break}return J.c.error("There is no enough smtc in your wallet"),e.abrupt("return");case 6:return e.next=8,p(Object(L.j)(g));case 8:if(!e.sent){e.next=10;break}t.onHandleSellSmtcClick(n);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(S.useEffect)((function(){function t(){return(t=Object(m.a)(w.a.mark((function t(){var e,n;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(L.f)("SmartTokenCash",l);case 2:return e=t.sent,t.next=5,d(e);case 5:n=t.sent,z(n);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}c&&l&&function(){t.apply(this,arguments)}()}),[c,l]),Object(s.jsxs)(r.a,{className:n.outBoxStyle,children:[Object(s.jsx)(I.a,{onClick:t.onHandleSellSmtcClose,className:n.closeIconStyle}),Object(s.jsx)(o.a,{variant:"h2",color:"#E0A501",fontWeight:"700",marginBottom:"20px",children:"How many SMTC that you want to sell?"}),Object(s.jsx)(W.a,{sx:{border:"2px solid #323232"}}),Object(s.jsxs)(r.a,{className:n.innerBoxStyle,children:[Object(s.jsx)(o.a,{variant:"h4",className:n.descStyle,children:"Selling SMTC at threshold price will burn the SMTC and be removed from circulation"}),Object(s.jsxs)(B.a,{marginTop:"20px",children:[Object(s.jsx)(r.a,{className:n.cardBoxStyle,children:Object(s.jsx)(C.a,{width:"100%",height:"100%",background:e.colors.gradients.grey,border:"none",children:Object(s.jsxs)(r.a,{className:n.cardInnerBoxStyle,children:[Object(s.jsx)(o.a,{variant:"h4",className:n.cardHeadingStyle,children:"Total smtc amount"}),Object(s.jsx)(o.a,{className:n.cardContentTitleStyle,children:A}),Object(s.jsx)(o.a,{variant:"h4",color:"#E0A501",fontWeight:"700",className:n.cardHeadingStyle,children:"SMTC"})]})})}),Object(s.jsxs)(r.a,{width:"57%",display:"flex",flexDirection:"column",children:[Object(s.jsxs)(N.a,{variant:"outlined",className:n.searchCustomStyle,children:[Object(s.jsx)(G.a,{id:"outlined-adornment-weight",placeholder:"990",className:n.innerInputStyle,value:g,onChange:function(t){j(t.target.value),Object(L.j)(A)>0&&E(parseFloat(t.target.value)/Object(L.j)(A)*100)}}),Object(s.jsx)(o.a,{variant:"h3",className:n.innerInputTitleStyle,children:"SMTC"})]}),Object(s.jsx)(i.a,{mdDown:!0,children:Object(s.jsx)(B.a,{marginTop:"10px",children:Q.map((function(t,e){return Object(s.jsx)(M.a,{title:t,background:Object(q.a)(y,t),borderRadius:"20px",padding:"8px 12px",color:"#EDEDED",fontSize:"14px"},e)}))})}),Object(s.jsx)(i.a,{mdUp:!0,children:Object(s.jsx)(B.a,{marginTop:"10px",children:Q.map((function(t,e){return Object(s.jsx)(M.a,{title:t,background:Object(q.a)(y,t),borderRadius:"20px",padding:"5px",color:"#EDEDED",fontSize:"8px"},e)}))})})]})]}),Object(s.jsxs)(H.a,{className:n.priceStyle,children:[Object(s.jsxs)(B.a,{children:[Object(s.jsx)(o.a,{variant:"h4",children:"Amount to receive:"}),Object(s.jsxs)(o.a,{variant:"h4",color:"#E0A501",children:[Object(U.a)(Number(g)*Number(t.smtcPrice),18)," ","BUSD"]})]}),Object(s.jsxs)(B.a,{children:[Object(s.jsx)(o.a,{variant:"h4",children:"Current threshold price:"}
1),Object(s.jsxs)(o.a,{variant:"h4",color:"#E0A501",children:[t.smtcPrice," BUSD"]})]}),Object(s.jsxs)(B.a,{children:[Object(s.jsx)(o.a,{variant:"h4",children:"Price on DEX:"}),Object(s.jsx)(o.a,{variant:"h4",color:"#E0A501",children:"120 BUSD"})]})]}),Object(s.jsxs)(B.a,{marginTop:"48px",height:"50px",children:[Object(s.jsxs)(k.a,{width:"240px",height:"100%",background:h?"#936900":"#E0A501",color:"#212121",fontSize:"22px",fontWeight:"600",boxShadow:"21px 21px 10px rgba(0, 0, 0, 0.5)",borderRadius:"35px",onHandleClick:function(t){return Z(t)},children:["Sell now ",h&&Object(s.jsx)(X.a,{})]}),Object(s.jsx)(k.a,{width:"240px",height:"100%",background:"#936900",color:"#FFFFFF",fontSize:"22px",fontWeight:"600",boxShadow:"21px 21px 10px rgba(0, 0, 0, 0.5)",borderRadius:"35px",onHandleClick:t.onHandleSellSmtcClose,children:"Cancel"})]})]})]})},$=function(t){return Object(s.jsxs)(r.a,{sx:{padding:"30px 30px 70px 30px !important",position:"relative",background:"linear-gradient(180deg, #212121 0%, #000000 100%)",boxSizing:"border-box",borderRadius:"10px",width:"100%",textAlign:"center"},children:[Object(s.jsx)(I.a,{onClick:t.onHandleSellSmtcClose,sx:{cursor:"pointer",position:"absolute",top:"31px",right:"31px",color:"#EDEDED"}}),Object(s.jsx)(o.a,{variant:"h2",color:"#E0A501",fontWeight:"700",marginBottom:"20px",children:"Sell request is confirmed!"}),Object(s.jsx)(W.a,{sx:{border:"2px solid #323232"}}),Object(s.jsxs)(H.a,{padding:"130px 70px 0 70px",children:[Object(s.jsx)(o.a,{variant:"h2",color:"#EDEDED",marginBottom:"138px",sx:{letterSpacing:"2px"},children:"BUSD token should have been sent to your wallet!"}),Object(s.jsx)(k.a,{width:"240px",height:"50px",background:"#E0A501",color:"#212121",fontSize:"22px",fontWeight:"600",boxShadow:"21px 21px 10px rgba(0, 0, 0, 0.5)",borderRadius:"35px",onHandleClick:t.onHandleSellSmtcClose,children:"Got it"})]})]})},K=n(482),V=Object(c.a)({customBoxStyle:{width:"100%",display:"flex",justifyContent:"space-between","@media (max-width: 968px)":{justifyContent:"space-around",flexWrap:"wrap"}},customInnerBoxStyle:{width:"200px",height:"120px","@media (max-width: 968px)":{marginBottom:"20px"},"@media (max-width: 600px)":{width:"270px"}},mainTitleTopStyle:{height:"40px",fontSize:"18px !important",fontWeight:"600 !important",color:"#EDEDED",lineHeight:"100% !important",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center"},mainTitleDownStyle:{height:"60px",fontSize:"20px !important",fontWeight:"700 !important",color:"#E0A501",padding:"0 10px",lineHeight:"100% !important",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center"},popoverRoot:{display:"flex",justifyContent:"center",alignItems:"center"}}),tt=Object(c.a)({progressTitleStyle:{fontSize:"18px",fontWeight:"600",color:"#EDEDED","@media (max-width: 968px)":{fontSize:"14px"}},treeCustomOutBoxStyle:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"20px","@media (max-width: 968px)":{flexDirection:"column"}},treeCustomInnerBoxStyle:{width:"50%","@media (max-width: 968px)":{width:"100%"}},treeRewardOutStyle:{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",paddingLeft:"20px","@media (max-width: 968px)":{paddingLeft:"0"}}}),et=Object(c.a)({customOutBoxStyle:{"@media (max-width: 968px)":{marginTop:"20px"}},customHeadingStyle:{padding:"0 70px",color:"#E0A501",fontSize:"18px !important",fontWeight:"700 !important",lineHeight:"100% !important",marginBottom:"10px !important",textAlign:"center","@media (max-width: 968px)":{padding:"0 50px"}}}),nt=Object(c.a)({customCardOutBoxStyle:{padding:"10px 10px 10px 30px",height:"100%",display:"flex",justifyContent:"space-between","@media (max-width: 968px)":{padding:"10px"}}}),at=n(74),rt="tooltipIcon",it="/static/img/main_dashboard/tooltipIcon.svg",ot=function(){var t=V(),e=Object(S.useRef)(),n=Object(F.c)(),a=n.account,i=n.chainId,c=Object(_.a)(),l=c.fetchGrowth,d=c.fetchGlobalGrowth,x=c.fetchCirculation,p=c.fetchThreshold,h=c.fetchGoldenTreePhase,u=c.fetchContributionOf,b=Object(S.useState)(!1),g=Object(f.a)(b,2),O=g[0],v=g[1],E=function(){v(!1)},D=Object(S.useState)(!1),W=Object(f.a)(D,2),P=W[0],z=W[1],I=Object(S.useState)(!0),N=Object(f.a)(I,2),G=N[0],M=N[1],R=Object(S.useState)({personal:"0",global:"0",percent:"0"}),q=Object(f.a)(R,2),X=q[0],J=q[1],Y=Object(S.useState)("0"),Q=Object(f.a)(Y,2),tt=Q[0],et=Q[1],nt=Object(S.useState)("0"),ot=Object(f.a)(nt,2),ct=ot[0],st=ot[1],lt=Object(S.useState)("0"),dt=Object(f.a)(lt,2),xt=dt[0],pt=dt[1],ht=Object(S.useState)("0"),ut=Object(f.a)(ht,2),bt=ut[0],gt=ut[1];return Object(S.useEffect)((function(){function t(){return t=Object(m.a)(w.a.mark((function t(){var e,n,r,o,c,s,b,g,j;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(a);case 2:return e=t.sent,t.next=5,d();case 5:return n=t.sent,t.next=8,u(a);case 8:return r=t.sent,J({personal:Object(U.a)(e,18),global:Object(U.a)(n,18),percent:r.toString()}),t.next=12,h();case 12:return o=t.sent,gt(o.toString()),t.next=16,x();case 16:return c=t.sent,et(c.toString()),s=Object(L.g)("GoldenTreePool",i),t.next=21,Object(L.f)("BUSDToken",
1i);case 21:return b=t.sent,t.next=24,b.balanceOf(s);case 24:return g=t.sent,st(Object(U.c)(at.utils.formatEther(g),4)),t.next=28,p();case 28:j=t.sent,pt(Object(U.a)(j,18));case 30:case"end":return t.stop()}}),t)}))),t.apply(this,arguments)}return a&&i&&function(){t.apply(this,arguments)}(),function(){J((function(t){return Object(j.a)({},t)})),gt("0"),et("0"),st("0"),pt("0")}}),[a,i]),Object(s.jsxs)(r.a,{className:t.customBoxStyle,children:[Object(s.jsx)(r.a,{className:t.customInnerBoxStyle,children:Object(s.jsx)(C.a,{height:"100%",children:Object(s.jsxs)(H.a,{padding:"10px 5px",height:"100%",children:[Object(s.jsx)(o.a,{className:t.mainTitleTopStyle,children:"Your contribution"}),Object(s.jsxs)(o.a,{className:t.mainTitleDownStyle,children:[X.personal," Growth (",X.percent,"%)"]})]})})}),Object(s.jsx)(r.a,{className:t.customInnerBoxStyle,children:Object(s.jsx)(C.a,{height:"100%",children:Object(s.jsxs)(H.a,{padding:"20px 5px",height:"100%",children:[Object(s.jsx)(o.a,{className:t.mainTitleTopStyle,children:"Global contribution (current)"}),Object(s.jsxs)(o.a,{className:t.mainTitleDownStyle,children:[X.global," Growth"]})]})})}),Object(s.jsx)(r.a,{className:t.customInnerBoxStyle,children:Object(s.jsx)(C.a,{height:"100%",children:Object(s.jsxs)(H.a,{padding:"20px 5px",height:"100%",children:[Object(s.jsx)(o.a,{className:t.mainTitleTopStyle,children:"Current Golden Tree Phase"}),Object(s.jsxs)(o.a,{className:t.mainTitleDownStyle,children:[bt,"th"]})]})})}),Object(s.jsx)(r.a,{ref:e,children:Object(s.jsx)(C.a,{height:"120px",width:"320px",children:Object(s.jsxs)(H.a,{padding:"20px 5px",height:"100%",children:[Object(s.jsx)(o.a,{variant:"h2",sx:{fontWeight:"700",height:"29px",color:"#E0A501",display:"flex",alignItems:"center",justifyContent:"center"},children:"Golden Tree Pool"}),Object(s.jsxs)(B.a,{height:"40px",marginTop:"16px",padding:"0 10px",children:[Object(s.jsxs)(r.a,{sx:{height:"100%",display:"flex",alignItems:"center",cursor:"pointer"},onClick:function(){z(!0)},children:[P?Object(s.jsx)(A.a,{sx:{color:"#E0A501"}}):Object(s.jsx)(T.a,{sx:{color:"#E0A501"}}),Object(s.jsx)(o.a,{variant:"h3",textAlign:"center",height:"22px",lineHeight:"22px",color:"#E0A501",children:"Statistic"})]}),Object(s.jsx)(k.a,{width:"180px",height:"40px",background:"#E0A501",color:"#212121",fontSize:"14px",fontWeight:"600",padding:"6px 15px",borderRadius:"20px",boxShadow:"4px 4px 4px rgba(0, 0, 0, 0.25), inset -1px -3px 4px rgba(0, 0, 0, 0.25)",title:"Sell SMTC at fixed threshold price",onHandleClick:function(){v(!0),M(!1)}})]})]})})}),Object(s.jsx)(y.a,{anchorEl:e.current,onClose:function(){z(!1)},open:P,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:{background:"linear-gradient(180deg, #212121 0%, #000000 100%)",borderRadius:"10px",width:"468px"}},children:Object(s.jsxs)(H.a,{padding:"35px",children:[Object(s.jsx)(o.a,{variant:"h2",color:"#E0A501",height:"29px",textAlign:"center",children:"Golden Tree Pool Statistic"}),Object(s.jsxs)(B.a,{height:"150px",marginTop:"30px",children:[Object(s.jsx)(C.a,{width:"45%",height:"100%",background:"linear-gradient(180deg, #5A5A5A 0%, #212121 100%)",border:"none",children:Object(s.jsxs)(H.a,{height:"100%",padding:"20px 5px",children:[Object(s.jsx)(o.a,{variant:"h3",color:"#EDEDED",textAlign:"center",lineHeight:"100%",children:"BUSD in Pool"}),Object(s.jsx)(o.a,{variant:"h2",color:"#E0A501",textAlign:"center",fontWeight:"700",lineHeight:"100%",children:ct}),Object(s.jsx)(o.a,{variant:"h3",color:"#EDEDED",textAlign:"center",lineHeight:"100%",children:"BUSD"})]})}),Object(s.jsx)(C.a,{width:"45%",height:"100%",background:"linear-gradient(180deg, #5A5A5A 0%, #212121 100%)",border:"none",children:Object(s.jsxs)(H.a,{height:"100%",padding:"20px 5px",children:[Object(s.jsx)(o.a,{variant:"h3",color:"#EDEDED",textAlign:"center",lineHeight:"100%",children:"SMTC in circulation"}),Object(s.jsx)(o.a,{variant:"h2",color:"#E0A501",textAlign:"center",fontWeight:"700",lineHeight:"100%",children:Object(U.a)(tt,0)}),Object(s.jsx)(o.a,{variant:"h3",color:"#EDEDED",textAlign:"center",lineHeight:"100%",children:"SMTC"}),Object(s.jsx)(r.a,{sx:{position:"absolute",top:"11px",right:"11px"},children:Object(s.jsx)(K.a,{content:"SMTC in circulation is determined by total SMT supply - burned SMT (SMT in burn address)",width:"220px",children:Object(s.jsx)(r.a,{component:"img",sx:{ml:2,width:"13px",height:"13px"},alt:rt,src:it})})})]})})]}),Object(s.jsx)(r.a,{height:"60px",width:"100%",marginTop:"30px",children:Object(s.jsx)(C.a,{height:"100%",background:"linear-gradient(180deg, #5A5A5A 0%, #212121 100%)",border:"none",children:Object(s.jsxs)(B.a,{height:"100%",padding:"5px 20px",children:[Object(s.jsx)(o.a,{variant:"h3",color:"#EDEDED",textAlign:"center",children:"Current SMTC Price"}),Object(s.jsx)(o.a,{variant:"h2",color:"#E0A501",textAlign:"center",fontWeight:"700",marginLeft:"62px",children:xt}
1),Object(s.jsx)(o.a,{variant:"h3",color:"#EDEDED",textAlign:"center",children:"BUSD"})]})})})]})}),Object(s.jsx)(y.a,{anchorReference:"none",classes:{root:t.popoverRoot},open:O,PaperProps:{style:{width:"700px",boxShadow:"none"}},children:G?Object(s.jsx)($,{onHandleSellSmtcClose:E}):Object(s.jsx)(Z,{onHandleSellSmtcClose:E,onHandleSellSmtcClick:function(){M(!0)},smtcPrice:xt})})]})},ct=v.a.memo(ot),st=n(526),lt=function(){var t=nt(),e=Object(F.c)(),n=e.account,a=e.chainId,i=Object(_.a)().fetchGoldenTreePhase,o=Object(S.useState)(0),c=Object(f.a)(o,2),l=c[0],d=c[1];return Object(S.useEffect)((function(){function t(){return(t=Object(m.a)(w.a.mark((function t(){var e;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i();case 2:e=t.sent,d(e.toString());case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return n&&a&&function(){t.apply(this,arguments)}(),function(){return d(0)}}),[n,a]),Object(s.jsx)(C.a,{height:"450px",children:Object(s.jsxs)(r.a,{className:t.customCardOutBoxStyle,children:[Object(s.jsx)(r.a,{width:"70%",position:"relative",children:st.a.toString().split("").map((function(t,e){return 9-l===e&&Object(s.jsx)(r.a,{sx:{position:"absolute",top:"24px",left:"0",bottom:"24px",right:"0",display:"flex",justifyContent:"center"},children:Object(s.jsx)(r.a,{component:"img",sx:{width:"auto",height:"auto",position:"absolute",bottom:"0",alignItems:"flex-end"},alt:st.b[e].name,src:st.b[e].path})},e)}))}),Object(s.jsx)(H.a,{justifyContent:"space-around",textAlign:"center",maxWidth:"107px",width:"30%",children:st.a.toString().split("").map((function(t,e){return Object(s.jsx)(k.a,{width:"100%",height:"34px",title:"Phase "+t,background:9-l===e?"#E0A501":"#323232",color:9-l===e?"#212121":"#EDEDED",borderRadius:"20px",fontSize:"18px",fontWeight:"600"},e)}))})]})})},dt=v.a.memo(lt),xt=n(446),pt=function(){var t=et();return Object(s.jsx)(r.a,{className:t.customOutBoxStyle,children:Object(s.jsx)(C.a,{width:"100%",height:"302px",background:"linear-gradient(180deg, #212121 0%, #000000 100%)",children:Object(s.jsxs)(r.a,{padding:"9px 18px",children:[Object(s.jsx)(o.a,{className:t.customHeadingStyle,children:"Your current & upcoming rewards from Golden Tree"}),Object(s.jsx)(H.a,{children:st.d.map((function(t,e){return Object(s.jsxs)(B.a,{height:"20px",marginBottom:"2px",children:[Object(s.jsxs)(B.a,{height:"100%",justifyContent:"flex-start",children:[Object(s.jsx)(i.a,{mdDown:!0,children:Object(s.jsx)(xt.a,{arrow:!0,title:Object(s.jsx)(r.a,{component:"img",width:"100%",height:"100%",alt:t.name,src:t.path}),placement:"top",componentsProps:{tooltip:{sx:{display:"flex",alignItems:"center",textAlign:"center",background:"#EDEDED",borderRadius:"10px",width:"110px",height:"110px",padding:"5px",zIndex:"9999"}}},children:Object(s.jsx)(r.a,{component:"img",sx:{width:"20px",height:"20px"},alt:t.name,src:t.path})})}),Object(s.jsxs)(o.a,{variant:"h4",marginLeft:"5px",children:["\u2022 ",t.content]})]}),Object(s.jsx)(M.a,{width:"120px",height:"100%",fontSize:"12px",color:"Claimed"===t.status?"#EDEDED":"#212121",background:"Claimed"===t.status?"#5A5A5A":"#E0A501",boxShadow:"4px 4px 4px rgba(0, 0, 0, 0.25), inset -1px -3px 4px rgba(0, 0, 0, 0.25)",title:t.status})]},e)}))})]})})})},ht=Object(c.a)((function(t){return{customOutBoxStyle:{marginTop:"12px",width:"100%","@media (max-width: 968px)":{marginTop:"20px"}}}})),ut=[{name:"nftTree",path:"/static/img/main_golden/nftTree.svg",desc:"nftTree"},{name:"coin0",path:"/static/img/main_golden/coin0.svg",desc:"coin0"},{name:"coin1",path:"/static/img/main_golden/coin1.svg",desc:"coin1"},{name:"coin2",path:"/static/img/main_golden/coin2.svg",desc:"coin2"},{name:"coin3",path:"/static/img/main_golden/coin3.svg",desc:"coin3"},{name:"radial",path:"/static/img/main_golden/radial.svg",desc:"radial background"}],bt=function(){var t=ht();return Object(s.jsx)(r.a,{className:t.customOutBoxStyle,children:Object(s.jsx)(C.a,{height:"132px",width:"100%",children:Object(s.jsxs)(r.a,{position:"relative",height:"100%",width:"100%",children:[Object(s.jsx)(r.a,{sx:{padding:"20px 40px 22px 40px",height:"100%"},children:Object(s.jsxs)(H.a,{alignItems:"flex-start",children:[Object(s.jsx)(o.a,{variant:"h2",sx:{textAlign:"left",color:"#EDEDED",lineHeight:"20px"},children:"Learn how"}),Object(s.jsx)(o.a,{variant:"h2",sx:{textAlign:"left",color:"#E0A501",lineHeight:"20px",marginBottom:"20px"},children:"Golden Tree Works"}),Object(s.jsx)(k.a,{width:"152px",height:"34px",title:"Check now",background:"#E0A501",color:"#212121",fontSize:"18px",fontWeight:"600",borderRadius:"20px",boxShadow:"4px 4px 4px rgba(0, 0, 0, 0.25), inset -1px -3px 4px rgba(0, 0, 0, 0.25)",onHandleClick:function(){window.open("https://smarttoken.finance/docPaper.html")}})]})}),Object(s.jsx)(r.a,{component:"img",src:ut[5].path,alt:ut[5].name,sx:{position:"absolute",bottom:"0",right:"0"}}),Object(s.jsx)(r.a,{component:"img",src:ut[0].path,alt:ut[0].name,sx:{position:"absolute",bottom:"0",right:"40px"}}),Object(s.jsx)(r.a,{component:"img",src:ut[1].path,alt:ut[1].name,sx:{position:"absolute",bottom:"0",right:"0"}}),Object(s.jsx)(r.a,{component:"img",src:ut[2].path,alt:ut[2].name,sx:{position:"absolute",bottom:"0",right:"38px"}}),Object(s.jsx)(r.a,{component:"img",src:ut[3].path,alt:ut[3].name,sx:{position:"absolute",bottom:"0",right:"96px"}}),Object(s.jsx)(r.a,{component:"img",src:ut[4].path,alt:ut[4].name,sx:{position:"absolute",bottom:"0",right:"134px"}})]})})})},gt=n(93),jt="maxImage",mt="/static/img/main_golden/max.svg",ft=function(){var t=tt(),e=Object(F.c)(),n=e.account,a=e.chainId,i=Object(_.a)(),c=i.fetchGoldenTreePhase,l=i.fetchGlobalGrowth,d=Object(S.useState)(0),x=Object(f.a)(d,2),p=x[0],h=x[1],u=Object(S.useState)("0"),b=Object(f.a)(u,2),j=b[0],O=b[1];return Object(S.useEffect)((function(){function t(){return(t=Object(m.a)(w.a.mark((function t(){var e,n;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c();case 2:return e=t.sent,h(e.toString()),t.next=6,l();case 6:n=t.sent,O(parseFloat(at.utils.formatEther(n)).toFixed(4));case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return n&&a&&function(){t.apply(this,arguments)}(),function(){h(0),O("0")}}),[n,a]),Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)(g.a,{item:!0,xs:12,children:Object(s.jsxs)(r.a,{height:"60px",marginTop:"20px",display:"flex",alignItems:"center",justifyContent:"space-evenly",children:[Object(s.jsxs)(r.a,{sx:{maxWidth:"800px",width:"80%",height:"100%",background:"linear-gradient(180deg, #212121 0%, #000000 100%)",border:"2px s
1olid #323232",borderRadius:"14px"},children:[Object(s.jsx)(gt.a,{variant:"determinate",value:Number(j)/Number(st.c[p].require)*100}),Object(s.jsxs)(r.a,{display:"flex",justifyContent:"space-between",padding:"0 10px",children:[Object(s.jsx)(o.a,{className:t.progressTitleStyle,children:st.c[p].phase}),Object(s.jsx)(o.a,{className:t.progressTitleStyle,children:st.c[p].status})]})]}),Object(s.jsxs)(r.a,{width:"80px",height:"100%",position:"relative",children:[Object(s.jsx)(r.a,{component:"img",src:mt,alt:jt}),Object(s.jsx)(o.a,{variant:"h2",sx:{position:"absolute",color:"#212121",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:st.c[p].buttonPhase})]})]})}),Object(s.jsxs)(r.a,{className:t.treeCustomOutBoxStyle,children:[Object(s.jsx)(r.a,{className:t.treeCustomInnerBoxStyle,children:Object(s.jsx)(dt,{})}),Object(s.jsx)(r.a,{className:t.treeCustomInnerBoxStyle,children:Object(s.jsxs)(r.a,{className:t.treeRewardOutStyle,children:[Object(s.jsx)(pt,{}),Object(s.jsx)(bt,{})]})})]})]})},Ot=v.a.memo(ft),wt=n(8),St=Object(wt.a)("div")((function(t){t.theme;return"\n      table {\n        border-collapse: collapse;\n        width: 100%;\n      }\n      table tbody tr:last-child td:first-of-type {\n        border-bottom-left-radius: 13px;\n      }\n      table tbody tr:last-child td:last-child {\n        border-bottom-right-radius: 13px;\n      }\n      table thead tr:first-of-type th:first-of-type {\n        border-top-left-radius: 13px;\n      }\n      table thead tr:first-of-type th:last-child {\n        border-top-right-radius: 13px;\n      }\n      table tbody tr td:first-of-type {\n        text-align: center;\n      }\n      thead tr {\n        border-bottom: 2px solid #000;\n        background: #212121;\n        color: #E0A501;\n        font-size: 14px;\n        font-weight: 600;\n      }\n      tbody tr {\n        border-bottom: 1px solid #000;\n        background: #212121;\n        font-weight: 600;\n        color: #EDEDED;\n        font-size: 12px;\n      }\n      table tr td {\n        padding: 5px 10px;\n      }\n      table tr th {\n        padding: 7px;\n      }\n      table tr th, table tr td {\n        border-right: 2px solid #000;\n      } \n\n      margin-top: 10px;\n      width: 100%;\n"}));var vt=[],yt={personal:{background:"#936900",color:"#EDEDED"},team:{background:"#EECA41",color:"#212121"}},Et=function(){return Object(s.jsx)(s.Fragment,{children:Object(s.jsx)(C.a,{width:"100%",height:"auto",background:"#000000",marginTop:"20px",children:Object(s.jsxs)(r.a,{padding:"10px",children:[Object(s.jsx)(o.a,{fontSize:"18px",fontWeight:"700",color:"#E0A501",textAlign:"center",lineHeight:"100%",children:"Growth Contribution History"}),Object(s.jsx)(St,{children:Object(s.jsxs)("table",{"aria-label":"custom pagination table",cellSpacing:"0",children:[Object(s.jsx)("thead",{children:Object(s.jsxs)("tr",{children:[Object(s.jsx)("th",{children:"No"}),Object(s.jsx)("th",{children:"Date"}),Object(s.jsx)("th",{children:"Type"}),Object(s.jsx)("th",{children:"Details"})]})}),Object(s.jsx)("tbody",{children:vt.map((function(t,e){return Object(s.jsxs)("tr",{children:[Object(s.jsx)("td",{children:e+1}),Object(s.jsx)("td",{children:Object(s.jsx)(r.a,{textAlign:"center",children:t.date})}),Object(s.jsx)("td",{children:Object(s.jsx)(r.a,{display:"flex",justifyContent:"center",children:Object(s.jsx)(M.a,{width:"90%",height:"auto",title:t.type,fontSize:"12px",fontWeight:"500",color:yt[t.type].color,background:yt[t.type].background})})}),Object(s.jsx)("td",{children:t.detail})]},e)}))})]})}),Object(s.jsxs)(r.a,{display:"flex",justifyContent:"space-between",marginTop:"5px",children:[Object(s.jsxs)(r.a,{display:"flex",justifyContent:"space-between",width:"60%",children:[Object(s.jsxs)(r.a,{display:"flex",alignItems:"center",children:[Object(s.jsx)(o.a,{variant:"h4",children:"Show"}),Object(s.jsx)(r.a,{height:"100%",marginLeft:"5px",children:Object(s.jsx)(M.a,{width:"32px",height:"21px",fontSize:"12px",fontWeight:"600",color:"#323232",background:"#E0A501",borderRadius:"5px",title:"10"})}),Object(s.jsx)(r.a,{height:"100%",marginLeft:"5px",children:Object(s.jsx)(M.a,{width:"32px",height:"21px",fontSize:"12px",fontWeight:"600",color:"#EDEDED",background:"#5A5A5A",borderRadius:"5px",title:"50"})}),Object(s.jsx)(r.a,{height:"100%",marginLeft:"5px",children:Object(s.jsx)(M.a,{width:"32px",height:"21px",fontSize:"12px",fontWeight:"600",color:"#EDEDED",background:"#5A5A5A",borderRadius:"5px",title:"100"})})]}),Object(s.jsxs)(r.a,{display:"flex",alignItems:"center",children:[Object(s.jsx)(r.a,{height:"100%",marginLeft:"5px",children:Object(s.jsx)(M.a,{width:"21px",height:"21px",fontSize:"12px",fontWeight:"600",color:"#323232",background:"#E0A501",borderRadius:"20px",title:"1"})}),Object(s.jsx)(r.a,{height:"100%",marginLeft:"5px",children:Object(s.jsx)(M.a,{width:"21px",height:"21px",fontSize:"12px",fontWeight:"600",color:"#EDEDED",background:"#5A5A5A",borderRadius:"20px",title:"2"})}),Object(s.jsx)(r.a,{height:"100%",marginLeft:"5px",children:Object(s.jsx)(M.a,{width:"21px",height:"21px",fontSize:"12px",fontWeight:"600",color:"#EDEDED",background:"#5A5A5A",borderRadius:"20px",title:"3"})}),Object(s.jsx)(r.a,{height:"100%",marginLeft:"5px",children:Object(s.jsx)(M.a,{width:"21px",height:"21px",fontSize:"12px",fontWeight:"600",color:"#EDEDED",background:"#5A5A5A",borderRadius:"20px",title:"4"})}),Object(s.jsx)(r.a,{height:"100%",marginLeft:"5px",children:Object(s.jsx)(M.a,{width:"21px",height:"21px",fontSize:"12px",fontWeight:"600",color:"#EDEDED",background:"#5A5A5A",borderRadius:"20px",title:">"})})]})]}),Object(s.jsxs)(r.a,{display:"flex",alignItems:"center",justifyContent:"center",children:[Object(s.jsx)(o.a,{fontSize:"12px",fontWeight:"600",color:"#E0A501",children:"10/"}),Object(s.jsx)(o.a,{fontSize:"12px",fontWeight:"600",color:"#EDEDED",children:"50"})]})]})]})})})},Tt=n(227),Dt=[{name:"reward0",path:"/static/img/main_golden/reward0.svg",desc:"reward0"},{name:"reward1",path:"/static/img/main_golden/reward1.svg",desc:"reward1"}],At=function(){var t=Object(F.c)(),e=t.account,n=t.chainId,a=Object(Tt.a)().fetchFarmUserInfo,i=Object(_.a)().fetchIsNobleLeader,c=Object(S.useState)(!1),l=Object(f.a)(c,2),d=l[0],x=l[1],p=Object(S.useState)(!1),h=Object(f.a)(p,2),u=h[0],b=h[1];return Object(S.useEffect)((function(){function t(){return(t=Object(m.a)(w.a.mark((function t(){var n,r;return w.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a(e);case 2:return n=t.sent,r=at.utils.formatEther(n.tokenBalance),Number(r)>=100&&x(!0),t.next=7,i(e);case 7:t.sent&&b(!0);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return e&&n&&function(){t.apply(this,arguments)}(),function(){x(!1),b(!1)}}),[e,n]),Object(s.jsx)(r.a,{sx:{paddingLeft:"20px",marginTop:"20px"},children:Object(s.jsx)(C.a,{width:"100%",height:"328px",borderRadius:"20px",children:Object(s.jsxs)(H.a,{height:"100%",children:[Object(s.jsx)(o.a,{variant:"h2",marginTop:"10px",marginLeft:"20px",color:"#E0A501",fontWeight:"700",children:"Rewards Qualification"}),Object(s.jsx)(r.a,{position:"absolute",bottom:"0",width:"100%",children:Object(s.jsx)(C.a,{width:"100%",height:"269px",borderRadius:"20px",children:Object(s.jsxs)(B.a,{padding:"20px 20px 30px 20px",height:"100%",children:[Object(s.jsxs)(H.a,{width:"160px",height:"100%",children:[Object(s.jsx)(r.a,{component:"img",alt:Dt[0].name,src:Dt[0].path,width:"130px",height:"130px"}
1),Object(s.jsx)(o.a,{variant:"h4",children:"Farm \u2265 100 SMT"}),Object(s.jsx)(M.a,{width:"80%",height:"30px",background:d?"#E0A501":"#5A5A5A",color:"#212121",title:d?"Available":"Unavailable",fontSize:"14px",boxShadow:"4px 4px 4px rgba(0, 0, 0, 0.25), inset -1px -3px 4px rgba(0, 0, 0, 0.25)"})]}),Object(s.jsxs)(H.a,{width:"160px",height:"100%",children:[Object(s.jsx)(r.a,{component:"img",alt:Dt[1].name,src:Dt[1].path,width:"130px",height:"130px"}),Object(s.jsx)(o.a,{variant:"h4",padding:"0 30px",textAlign:"center",children:"Achieve Nobility Title"}),Object(s.jsx)(M.a,{width:"80%",height:"30px",background:u?"#E0A501":"#5A5A5A",color:"#212121",title:u?"Available":"Unavailable",fontSize:"14px",boxShadow:"4px 4px 4px rgba(0, 0, 0, 0.25), inset -1px -3px 4px rgba(0, 0, 0, 0.25)"})]})]})})})]})})})},kt=Object(c.a)((function(t){return{customPadding:{padding:"30px 80px !important","@media (max-width: 1280px)":{padding:"20px !important"}}}}));e.default=function(){var t=kt();return Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)(a.a,{children:Object(s.jsx)("title",{children:"Main | Golden Tree"})}),Object(s.jsx)(u,{}),Object(s.jsx)(b.a,{maxWidth:"xl",className:t.customPadding,children:Object(s.jsxs)(g.a,{container:!0,direction:"row",justifyContent:"center",alignItems:"stretch",children:[Object(s.jsx)(g.a,{item:!0,xs:12,children:Object(s.jsx)(ct,{})}),Object(s.jsx)(g.a,{item:!0,xs:12,children:Object(s.jsx)(Ot,{})}),Object(s.jsxs)(i.a,{mdDown:!0,children:[Object(s.jsx)(g.a,{item:!0,xs:12,md:7,children:Object(s.jsx)(Et,{})}),Object(s.jsx)(g.a,{item:!0,xs:12,md:5,children:Object(s.jsx)(At,{})})]})]})})]})}},482:function(t,e,n){"use strict";var a=n(446),r=n(159),i=n(0),o="tooltipIcon",c="/static/img/main_dashboard/tooltipIcon.svg";e.a=function(t){return Object(i.jsx)(i.Fragment,{children:Object(i.jsx)(a.a,{arrow:!0,title:t.content,placement:"top",componentsProps:{tooltip:{sx:{fontSize:t.fontSize||"12px",color:t.color||"#212121",fontWeight:t.fontWeight||"500",display:"flex",alignItems:"center",textAlign:"center",background:t.background||"#EDEDED",borderRadius:t.borderRadius||"10px",width:t.width||"200px",padding:t.padding||"10px",zIndex:"9998"}}},children:Object(i.jsx)(r.a,{sx:{width:t.iconWidth||"13.34px",height:t.iconHeight||"13.34px",zIndex:"1",marginLeft:"8px"},component:"img",alt:o,src:c})})})}},488:function(t,e,n){"use strict";var a=n(24),r=n(13),i=n(4),o=n.n(i),c=n(1),s=n(31),l=n(74),d=n(26);e.a=function(){var t=Object(s.c)().chainId,e=Object(c.useState)(!1),n=Object(r.a)(e,2),i=n[0],x=n[1],p=function(){var e=Object(a.a)(o.a.mark((function e(){var n,a,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.f)("GoldenTreePool",t);case 2:return n=e.sent,e.next=5,Object(d.f)("SmartTokenCash",t);case 5:return a=e.sent,e.next=8,n.smtcTotalSupply();case 8:return r=e.sent,e.next=11,a.balanceOf("0x000000000000000000000000000000000000dEaD");case 11:return i=e.sent,e.abrupt("return",Number(l.utils.formatEther(r))-Number(l.utils.formatEther(i)));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=Object(a.a)(o.a.mark((function e(){var n,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.f)("GoldenTreePool",t);case 2:return n=e.sent,e.next=5,n.thresholdPrice();case 5:return a=e.sent,e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=Object(a.a)(o.a.mark((function e(n){var a,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.f)("GoldenTreePool",t);case 2:return a=e.sent,e.next=5,a.growthBalanceOf(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=Object(a.a)(o.a.mark((function e(){var n,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.f)("GoldenTreePool",t);case 2:return n=e.sent,e.next=5,n.currentTotalGrowth();case 5:return a=e.sent,e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=Object(a.a)(o.a.mark((function e(){var n,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.f)("GoldenTreePool",t);
1case 2:return n=e.sent,e.next=5,n.currentPhaseOfGoldenTree();case 5:return a=e.sent,e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=Object(a.a)(o.a.mark((function e(n){var a,r,i,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.f)("GoldenTreePool",t);case 2:return a=e.sent,e.next=5,a.growthBalanceOf(n);case 5:return r=e.sent,e.next=8,a.currentTotalGrowth();case 8:return i=e.sent,c=100*Number(l.utils.formatEther(r))/Number(l.utils.formatEther(i)),e.abrupt("return",c.toFixed(2));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=Object(a.a)(o.a.mark((function e(n){var a,r,i,c,s,p;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,x(!0),e.next=4,Object(d.f)("SmartTokenCash",t);case 4:return a=e.sent,e.next=7,Object(d.f)("SMTBridge",t);case 7:return r=e.sent,e.next=10,Object(d.f)("GoldenTreePool",t);case 10:return i=e.sent,c=l.utils.parseUnits(Number(n).toString(),18),e.next=14,a.approve(r.address,c);case 14:return s=e.sent,e.next=17,s.wait();case 17:return console.log("approved SMTtoBNB tx: ",s.hash),e.next=20,i.sellSmtc(c);case 20:return p=e.sent,e.next=23,p.wait();case 23:return console.log("sell smtc tx ",p.hash),x(!1),e.abrupt("return",!0);case 28:e.prev=28,e.t0=e.catch(0),console.error(e.t0),x(!1);case 32:case"end":return e.stop()}}),e,null,[[0,28]])})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=Object(a.a)(o.a.mark((function e(n){var a,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.f)("SmartNobilityAchievement",t);case 2:return a=e.sent,e.next=5,a.isNobleLeader(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{fetchCirculation:p,fetchThreshold:h,fetchGrowth:u,fetchGlobalGrowth:b,sellSmtc:m,fetchGoldenTreePhase:g,fetchContributionOf:j,fetchIsNobleLeader:f,isLoading:i}}},489:function(t,e,n){"use strict";var a=n(10),r=n(7),i=n(2),o=n(1),c=(n(12),n(14)),s=n(386),l=n(20),d=n(8),x=n(278),p=n(387);function h(t){return Object(x.a)("MuiContainer",t)}Object(p.a)("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);var u=n(15),b=n(0),g=["className","component","disableGutters","fixed","maxWidth"],j=Object(d.a)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(t,e){var n=t.ownerState;return[e.root,e["maxWidth".concat(Object(u.a)(String(n.maxWidth)))],n.fixed&&e.fixed,n.disableGutters&&e.disableGutters]}})((function(t){var e=t.theme,n=t.ownerState;return Object(i.a)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&Object(a.a)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}))}),(function(t){var e=t.theme;return t.ownerState.fixed&&Object.keys(e.breakpoints.values).reduce((function(t,n){var a=e.breakpoints.values[n];return 0!==a&&(t[e.breakpoints.up(n)]={maxWidth:"".concat(a).concat(e.breakpoints.unit)}),t}),{})}),(function(t){var e=t.theme,n=t.ownerState;return Object(i.a)({},"xs"===n.maxWidth&&Object(a.a)({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),n.maxWidth&&"xs"!==n.maxWidth&&Object(a.a)({},e.breakpoints.up(n.maxWidth),{maxWidth:"".concat(e.breakpoints.values[n.maxWidth]).concat(e.breakpoints.unit)}))})),m=o.forwardRef((function(t,e){var n=Object(l.a)({props:t,name:"MuiContainer"}),a=n.className,o=n.component,d=void 0===o?"div":o,x=n.disableGutters,p=void 0!==x&&x,m=n.fixed,f=void 0!==m&&m,O=n.maxWidth,w=void 0===O?"lg":O,S=Object(r.a)(n,g),v=Object(i.a)({},n,{component:d,disableGutters:p,fixed:f,maxWidth:w}),y=function(t){var e=t.classes,n=t.fixed,a=t.disableGutters,r=t.maxWidth,i={root:["root",r&&"maxWidth".concat(Object(u.a)(String(r))),n&&"fixed",a&&"disableGutters"]};return Object(s.a)(i,h,e)}(v);return Object(b.jsx)(j,Object(i.a)({as:d,ownerState:v,className:Object(c.a)(y.root,a),ref:e},S))}));e.a=m},495:function(t,e,n){"use strict";n(1);var a=n(83),r=n(449),i=n(0),o=Object(r.a)({loading:{"&, &:after, &:before":{background:"#212121",animation:"$flicker 1.2s infinite ease-in-out",width:"3px",height:"12px"},"&:before, &:after":{position:"absolute",top:"0",content:'""'},"&:before":{left:"-7px",animationDelay:"-0.32s"},"&:after":{left:"7px"},"&":{color:"#212121",textIndent:"-9999em",position:"relative",fontSize:"5px !important",transform:"translateZ(0)",animationDelay:"-0.16s",margin:"0 15px !important"}},"@keyframes flicker":{"0%":{boxShadow:"0 0",height:"12px"},"80%":{boxShadow:"0 0",height:"12px"},"100%":{boxShadow:"0 0",height:"12px"},"40%":{boxShadow:"0 -2em",height:"16px"}}});e.a=function(){var t=o();return Object(i.jsx)(a.a,{className:t.loading})}},497:function(t,e,n){"use strict";var a=n(10),r=n(7),i=n(2),o=n(1),c=(n(12),n(14)),s=n(56),l=n(439),d=n(386),x=n(8),p=n(20);var h=o.createContext(),u=n(49),b=n(278),g=n(387);function j(t){return Object(b.a)("MuiGrid",t)}var m=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],f=Object(g.a)("MuiGrid",["root","container","item","zeroMinWidth"].concat(Object(u.a)([0,1,2,3,4,5,6,7,8,9,10].map((function(t){return"spacing-xs-".concat(t)}))),Object(u.a)(["column-reverse","column","row-reverse","row"].map((function(t){return"direction-xs-".concat(t)}))),Object(u.a)(["nowrap","wrap-reverse","wrap"].map((function(t){return"wrap-xs-".concat(t)}))),Object(u.a)(m.map((function(t){return"grid-xs-".concat(t)}))),Object(u.a)(m.map((function(t){return"grid-sm-".concat(t)}))),Object(u.a)(m.map((function(t){return"grid-md-".concat(t)}))),Object(u.a)(m.map((function(t){return"grid-lg-".concat(t)}))),Object(u.a)(m.map((function(t){return"grid-xl-".concat(t)}))))),O=n(0),w=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function S(t){var e=parseFloat(t);return"".concat(e).concat(String(t).replace(String(e),"")||"px")}var v=Object(x.a)("div",{name:"MuiGrid",slot:"Root",overridesResolver:function(t,e){var n=t.ownerState,a=n.container,r=n.direction,i=n.item,o=n.lg,c=n.md,s=n.sm,l=n.spacing,d=n.wrap,x=n.xl,p=n.xs,h=n.zeroMinWidth;return[e.root,a&&e.container,i&&e.item,h&&e.zeroMinWidth,a&&0!==l&&e["spacing-xs-".concat(String(l))],"row"!==r&&e["direction-xs-".concat(String(r))],"wrap"!==d&&e["wrap-xs-".concat(String(d))],!1!==p&&e["grid-xs-".concat(String(p))],!1!==s&&e["grid-sm-".concat(String(s))],!1!==c&&e["grid-md-".concat(String(c))],!1!==o&&e["grid-lg-".concat(String(o))],!1!==x&&e["grid-xl-".concat(String(x))]]}})((function(t){var e=t.ownerState;return Object(i.a)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"nowrap"===e.wrap&&{flexWrap:"nowrap"},"reverse"===e.wrap&&{flexWrap:"wrap-reverse"})}),(function(t){var e=t.theme,n=t.ownerState;return Object(s.b)({theme:e},n.direction,(function(t){var e={flexDirection:t};return 0===t.indexOf("column")&&(e["& > .".concat(f.item)]={maxWidth:"none"}),e}))}),(function(t){var e=t.theme,n=t.ownerState,r=n.container,i=n.rowSpacing,o={};return r&&0!==i&&(o=Object(s.b)({theme:e},i,(function(t){var n=e.spacing(t);return"0px"!==n?Object(a.a)({marginTop:"-".concat(S(n))},"& > .".concat(f.item),{paddingTop:S(n)}):{}}))),o}),(function(t){var e=t.theme,n=t.ownerState,r=n.container,i=n.columnSpacing,o={};return r&&0!==i&&(o=Object(s.b)({theme:e},i,(function(t){var n=e.spacing(t);return"0px"!==n?Object(a.a)({width:"calc(100% + ".concat(S(n),")"),marginLeft:"-".concat(S(n))},"& > .".concat(f.item),{paddingLeft:S(n)}):{}}))),o}),(function(t){var e=t.theme,n=t.ownerState;return e.breakpoints.keys.reduce((function(t,a){return function(t,e,n,a){var r=a[n];if(r){var o={};if(!0===r)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var c=Object(s.d)({values:a.columns,base:e.breakpoints.values}),l="".concat(Math.round(r/c[n]*1e8)/1e6,"%"),d={};if(a.container&&a.item&&0!==a.columnSpacing){var x=e.spacing(a.columnSpacing);
1if("0px"!==x){var p="calc(".concat(l," + ").concat(S(x),")");d={flexBasis:p,maxWidth:p}}}o=Object(i.a)({flexBasis:l,flexGrow:0,maxWidth:l},d)}0===e.breakpoints.values[n]?Object.assign(t,o):t[e.breakpoints.up(n)]=o}}(t,e,a,n),t}),{})})),y=o.forwardRef((function(t,e){var n,a=Object(p.a)({props:t,name:"MuiGrid"}),s=Object(l.a)(a),x=s.className,u=s.columns,b=void 0===u?12:u,g=s.columnSpacing,m=s.component,f=void 0===m?"div":m,S=s.container,y=void 0!==S&&S,E=s.direction,T=void 0===E?"row":E,D=s.item,A=void 0!==D&&D,k=s.lg,C=void 0!==k&&k,W=s.md,P=void 0!==W&&W,z=s.rowSpacing,I=s.sm,N=void 0!==I&&I,G=s.spacing,M=void 0===G?0:G,B=s.wrap,H=void 0===B?"wrap":B,R=s.xl,_=void 0!==R&&R,L=s.xs,F=void 0!==L&&L,U=s.zeroMinWidth,q=void 0!==U&&U,X=Object(r.a)(s,w),J=z||M,Y=g||M,Q=o.useContext(h)||b,Z=Object(i.a)({},s,{columns:Q,container:y,direction:T,item:A,lg:C,md:P,sm:N,rowSpacing:J,columnSpacing:Y,wrap:H,xl:_,xs:F,zeroMinWidth:q}),$=function(t){var e=t.classes,n=t.container,a=t.direction,r=t.item,i=t.lg,o=t.md,c=t.sm,s=t.spacing,l=t.wrap,x=t.xl,p=t.xs,h={root:["root",n&&"container",r&&"item",t.zeroMinWidth&&"zeroMinWidth",n&&0!==s&&"spacing-xs-".concat(String(s)),"row"!==a&&"direction-xs-".concat(String(a)),"wrap"!==l&&"wrap-xs-".concat(String(l)),!1!==p&&"grid-xs-".concat(String(p)),!1!==c&&"grid-sm-".concat(String(c)),!1!==o&&"grid-md-".concat(String(o)),!1!==i&&"grid-lg-".concat(String(i)),!1!==x&&"grid-xl-".concat(String(x))]};return Object(d.a)(h,j,e)}(Z);return n=Object(O.jsx)(v,Object(i.a)({ownerState:Z,className:Object(c.a)($.root,x),as:f,ref:e},X)),12!==Q?Object(O.jsx)(h.Provider,{value:Q,children:n}):n}));e.a=y},501:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var a=function(t,e){return t>0&&t<=10&&10===parseInt(e)||t>10&&t<=25&&25===parseInt(e)||t>25&&t<=50&&50===parseInt(e)||t>50&&t<=75&&75===parseInt(e)||t>75&&t<=100&&100===parseInt(e)?"#E0A501":"#5A5A5A"}},526:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o}));var a=9876543210,r=[{name:"growTree",path:"/static/img/main_dashboard/growtree9.svg",desc:"growTreeImage"},{name:"growTree",path:"/static/img/main_dashboard/growtree8.svg",desc:"growTreeImage"},{name:"growTree",path:"/static/img/main_dashboard/growtree7.svg",desc:"growTreeImage"},{name:"growTree",path:"/static/img/main_dashboard/growtree6.svg",desc:"growTreeImage"},{name:"growTree",path:"/static/img/main_dashboard/growtree5.svg",desc:"growTreeImage"},{name:"growTree",path:"/static/img/main_dashboard/growtree4.svg",desc:"growTreeImage"},{name:"growTree",path:"/static/img/main_dashboard/growtree3.svg",desc:"growTreeImage"},{name:"growTree",path:"/static/img/main_dashboard/growtree2.svg",desc:"growTreeImage"},{name:"growTree",path:"/static/img/main_dashboard/growtree1.svg",desc:"growTreeImage"},{name:"growTree",path:"/static/img/main_dashboard/growtree0.svg",desc:"growTreeImage"}],i=[{phase:"#0 Phase",status:"0 / 1",progress:0,buttonPhase:"#1st",require:"1"},{phase:"#1st Phase",status:"1 / 19",progress:0,buttonPhase:"#2nd",require:"19"},{phase:"#2nd Phase",status:"19 / 271",progress:0,buttonPhase:"#3rd",require:"271"},{phase:"#3rd Phase",status:"271 / 999",progress:0,buttonPhase:"#4th",require:"999"},{phase:"#4th Phase",status:"999 / 5,786",progress:0,buttonPhase:"#5th",require:"5786"},{phase:"#5th Phase",status:"5,786 / 38,547",progress:0,buttonPhase:"#6th",require:"38547"},{phase:"#6th Phase",status:"38,547 / 774,503",progress:0,buttonPhase:"#7th",require:"774503"},{phase:"#7th Phase",status:"774,503 / 1,855,700",progress:0,buttonPhase:"#8th",require:"1855700"},{phase:"#8th Phase",status:"1,855,700 / 33,579,113",progress:0,buttonPhase:"#9th",require:"33579113"},{phase:"#9th Phase",status:"33,579,113 / 63,745,062",progress:10,buttonPhase:"Max",require:"63745062"}],o=[{name:"farmer",path:"/static/img/main_golden/farmer.svg",content:"0.01 SMTC on #1st Phase",status:"Claimed"},{name:"noble",path:"/static/img/main_golden/noble.svg",content:"0.1 SMTC on #1st Phase",status:"Claimed"},{name:"farmer",path:"/static/img/main_golden/farmer.svg",content:"0.01 SMTC on #2nd Phase",status:"Claimed"},{name:"noble",path:"/static/img/main_golden/noble.svg",content:"0.1 SMTC on #2nd Phase",status:"Claimed"},{name:"farmer",path:"/static/img/main_golden/farmer.svg",content:"0.5 SMTC on #3rd Phase",status:"Claimed"},{name:"noble",path:"/static/img/main_golden/noble.svg",content:"5 SMTC on #3rd Phase",status:"Claimed"},{name:"farmer",path:"/static/img/main_golden/farmer.svg",content:"0.5 SMTC on #4th Phase",status:"Claimed"},{name:"noble",path:"/static/img/main_golden/noble.svg",content:"5 SMTC on #4th Phase",status:"Claimed"},{name:"farmer",path:"/static/img/main_golden/farmer.svg",content:"1 SMTC on #5th Phase",status:"Upcoming"},{name:"noble",path:"/static/img/main_golden/noble.svg",content:"10 SMTC on #5th Phase",status:"Upcoming"}]},541:function(t,e,n){"use strict";var a=n(105);
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(106)),i=n(0),o=(0,r.default)((0,i.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");e.default=o}}]);
2//# sourceMappingURL=14.ff44402c.chunk.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.