1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9490],{70257:function(n,e,t){var r=t(7297),i=t(87379),o=t(57247);function a(){var n=(0,r.Z)(["\n ","\n"]);return a=function(){return n},n}var c=i.ZP.div.withConfig({componentId:"sc-df4f0a61-0"}).withConfig({componentId:"sc-657c9e-0"})(a(),o.Dh);c.defaultProps={p:"24px"},e.Z=c},55209:function(n,e,t){var r=t(7297),i=t(87379),o=t(57247);function a(){var n=(0,r.Z)(["\n background: ",";\n border-radius: ",";\n ","\n"]);return a=function(){return n},n}var c=i.ZP.div.withConfig({componentId:"sc-e97edbbd-0"}).withConfig({componentId:"sc-206fd2b9-0"})(a(),function(n){var e=n.theme,t=n.variant;return e.card.cardHeaderBackground[void 0===t?"default":t]},function(n){var e=n.theme;return"".concat(e.radii.card," ").concat(e.radii.card," 0 0")},o.Dh);c.defaultProps={p:"24px"},e.Z=c},2164:function(n,e,t){t.d(e,{Z:function(){return Z}});var r=t(7297),i=t(85893);t(67294);var o=t(87379),a=t(26042),c=t(69396),s=t(44976),u=function(n){return(0,i.jsxs)(s.Z,(0,c.Z)((0,a.Z)({viewBox:"0 0 256 256"},n),{children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M166.898 204.279C172.402 190.795 170.197 176.127 166.942 163.633C164.747 155.208 156.522 149.043 143.339 146.339C130.289 143.662 113.23 144.62 95.212 149.658C77.1941 154.696 61.9863 162.761 52.0088 171.877C41.9295 181.085 37.8164 190.7 40.0117 199.126C43.2669 211.619 48.4857 225.444 59.7919 234.228C70.9463 242.894 88.7701 247.193 118.461 238.891C148.152 230.589 161.467 217.582 166.898 204.279ZM119.268 241.986C179.746 225.075 176.514 188.072 169.929 162.798C164.622 142.43 131.106 136.301 94.4056 146.563C57.7053 156.825 31.7183 179.593 37.0251 199.961C43.6102 225.235 58.7891 258.897 119.268 241.986Z",fill:"#464649"}),(0,i.jsx)("path",{d:"M155.801 175.68C158.653 186.628 180.351 181.576 214.977 171.894C249.604 162.212 257.158 150.578 254.305 139.63C251.453 128.682 244.685 121.053 216.678 128.884C182.051 138.566 152.948 164.732 155.801 175.68Z",fill:"#606063"}),(0,i.jsx)("path",{d:"M159.97 178.737L175.437 178.709C178.284 178.704 178.523 174.429 177.474 164.815C176.82 158.816 173.457 154.101 171.27 155.477L159.942 163.875L159.97 178.737Z",fill:"#464649"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M162.261 177.996C160.059 177.319 159.158 176.266 158.788 174.845C158.644 174.296 158.636 173.375 159.104 171.965C159.566 170.568 160.432 168.889 161.754 166.98C164.397 163.161 168.612 158.775 174.091 154.332C185.037 145.456 200.6 136.7 217.484 131.979C231.34 128.104 239.201 128.297 243.777 130.191C248.018 131.946 250.005 135.425 251.319 140.465C251.901 142.7 251.928 144.848 251.283 146.962C250.634 149.091 249.235 151.411 246.622 153.858C241.312 158.83 231.342 163.998 214.171 168.799C196.798 173.657 182.967 177.263 173.149 178.336C168.216 178.875 164.644 178.728 162.261 177.996ZM214.977 171.894C180.351 181.576 158.653 186.628 155.801 175.68C152.948 164.732 182.051 138.566 216.678 128.884C244.685 121.053 251.453 128.682 254.305 139.63C257.158 150.578 249.604 162.212 214.977 171.894Z",fill:"#464649"}),(0,i.jsx)("path",{d:"M169.925 161.024C176.511 186.298 179.743 223.301 119.264 240.212C58.7859 257.123 43.607 223.461 37.022 198.187C31.7151 177.819 57.7022 155.052 94.4024 144.789C131.103 134.527 164.619 140.656 169.925 161.024Z",fill:"#606063"}),(0,i.jsx)("path",{d:"M62.2322 217.512C45.5076 212.12 42.4613 203.795 40.3848 196.052L41.9594 211.275L50.2352 225.685L64.4374 238.481L80.947 244.327C82.4065 243.612 89.4986 243.299 83.1029 242.028C76.7073 240.758 72.7474 234.756 69.9914 231.378C68.2638 226.484 67.7365 219.287 62.2322 217.512Z",fill:"#464649"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M166.895 202.505C172.399 189.021 170.194 174.353 166.939 161.86C164.744 153.434 156.519 147.269 143.336 144.565C130.286 141.888 113.227 142.846 95.2088 147.884C77.1909 152.922 61.9831 160.987 52.0056 170.103C41.9263 179.311 37.8132 188.926 40.0086 197.352C43.2637 209.845 48.4825 223.67 59.7887 232.454C70.9431 241.12 88.7669 245.419 118.458 237.117C148.149 228.815 161.464 215.809 166.895 202.505ZM119.264 240.212C179.743 223.301 176.511 186.298 169.925 161.024C164.619 140.656 131.103 134.527 94.4024 144.789C57.7022 155.052 31.7151 177.819 37.022 198.187C43.607 223.461 58.7859 257.123 119.264 240.212Z",fill:"#464649"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M164.233 181.686C165.018 182.322 165.157 183.497 164.543 184.311C162.98 186.382 161.187 188.422 159.188 190.412C158.469 191.128 157.327 191.104 156.636 190.36C155.945 189.615 155.968 188.431 156.687 187.716C158.576 185.834 160.252 183.925 161.7 182.007C162.314 181.193 163.448 181.05 164.233 181.686ZM57.4215 216.239C57.6566 215.235 58.6323 214.619 59.6008 214.863C73.2899 218.308 91.7045 217.793 111.035 212.388C120.262 209.808 128.779 206.37 136.271 202.374C137.157 201.901 138.245 202.263 138.701 203.181C139.157 204.099 138.809 205.226 137.923 205.699C130.195 209.821 121.438 213.352 111.976 215.998C92.2044 221.527 73.1589 222.124 58.7494 218.497C57.7809 218.253 57.1863 217.242 57.4215 216.239Z",fill:"#979797"}),(0,i.jsx)("path",{d:"M159.836 163.292C164.405 180.829 141.059 195.381 109.857 204.106C78.655 212.831 51.4793 212.682 46.8428 194.887C42.2064 177.092 65.6193 162.798 96.8214 154.074C128.024 145.349 155.266 145.755 159.836 163.292Z",fill:"#464649"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M145.831 183.549C154.508 176.998 157.462 170.578 155.854 164.406C154.245 158.233 148.575 154.225 137.894 153.086C127.333 151.96 113.281 153.898 97.8965 158.2C82.4985 162.506 69.3986 168.094 60.8132 174.54C52.1526 181.043 49.1801 187.461 50.825 193.774C52.4698 200.087 58.1557 204.083 68.7987 205.189C79.3491 206.285 93.384 204.285 108.782 199.98C124.166 195.678 137.251 190.028 145.831 183.549ZM110.264 205.113C141.466 196.388 164.405 180.829 159.836 163.292C155.266 145.755 128.024 145.349 96.8214 154.074C65.6193 162.798 42.2064 177.092 46.8428 194.887C51.4793 212.682 79.0614 213.838 110.264 205.113Z",fill:"#737373"}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M103.877 181.153C89.0555 185.297 76.4977 192.072 68.1169 199.619C67.3647 200.297 66.2249 200.214 65.5711 199.434C64.9173 198.655 64.997 197.474 65.7492 196.796C74.622 188.806 87.7006 181.803 102.936 177.543C106.034 176.676 109.107 175.955 112.134 175.375C113.114 175.187 114.056 175.858 114.237 176.873C114.419 177.889 113.771 178.864 112.792 179.052C109.86 179.614 106.881 180.313 103.877 181.153ZM123.847 175.658C123.792 174.627 124.554 173.745 125.549 173.688C132.378 173.297 138.774 173.682 144.424 174.797C145.403 174.991 146.046 175.97 145.86 176.984C145.673 177.999 144.728 178.664 143.749 178.471C138.431 177.421 132.333 177.045 125.749 177.422C124.753 177.479 123.902 176.69 123.847 175.658Z",fill:"#606063"})]}))},l=t(67952);function d(){var n=(0,r.Z)(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]);return d=function(){return n},n}function f(){var n=(0,r.Z)(["\n 0% {\n transform: translatey(0px);\n }\n 50% {\n transform: translatey(10px);\n }\n 100% {\n transform: translatey(0px);\n }\n"]);return f=function(){return n},n}function p(){var n=(0,r.Z)(["\n position: relative;\n"]);return p=function(){return n},n}function h(){var n=(0,r.Z)(["\n position: absolute;\n top: 0;\n left: 0;\n animation: "," 2s linear infinite;\n transform: translate3d(0, 0, 0);\n"]);return h=function(){return n},n}function x(){var n=(0,r.Z)(["\n animation: "," 6s ease-in-out infinite;\n transform: translate3d(0, 0, 0);\n"]);return x=function(){return n},n}var m=(0,o.F4)(d()),C=(0,o.F4)(f()),g=o.ZP.div.withConfig({componentId:"sc-340c195b-0"}).withConfig({componentId:"sc-dda89366-0"})(p());(0,o.ZP)(l.Z).withConfig({componentId:"sc-340c195b-1"}).withConfig({componentId:"sc-dda89366-1"})(h(),m),(0,o.ZP)(u).withConfig({componentId:"sc-340c195b-2"}).withConfig({componentId:"sc-dda89366-2"})(x(),C);var Z=function(n){return n.size,(0,i.jsx)(g,{children:(0,i.jsx)(l.Z,{})})}},68479:function(n,e,t){var r=t(26042),i=t(69396),o=t(85893);t(67294);var a=t(44976),c=function(n){return(0,o.jsxs)(a.Z,(0,i.Z)((0,r.Z)({viewBox:"0 0 15 15"},n),{children:[(0,o.jsx)("path",{d:"M8.34588 13.6273C8.0575 13.8656 7.63823 13.7399 7.49172 13.3958L6.78828 11.7438C7.73587 11.3939 8.62311 10.9234 9.44396 10.3744C9.44396 10.3744 9.66966 11.6436 9.38982 12.3723C9.20938 12.8421 8.73469 13.3061 8.34588 13.6273ZM3.25141 8.2087L1.60451 7.50815C1.25825 7.36086 1.1335 6.93831 1.37577 6.6505C1.69974 6.26564 2.16489 5.79794 2.63298 5.61886C3.35861 5.34125 4.62149 5.55437 4.62149 5.55437C4.07225 6.3748 3.60147 7.26158 3.25141 8.2087ZM12.8903 2.10977C12.8903 2.10977 9.90266 0.830267 6.4865 4.2453C5.1647 5.56643 4.37403 7.02028 3.861 8.29315C3.69201 8.7456 3.80668 9.24027 4.13864 9.57809L5.42423 10.857C5.75619 11.1948 6.25111 11.3034 6.70378 11.1345C8.22388 10.5552 9.6041 9.66087 10.7537 8.51033C14.1699 5.09589 12.8903 2.10977 12.8903 2.10977ZM8.62311 6.3748C8.15233 5.90426 8.15233 5.13812 8.62311 4.66758C9.09389 4.19704 9.86042 4.19704 10.3312 4.66758C10.7959 5.13812 10.802 5.90426 10.3312 6.3748C9.8
16042 6.84534 9.09389 6.84534 8.62311 6.3748Z"}),(0,o.jsx)("path",{d:"M3.77609 10.3019C3.54971 10.0756 3.23604 9.92849 2.92949 10.0208C2.22706 10.2322 1.71542 10.8838 1.71542 11.6548L1.71542 13.361H3.42253C4.19392 13.361 4.84581 12.8496 5.05736 12.1476C5.14968 11.8412 5.00246 11.5277 4.77608 11.3014L3.77609 10.3019Z"})]}))};e.Z=c},44035:function(n,e,t){t.d(e,{Z:function(){return B}});var r=t(26042),i=t(85893),o=t(38456),a=t.n(o),c=t(10043),s=t.n(c),u=t(40872),l=t(7297),d=t(69589),f=t(62077),p=t(87379);function h(){var n=(0,l.Z)(["\n margin-bottom: 32px;\n margin-top: 32px;\n width: 100%;\n\n td,\n th {\n color: ",";\n padding: 8px;\n }\n"]);return h=function(){return n},n}function x(){var n=(0,l.Z)(["\n width: 100%;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n"]);return x=function(){return n},n}function m(){var n=(0,l.Z)(["\n color: ",";\n margin-bottom: 16px;\n margin-top: 16px;\n\n li {\n margin-bottom: 8px;\n }\n"]);return m=function(){return n},n}function C(){var n=(0,l.Z)(["\n color: ",";\n margin-bottom: 16px;\n margin-top: 16px;\n max-width: 100%;\n overflow-x: auto;\n"]);return C=function(){return n},n}function g(){var n=(0,l.Z)(["\n word-break: break-all;\n"]);return g=function(){return n},n}var Z=p.ZP.table.withConfig({componentId:"sc-a3180c5f-0"})(h(),function(n){return n.theme.colors.text}),v=p.ZP.div.withConfig({componentId:"sc-a3180c5f-1"})(x()),b=p.ZP.div.withConfig({componentId:"sc-a3180c5f-2"})(m(),function(n){return n.theme.colors.text}),w=p.ZP.pre.withConfig({componentId:"sc-a3180c5f-3"})(C(),function(n){return n.theme.colors.text}),j=p.ZP.a.withConfig({componentId:"sc-a3180c5f-4"})(g()),k=function(n){return(0,i.jsx)(d.Z,(0,r.Z)({as:"h4",scale:"lg",my:"16px"},n))},y={h1:k,h2:k,h3:k,h4:k,h5:k,h6:k,p:function(n){return(0,i.jsx)(f.Z,(0,r.Z)({as:"p",my:"16px"},n))},table:function(n){var e=(0,u.Z)({},n);return(0,i.jsx)(v,{children:(0,i.jsx)(Z,{children:e.children})})},ol:function(n){return(0,i.jsx)(b,(0,r.Z)({as:"ol"},n))},ul:function(n){return(0,i.jsx)(b,(0,r.Z)({as:"ul"},n))},pre:w,a:j},B=function(n){return(0,i.jsx)(a(),(0,r.Z)({remarkPlugins:[s()],components:y},n))}},34532:function(n,e,t){t.d(e,{Z:function(){return o}});var r=t(410),i=t(36963);function o(){var n,e,t=(0,i.gq)();return null===(n=(0,r.Wk)(t,"getCurrentBlockTimestamp"))||void 0===n?void 0:null===(e=n.result)||void 0===e?void 0:e[0]}},9642:function(n,e,t){t.d(e,{sA:function(){return P},qq:function(){return S},zv:function(){return I},AQ:function(){return y},dU:function(){return B}});var r,i,o,a,c=t(47568),s=t(26042),u=t(69396),l=t(70655),d=t(44431),f=t.n(d),p=t(97478),h=t(10253),x=t(87318),m=t(30685);(o=r||(r={}))[o.Deposit=0]="Deposit",o[o.Withdraw=1]="Withdraw",o[o.EmergencyWithdraw=2]="EmergencyWithdraw",o[o.Claim=3]="Claim",(a=i||(i={}))[a.EVM=0]="EVM",a[a.BSC=1]="BSC";var C,g,Z,v,b,w,j=(C=(0,c.Z)(function(n){var e,t,o,a,c,s,u,d,p,C,g,Z,v,b,w,j,k,y,B,P,S,I,M,F,A;return(0,l.__generator)(this,function(l){switch(l.label){case 0:e=n.pid,t=n.amount,o=n.chainId,a=n.userAddress,c=n.messageType,s=n.oraclePrice,u=n.gasPrice,l.label=1;case 1:return l.trys.push([1,7,,8]),d=(0,m.aM)(null,o),p=(0,m.bd)(null,o),C=new(f())(1e18).div(s).times(1e18),[4,p.nonces(a,e)];case 2:return g=l.sent(),Z=new(f())(g.toString()).toJSON(),[4,Promise.all([d.encodeMessage(a,e,t,c,Z),p.is1st(a),p.estimateGaslimit(i.BSC,a,c)])];case 3:return b=(v=h.Z.apply(void 0,[l.sent(),3]))[0],w=v[1],j=v[2],[4,d.calcFee(b)];case 4:if(k=l.sent(),y=new(f())(k.toString()),B=new(f())(u).times(j.toString()).times(C).times(1e5).div(new(f())(1e18).times(1e5)),P=new(f())(y).plus(B),!w)return S=new(f())(5e15).times(C).div(1e18),[2,P.plus(S).times(1.3).toFixed(0)];if(!(c>=r.Withdraw))return[3,6];return[4,p.estimateGaslimit(i.EVM,a,c)];case 5:return I=l.sent(),M=y.times(C).div(1e18),F=new(f())(u).times(I.toString()).plus(M),[2,P.plus(F).times(1.4).toFixed(0)];case 6:return[2,P.times(1.3).toFixed(0)];case 7:return A=l.sent(),console.error("Failed to fetch non BscVault fee",A),[2,x.HW.toJSON()];case 8:return[2]}})}),function(n){return C.apply(this,arguments)}),k={},y=(g=(0,c.Z)(function(n,e,t,r){var i;return(0,l.__generator)(this,function(o){return i=new(f())(t).times(p.o3).toString(),[2,n.deposit(e,i,(0,u.Z)((0,s.Z)({},k),{gasPrice:r}))]})}),function(n,e,t,r){return g.apply(this,arguments)}),B=(Z=(0,c.Z)(function(n,e,t,r){var i;return(0,l.__generator)(this,function(o){return i=new(f())(t).times(p.o3).toString(),[2,n.withdraw(e,i,(0,u.Z)((0,s.Z)({},k),{gasPrice:r}))]})}),function(n,e,t,r){return Z.apply(this,arguments)}),P=(v=(0,c.Z)(function(n,e,t){return(0,l.__generator)(this,function(r){return[2,n.deposit(e,"0",(0,u.Z)((0,s.Z)({},k),{gasPrice:t}))]})}),function(n,e,t){return v.apply(this,arguments)}),S=(b=(0,c.Z)(function(n,e,t,i,o,a,c){var s,u;return(0,l.__generator)(this,function(l){switch(l.label){case 0:return s=new(f())(t).times(p.o3).toString(),[4,j({pid:e,chainId:c,gasPrice:i,oraclePrice:a,amount:s,userAddress:o,messageType:r.Deposit})];case 1:return u=l.sent(),console.info(u,"stake totalFee"),[2,n.deposit(e,s,{value:u})]}})}),function(n,e,t,r,i,o,a){return b.apply(this,arguments)}),I=(w=(0,c.Z)(function(n,e,t,i,o,a,c){var s,u;return(0,l.__generator)(this,function(l){switch(l.label){case 0:return s=new(f())(t).times(p.o3).toString(),[4,j({pid:e,chainId:c,gasPrice:i,oraclePrice:a,amount:s,userAddress:o,messageType:r.Withdraw})];case 1:return u=l.sent(),console.info(u,"unstake totalFee"),[2,n.withdraw(e,s,{value:u})]}})}),function(n,e,t,r,i,o,a){return w.apply(this,arguments)})},56946:function(n,e,t){t.d(e,{Zj:function(){return f},yp:function(){return w},sA:function(){return p.sA},qq:function(){return p.qq},zv:function(){return p.zv},AQ:function(){return p.AQ},dU:function(){return p.dU}});var r,i,o,a=t(47568),c=t(26042),s=t(36305),u=t(70655),l=t(97119),d=(r=(0,a.Z)(function(n,e,t){var r,i,o,a,c,d=arguments;return(0,u.__generator)(this,function(c){switch(c.label){case 0:if(r=d.length>3&&void 0!==d[3]?d[3]:{},i=d.length>4?d[4]:void 0,!n[e])throw Error("Method ".concat(e," doesn't exist on ").concat(n.address));return[4,(o=n.estimateGas)[e].apply(o,(0,s.Z)(t).concat([r]))];case 1:return a=c.sent(),[2,(0,l.yC)(a,i)]}})}),function(n,e,t){return r.apply(this,arguments)}),f=(i=(0,a.Z)(function(n,e,t){var r,i,o,a,l,f=arguments;return(0,u.__generator)(this,function(i){switch(i.label){case 0:return[4,d(n,e,t,r=f.length>3&&void 0!==f[3]?f[3]:{},f.length>4&&void 0!==f[4]?f[4]:1e3)];case 1:return a=i.sent(),[4,(o=n)[e].apply(o,(0,s.Z)(t).concat([(0,c.Z)({gasLim
1it:a},r)]))];case 2:return[2,i.sent()]}})}),function(n,e,t){return i.apply(this,arguments)}),p=t(9642),h=t(10253),x=t(44431),m=t.n(x),C=t(62712),g=t(9022),Z=t(9796),v=t(62621),b=t(69352),w=(o=(0,a.Z)(function(n){var e,t,r,i,o,a,c,l;return(0,u.__generator)(this,function(u){switch(u.label){case 0:if(e=C.ZP.filter(function(n){return 0!==n.sousId}).filter(function(n){return!1===n.isFinished||void 0===n.isFinished}),r=n)return[3,2];return[4,v.v.getBlockNumber()];case 1:r=u.sent(),u.label=2;case 2:return t=r,i=e.map(function(n){var e=n.contractAddress;return{address:(0,b.Kn)(e,56),name:"startBlock"}}),o=e.map(function(n){var e=n.contractAddress;return{address:(0,b.Kn)(e,56),name:"bonusEndBlock"}}),[4,Promise.all([(0,Z.Z)(g,i),(0,Z.Z)(g,o)])];case 3:return c=(a=h.Z.apply(void 0,[u.sent(),2]))[0],l=a[1],[2,e.reduce(function(n,e,r){var i=c[r]?new(m())(c[r]):null,o=l[r]?new(m())(l[r]):null;return!i||!o||i.gte(t)||o.lte(t)?n:(0,s.Z)(n).concat([e])},[])]}})}),function(n){return o.apply(this,arguments)})},86540:function(n,e,t){var r=t(7297),i=t(85893),o=t(67294),a=t(44431),c=t.n(a),s=t(40735),u=t(44147),l=t(98768),d=t(88896),f=t(62077),p=t(75943),h=t(95160),x=t(68479),m=t(52775),C=t(87379),g=t(97119),Z=t(59123),v=t(34532),b=t(2803);function w(){var n=(0,r.Z)(["\n display: inline-flex;\n font-size: 14px;\n > svg {\n width: 14px;\n }\n"]);return w=function(){return n},n}function j(){var n=(0,r.Z)(["\n width: 100%;\n margin: 16px 0;\n padding: 1px 1px 3px 1px;\n background: ",";\n border-radius: ",";\n"]);return j=function(){return n},n}function k(){var n=(0,r.Z)(["\n position: relative;\n z-index: 1;\n padding: 8px 12px;\n background: ",";\n border-radius: ",";\n\n &:before {\n position: absolute;\n content: '';\n top: 0;\n left: 0;\n z-index: -1;\n width: 100%;\n height: 100%;\n pointer-events: none;\n border-radius: ",";\n background: ",";\n }\n"]);return k=function(){return n},n}function y(){var n=(0,r.Z)(["\n text-decoration: underline;\n"]);return y=function(){return n},n}var B=(0,C.ZP)(s.Z).withConfig({componentId:"sc-4c6f19e-0"})(w()),P=(0,C.ZP)(u.Z).withConfig({componentId:"sc-4c6f19e-1"})(j(),function(n){var e=n.theme;return n.expired?e.colors.warning:"linear-gradient(180deg, #53dee9, #7645d9)"},function(n){return n.theme.radii.default}),S=(0,C.ZP)(u.Z).withConfig({componentId:"sc-4c6f19e-2"})(k(),function(n){return n.theme.colors.backgroundAlt},function(n){return n.theme.radii.default},function(n){return n.theme.radii.default},function(n){var e=n.theme;return n.expired?"rgba(255, 178, 55, 0.098)":e.colors.gradientBubblegum}),I=(0,C.ZP)(l.Z).withConfig({componentId:"sc-4c6f19e-3"})(y()),M=function(n){var e=n.total,t=n.cakeBalance,r=n.cakeVaultBalance,a=n.cakePoolBalance,s=n.poolsBalance,l=n.cakeBnbLpBalance,C=n.ifoPoolBalance,w=n.lockedCakeBalance,j=n.lockedEndTime,k=n.block,y=(0,m.$G)().t,M=(0,v.Z)(),F=(0,o.useMemo)(function(){return 0!==j&&new(c())(null==M?void 0:M.toString()).gte(j)},[M,j]),A=(0,d.Z)((0,i.jsx)(i.Fragment,{children:Number.isFinite(w)&&(0,i.jsxs)(u.Z,{children:[(0,i.jsx)(f.Z,{children:y(F?"Your vCAKE boosting was expired at the snapshot block. Renew your fixed-term staking position to activate the boost for future voting proposals.":"Voting power is calculated using the staking amount and remaining staking duration of the fixed-term CAKE staking position at the block.")}),(0,i.jsx)(f.Z,{bold:!0,m:"10px 0",children:"".concat(y("KNIGHT locked:")," ").concat((0,Z.uf)(w,0,2))}),(0,i.jsx)(I,{href:"/pools",children:y("Go to Pools")})]})}),{placement:"bottom"}),_=A.targetRef,E=A.tooltip,z=A.tooltipVisible;return(0,i.jsxs)(b.IM,{mb:"0",children:[(0,i.jsx)(f.Z,{as:"p",mb:"24px",fontSize:"14px",color:"textSubtle",children:y("Your voting power is determined by the amount of CAKE you held and the remaining duration on the fixed-term staking position (if you have one) at the block detailed below. CAKE held in other places does not contribute to your voting power.")}),(0,i.jsx)(f.Z,{color:"secondary",textTransform:"uppercase",mb:"4px",bold:!0,fontSize:"14px",children:y("Overview")}),(0,i.jsx)(b.jb,{children:(0,i.jsxs)(b.K7,{children:[(0,i.jsx)(f.Z,{color:"secondary",children:y("Your Voting Power")}),(0,i.jsx)(f.Z,{bold:!0,fontSize:"20px",children:(0,Z.uf)(e,0,3)})]})}),(0,i.jsxs)(f.Z,{color:"secondary",textTransform:"uppercase",mb:"4px",bold:!0,fontSize:"14px",children:[y("Your voting power at block"),(0,i.jsx)(B,{href:(0,g.C)(k,"block"),ml:"8px",children:k})]}),Number.isFinite(t)&&(0,i.jsxs)(p.Z,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,i.jsx)(f.Z,{color:"textSubtle",fontSize:"16px",children:y("Wallet")}),(0,i.jsx)(f.Z,{textAlign:"right",children:(0,Z.uf)(t,0,3)})]}),Number.isFinite(r)&&(0,i.jsxs)(p.Z,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,i.jsx)(f.Z,{color:"textSubtle",fontSize:"16px",children:y("Flexible KNIGHT Staking")}),(0,i.jsx)(f.Z,{textAlign:"right",children:(0,Z.uf)(r,0,3)})]}),Number.isFinite(a)&&(0,i.jsx)(i.Fragment,{children:0===w?(0,i.jsxs)(p.Z,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(f.Z,{color:"textSubtle",fontSize:"16px",children:y("Fixed Term CAKE Staking")}),z&&E,(0,i.jsx)(p.Z,{ref:_,children:(0,i.jsx)(h.Z,{ml:"4px",width:"20px",height:"20px",color:"textSubtle"})})]}),(0,i.jsx)(f.Z,{color:"failure",textAlign:"right",children:(0,Z.uf)(a,0,3)})]}):(0,i.jsx)(P,{expired:F,children:(0,i.jsxs)(S,{expired:F,children:[(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(f.Z,{color:"textSubtle",fontSize:"16px",mr:"auto",children:y("Fixed Term CAKE Staking")}),z&&E,(0,i.jsx)(p.Z,{ref:_,children:(0,i.jsx)(h.Z,{ml:"4px",width:"20px",height:"20px",color:"textSubtle"})})]}),(0,i.jsxs)(p.Z,{mt:"10px",flexDirection:"column",alignItems:"flex-end",children:[(0,i.jsx)(f.Z,{bold:!0,color:F?"warning":"secondary",fontSize:"16px",children:(0,Z.uf)(a,0,3)}),(0,i.jsxs)(p.Z,{children:[(0,i.jsx)(x.Z,{color:F?"warning":"secondary",width:"15px",height:"15px"}),(0,i.jsx)(f.Z,{ml:"4px",color:F?"warning":"secondary",fontSize:"12px",children:y(F?"Boosting Expired":"Boosted by vCAKE")})]})]})]})})}),Number.isFinite(C)&&Number(C)>0&&(0,i.jsxs)(p.Z,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,i.jsx)(f.Z,{color:"textSubtle",fontSize:"16px",children:y("IFO Pool")}),(0,i.jsx)(f.Z,{textAlign:"right",children:(0,Z.uf)(C,0,3)})]}),Number.isFinite(s)&&(0,i.jsxs)(p.Z,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,i.jsx)(f.Z,{color:"textSubtle",fontSize:"16px",children:y("Other Syrup Pools")}),(0,i.jsx)(f.Z,{textAlign:"right",children:(0,Z.uf)(s,0,3)})]}),Number.isFinite(l)&&(0,i.jsxs)(p.Z,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,i.jsx)(f.Z,{color:"textSubtle",fontSize:"16px",children:y("CAKE BNB LP")}),(0,i.jsx)(f.Z,{textAlign:"right",children:(0,Z.uf)(l,0,3)})]})]})};e.Z=M},2803:function(n,e,t){t.d(e,{IM:function(){return f},K7:function(){return d},jb:function(){return l}});var r=t(26042),i=t(7297),o=t(85893),a=t(44147),c=t(87379);function s(){var n=(0,i.Z)(["\n border-radius: 12px;\n margin-bottom: 24px;\n padding: 1px 1px 3px 1px;\n border: ",";\n border-style: solid;\n border-color: ",";\n background: ",";\n"]);return s=function(){return n},n}function u(){var n=(0,i.Z)(["\n height: 64px;\n display: flex;\n padding: 0 16px;\n align-items: center;\n border-radius: 12px;\n justify-content: space-between;\n background: ",";\n"]);return u=function(){return n},n}var l=(0,c.ZP)(a.Z).withConfig({componentId:"sc-ce8c554-0"})(s(),function(n){return n.hasBoosted?"0px":"1px"},function(n){var e=n.theme;return n.hasBoosted?"transparent":e.colors.cardBorder},function(n){return n.hasBoosted?"linear-gradient(180deg, #53dee9, #7645d9)":"transparent"}),d=(0,c.ZP)(a.Z).withConfig({componentId:"sc-ce8c554-1"})(u(),function(n){var e=n.theme;return n.hasBoosted?e.colors.gradientBubblegum:"transparent"}),f=function(n){return(0,o.jsx)(a.Z,(0,r.Z)({mb:"24px",maxWidth:["100%","100%","100%","320px"]},n))}},49804:function(n,e,t){var r=t(7297),i=t(87379);function o(){var n=(0,r.Z)(["\n align-items: start;\n display: grid;\n grid-gap: 32px;\n grid-template-columns: minmax(0, 1fr);\n\n "," {\n grid-template-columns: 1fr 332px;\n }\n"]);return o=function(){return n},n}var a=i.ZP.div.withConfig({componentId:"sc-930753e4-0"})(o(),function(n){return n.theme.mediaQueries.lg});e.Z=a},58433:function(n,e,t){var r=t(47568),i=t(26042),o=t(69396),a=t(70655),c=t(46472),s=t(74836),u=t(75759),l=t(49770),d=t(69352),f=t(56946),p=t(62621),h=t(80197),x=function(n){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=(0,s.Ge)().account,x=(0,l.Z)(t&&e?[t,n,"votingPower"]:null,(0,r.Z)(function(){var e,r,i,o,s,u,l,x,m,C,g,Z,v,b;return(0,a.__generator)(this,function(i){switch(i.label){case 0:if(r=n)return[3,2];return[4,p.v.getBlockNumber()];case 1:r=i.sent(),i.label=2;case 2:return e=r,[4,(0,f.yp)(e)];case 3:return o=i.sent().map(function(n){var e=n.contractAddress;return(0,d.Kn)(e,c.a_.BSC)}),[4,(0,h.u$)(t,o,e)];case 4:return u=(s=i.sent()).cakeBalance,l=s.cakeBnbLpBalance,x=s.cakePoolBalance,m=s.total,C=s.poolsBalance,g=s.cakeVaultBalance,Z=s.ifoPoolBalance,[2,{cakeBalance:u,cakeBnbLpBalance:l,cakePoolBalance:x,poolsBalance:C,cakeVaultBalance:g,
1ifoPoolBalance:Z,total:m,lockedCakeBalance:v=s.lockedCakeBalance,lockedEndTime:s.lockedEndTime}]}})})),m=x.data,C=x.status,g=x.error;return g&&console.error(g),(0,o.Z)((0,i.Z)({},m),{isLoading:C!==u.iF.Fetched,isError:C===u.iF.Failed})};e.Z=x}}]);
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.