PageSourceSearch

https://divvy-demo.netlify.app/static/js/5.a1dc3782.chunk.js

js divvy-demo.netlify.app collected 2026-10-03 10:39:33 UTC 28,807 bytes, 2 lines download raw bytes

1(this.webpackJsonpdivvy=this.webpackJsonpdivvy||[]).push([[5],{604:function(e,t,r){"use strict";r.d(t,"a",(function(){return j})),r.d(t,"b",(function(){return h}));var n=r(1),a=r.n(n),c=r(14),s=r(31),i=r(0),o=r(81),l=r(18),u=r(61),d=r(305),b=r(72),p=r(7),j=Object(i.createContext)({userHT:0}),h=function(e){var t=Object(i.useContext)(b.a).wallet,r=Object(o.d)(),n=Object(i.useState)(),h=Object(s.a)(n,2),f=(h[0],h[1]),O=Object(i.useState)(0),m=Object(s.a)(O,2),x=m[0],v=m[1];return Object(i.useEffect)((function(){(null===t||void 0===t?void 0:t.publicKey)&&function(){var e=Object(c.a)(a.a.mark((function e(){var n,s,i,b,p,j;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j=function(){return(j=Object(c.a)(a.a.mark((function e(t){var n,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=9;break}return n=Object(d.a)(i,t),e.next=4,r.getTokenAccountBalance(i);case 4:c=e.sent,v(parseInt(c.value.amount)||0),f(n),e.next=11;break;case 9:v(0),f(void 0);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)},p=function(e){return j.apply(this,arguments)},n={mint:u.e},e.next=5,r.getTokenAccountsByOwner(new l.e(String(null===t||void 0===t?void 0:t.publicKey)),n);case 5:return s=e.sent,i=s.value[0].pubkey,b=Object(o.b)(r,i,p),e.abrupt("return",(function(){r.removeAccountChangeListener(b)}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[r,t]),Object(p.jsx)(j.Provider,{value:{userHT:x},children:e.children})}},605:function(e,t,r){"use strict";r.d(t,"a",(function(){return j})),r.d(t,"b",(function(){return h}));var n=r(1),a=r.n(n),c=r(14),s=r(31),i=r(0),o=r(81),l=r(18),u=r(61),d=r(305),b=r(72),p=r(7),j=Object(i.createContext)({userUSDT:0}),h=function(e){var t=Object(i.useContext)(b.a).wallet,r=Object(o.d)(),n=Object(o.e)(),h=Object(i.useState)(),f=Object(s.a)(h,2),O=(f[0],f[1]),m=Object(i.useState)(0),x=Object(s.a)(m,2),v=x[0],y=x[1];return Object(i.useEffect)((function(){(null===t||void 0===t?void 0:t.publicKey)&&function(){var e=Object(c.a)(a.a.mark((function e(){var s,i,b,p,j,h;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=function(){return(h=Object(c.a)(a.a.mark((function e(t){var n,c;return a.a.wrap((function(e){for(;;
1)switch(e.prev=e.next){case 0:if(console.log(b.toBase58()),console.log(t),!t){e.next=11;break}return n=Object(d.a)(b,t),e.next=6,r.getTokenAccountBalance(b);case 6:c=e.sent,y(parseInt(c.value.amount)||0),O(n),e.next=13;break;case 11:y(0),O(void 0);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)},j=function(e){return h.apply(this,arguments)},s=u.h(n.env),e.next=5,r.getTokenAccountsByOwner(new l.e(String(null===t||void 0===t?void 0:t.publicKey)),{mint:s});case 5:return i=e.sent,b=i.value[0].pubkey,p=Object(o.b)(r,b,j),e.abrupt("return",(function(){r.removeAccountChangeListener(p)}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[r,n,t]),Object(p.jsx)(j.Provider,{value:{userUSDT:v},children:e.children})}},606:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(18),a=r(15),c=r(61),s=Object(a.struct)([Object(a.u8)("action"),Object(a.nu64)("amount"),Object(a.u8)("divvyPdaBumpSeed")]),i=function(t,r,a,i,o,l){var u={action:"deposit"===i?0:1,amount:o,divvyPdaBumpSeed:l},d=e.alloc(s.span);return s.encode(u,d),new n.i({keys:[{pubkey:t,isSigner:!0,isWritable:!0},{pubkey:c.e,isSigner:!1,isWritable:!0},{pubkey:c.f,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:c.a,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:c.d,isSigner:!1,isWritable:!0},{pubkey:c.c,isSigner:!1,isWritable:!0}],programId:c.b,data:d})}}).call(this,r(23).Buffer)},607:function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return h}));var n=r(1),a=r.n(n),c=r(14),s=r(131),i=r(198),o=r(197),l=r(285),u=r(286);function d(){return b.apply(this,arguments)}function b(){return(b=Object(c.a)(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.ethereum.request({method:"eth_requestAccounts"});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return j.apply(this,arguments)}function j(){return(j=Object(c.a)(a.a.mark((function e(t){var r,n,c,b,p,j;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"===typeof window.ethereum){e.next=29;break}return console.log(t),e.next=4,d();case 4:return r=new s.providers.Web3Provider(window.ethereum),n=r.getSigner(),c=new i.a.Contract(o.a,l.abi,n),b=new i.a.Contract(o.b,u.usdt,n),e.prev=8,e.next=11,b.approve(c.address,t*Math.pow(10,6));case 11:return p=e.sent,e.next=14,p.wait();case 14:return e.next=16,c.process_deposit(t);case 16:return(j=e.sent).wait(),e.abrupt("return",j.hash);case 21:if(e.prev=21,e.t0=e.catch(8),console.log("Error: ",e.t0),!e.t0.data){e.next=26;break}return e.abrupt("return","Error: "+e.t0.data.message);case 26:return e.abrupt("return","Error: "+e.t0.message);case 27:e.next=30;break;case 29:return e.abrupt("return","Error: Wallet not connected");case 30:case"end":return e.stop()}}),e,null,[[8,21]])})))).apply(this,arguments)}function h(e){return f.apply(this,arguments)}function f(){return(f=Object(c.a)(a.a.mark((function e(t){var r,n,c,b,p;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"===typeof window.ethereum){e.next=29;break}return console.log(t),e.next=4,d();case 4:return r=new s.providers.Web3Provider(window.ethereum),n=r.getSigner(),c=new i.a.Contract(o.a,l.abi,n),new i.a.C
1ontract(o.b,u.usdt,n),e.prev=8,e.next=11,c.approve(c.address,t*Math.pow(10,6));case 11:return b=e.sent,e.next=14,b.wait();case 14:return e.next=16,c.process_withdrawal(t);case 16:return(p=e.sent).wait(),e.abrupt("return",p.hash);case 21:if(e.prev=21,e.t0=e.catch(8),console.log("Error: ",e.t0),!e.t0.data){e.next=26;break}return e.abrupt("return","Error: "+e.t0.data.message);case 26:return e.abrupt("return","Error: "+e.t0.message);case 27:e.next=30;break;case 29:return e.abrupt("return","Error: Wallet not connected");case 30:case"end":return e.stop()}}),e,null,[[8,21]])})))).apply(this,arguments)}},610:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return C}));var n=r(1),a=r.n(n),c=r(14),s=r(31),i=r(18),o=r(624),l=r(597),u=r(91),d=r(81),b=r(72),p=r(314),j=r(56),h=r(284),f=r(606),O=r(0),m=r(605),x=r(45),v=r(61),y=r(203),g=r(146),k=r(607),w=r(310),N=r(7),C=function(){var t=Object(b.c)(),r=Object(d.d)(),n=Object(d.e)(),C=Object(p.a)(v.e),S=Object(p.a)(v.h(n.env)),T=Object(O.useContext)(m.a).userUSDT,P=Object(O.useContext)(y.ChainSelectContext).chain,E=Object(O.useState)(""),D=Object(s.a)(E,2),W=D[0],A=D[1],L=function(){var o=Object(c.a)(a.a.mark((function c(){var o,l,u,b,p,O,m,y,T,E,D;return a.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(P!==g.a.Eth){a.next=8;break}return Object(j.a)({message:"Sending transaction...",type:"info"}),a.next=4,Object(k.a)(Number(W));case 4:(o=a.sent).includes("Error")?Object(j.a)({message:"Transaction failed...",description:o,type:"error"}):Object(j.a)({message:"Transaction success...",description:Object(N.jsx)(w.a,{address:o,cluster:"TestNet",type:"transaction"})}),a.next=36;break;case 8:if(null!=(null===t||void 0===t||null===(l=t.wallet)||void 0===l?void 0:l.publicKey)){a.next=11;break}return Object(j.a)({message:"Transaction failed...",description:"Please connect a wallet.",type:"error"}),a.abrupt("return");case 11:if(u=Number(W)*x.g,!isNaN(u)){a.next=15;break}return Object(j.a)({message:"Transaction failed...",description:"Invalid USDT amount.",type:"error"}),a.abrupt("return");case 15:if(null!=C){a.next=18;break}return Object(j.a)({message:"Transaction failed...",description:"User does not have a HP token account.",type:"error"}),a.abrupt("return");case 18:if(null!=S){a.next=21;break}return Object(j.a)({message:"Transaction failed...",description:"User does not have a USDT token account.",type:"error"}),a.abrupt("return");case 21:return a.next=23,i.e.findProgramAddress([e.from("divvyexchange")],v.b);case 23:return b=a.sent,p=Object(s.a)(b,2),O=p[1],console.log(u+" bump seed "+O),console.log(S.pubkey.toBase58()),m=Object(f.a)(t.wallet.publicKey,C.pubkey,S.pubkey,"deposit",u,O),a.next=31,Object(d.c)(r,n.env,t.wallet,[m]);case 31:y=a.sent,T=Object(s.a)(y,2),E=T[0],D=T[1],E&&D&&Object(j.a)({message:"Transaction success...",description:Object(N.jsx)(h.a,{address:D,cluster:n.env,type:"transaction"})});case 36:case"end":return a.stop()}}),c)})));return function(){return o.apply(this,arguments)}}();return Object(N.jsx)("div",{className:"sidebar-section form-grey",children:Object(N.jsxs)("div",{children:[Object(N.jsx)("h3",{children:"Divvy House Deposit"}),Object(N.jsxs)("div",{className:"balance-container",children:[Object(N.jsx)("p",{children:Object(N.jsx)("small",{className:"text-secondary",children:"Wallet balance"})}),Object(N.jsxs)("p",{className:"balance",children:[Object(x.m)(T)," USDT"]})]}),Object(N.jsx)(o.a.Item,{name:"usdtAmount",children:Object(N.jsxs)(l.a.Group,{compact:!0,children:[Object(N.jsx)(l.a,{placeholder:"USDT",name:"usdtAmount",value:W,onChange:function(e){A(e.currentTarget.value)},style:{width:"75%"}}),Object(N.jsx)(u.a,{style:{border:"1px solid rgb(67, 67, 67)"},children:"MAX"})]})}),Object(N.jsx)(u.a,{onClick:L,children:"Deposit"})]})})}}).call(this,r(23).Buffer)},611:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return N}));var n=r(1),a=r.n(n),c=r(14),s=r(31),i=r(18),o=r(624),l=r(597),u=r(91),d=r(45),b=r(81),p=r(72),j=r(56),h=r(606),f=r(0),O=r(314),m=r(61),x=r(604),v=r(146),y=r(203),g=r(310),k=r(607),w=r(7),N=function(t){var r=Object(p.c)(),n=Object(b.d)(),N=Object(b.e)(),C=Object(O.a)(m.e),S=Object(O.a)(m.h(N.env)),T=Object(f.useState)(""),P=Object(s.a)(T,2),E=P[0],D=P[1],W=Object(f.useContext)(x.a).userHT,A=Object(f.useContext)(y.ChainSelectContext).chain,L=function(){var t=Object(c.a)(a.a.mark((function t(c){var o,l,u,p,f,O,x;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(A!==v.a.Eth){t.next=8;break}return Object(j.a)({message:"Sending transaction...",type:"info"}),t.next=4,Object(k.b)(Number(E));case 4:(o=t.sent).includes("Error")?Object(j.a)({message:"Transaction failed...",description:o,type:"error"}):Object(j.a)({message:"Transaction success...",description:Object(w.jsx)(g.a,{address:o,cluster:"TestNet",type:"transaction"})}),t.next=29;break;case 8:if(null!=(null===(l=r.wallet)||void 0===l?void 0:l.publicKey)){t.next=11;break}return Object(j.a)({message:"Transaction failed...",description:"Please connect a wallet.",type:"error"}),t.abrupt("return");case 11:if(u=Number(E)*d.g,!isNaN(u)){t.next=15;break}return Object(j.a)({message:"Transaction failed...",description:"Invalid USDT amount.",type:"error"}),t.abrupt("return");case 15:if(null!=(null===C||void 0===C?void 0:C.info)){t.next=18;break}return Object(j.a)({message:"Transaction failed...",description:"User does not have a HP token account.",type:"error"}),t.abrupt("return");case 18:if(null!=(null===S||void 0===S?void 0:S.info)){t.next=21;break}return Object(j.a)({message:"Transaction failed...",description:"User does not have a USDT token account.",type:"error"}),t.abrupt("return");case 21:return t.next=23,i.e.findProgramAddress([e.from("divvyexchange")],m.b);case 23:return p=t.sent,f=Object(s.a)(p,2),O=f[1],x=Object(h.a)(r.wallet.publicKey,C.pubkey,S.pubkey,"withdraw",u,O),t.next=29,Object(b.c)(n,N.env,r.wallet,[x]);case 29:case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return Object(w.jsxs)("div",{className:"sidebar-section form-grey",children:[Object(w.jsx)("h3",{children:"Divvy House Withdrawal"}),Object(w.jsxs)("div",{className:"balance-container",children:[Object(w.jsx)("p",{children:Object(w.jsx)("small",{className:"text-secondary",children:"Withdrawable balance"})}),Object(w.jsxs)("p",{className:"balance",children:[Object(d.m)(W)," HT"]})]}),Object(w.jsx)(o.a.Item,{name:"usdtAmount",children:Object(w.jsxs)(l.a.Group,{compact:!0,children:[Object(w.jsx)(l.a,{placeholder:"HT",value:E,onChange:function(e){return D(e.currentTarget.value)},style:{width:"75%"}}),Object(w.jsx)(u.a,{style:{border:"1px solid rgb(67, 67, 67)"},children:"MAX"})]})}),Object(w.jsx)(u.a,{onClick:L,children:"Withdraw"})]})}}).call(this,r(23).Buffer)},623:function(e,t,r){"use strict";r.r(t);var n=r(31),a=r(205),c=r(215),s=r(220),i=r(610),o=r(611),l=r(91),u=r(7),d=function(){return Object(u.jsxs)("div",{className:"sidebar-section",children:[Object(u.jsx)("h3",{children:"Divvy DAO"}),Object(u.jsxs)("div",{className:"balance-container",children:[Object(u.jsx)("p",{children:Object(u.jsx)("small",{className:"text-secondary",children:"Staked Balance"})}),Object(u.jsx)("p",{className:"balance",children:"0.00 HT"})]}),Object(u.jsxs)("div",{className:"balance-container",children:[Object(u.jsx)("p",{children:Object(u.jsx)("small",{className:"text-secondary",children:"DVY Reward"})}),Object(u.jsx)("p",{className:"balance",children:"0.00 DVY"})]}),Object(u.jsxs)("div",{style:{display:"flex"},children:[Object(u.jsx)(l.a,{type:"primary",htmlType:"submit",disabled:!0,children:"Withdraw"}),Object(u.jsx)(l.a,{style:{marginLeft:10},type:"primary",htmlType:"submit",disabled:!0,children:"Withdraw & Claim"})]})]})},b=r(624),p=r(597),j=function(){return Object(u.jsxs)("div",{className:"sidebar-section",children:[Object(u.jsx)("h3",{children:"Stake your House Tokens"}),Object(u.jsxs)("div",{className:"balance-container",children:[Object(u.jsx)("p",{children:Object(u.jsx)("small",{className:"text-secondary",children:"House Token Balance"})}),Object(u.jsx)("p",{className:"balance",children:"0.00 HT"})]}),Object(u.jsx)(b.a.Item,{name:"usdtAmount",rules:[{required:!0,message:"Please input the USDT amount."}],children:Object(u.jsxs)(p.a.Group,{compact:!0,children:[Object(u.jsx)(p.a,{placeholder:"House Token",min:"0",style:{width:"75%"},disabled:!0}),Object(u.jsx)(l.a,{style:{border:"1px solid rgb(67, 67, 67)"},disabled:!0,children:"MAX"})]})}),Object(u.jsx)(l.a,{type:"primary",htmlType:"submit",children:"Stake"})]})},h=r(0),f=r(604),O=r(117),m=r(307),x=r(254),v=r(45),y=function(e){var t=Object(h.useContext)(f.a).userHT;return Object(u.jsxs)("div",{children:[Object(u.jsxs)("div",{className:"sidebar-section",children:[Object(u.jsx)("h3",{children:"My House Pool Stats"}),Object(u.jsxs)("small",{children:[Object(u.jsxs)("div",{className:"balance-container",children:[Object(u.jsx)("span",{children:"House Pool tokens"}),Object(u.jsxs)("span",{className:"balance",children:[Object(v.m)(t)," HT"]})]}),Object(u.jsxs)("div",{className:"balance-container",children:[Object(u.jsx)("span",{children:"Balance in USDT"}),Object(u.jsxs)("span",{className:"balance",children:[Object(v.m)(t)," USDT"]})]}),Object(u.jsxs)("div",{className:"balance-container",children:[Object(u.jsx)(O.a,{title:m.a.CONVERSION_RATIO,children:Object(u.jsxs)("span",{style:{display:"flex"},children:["Conversion Ratio ",Object(u.jsx)(x.a,{style:{fontSize:9,marginTop:3.4,marginLeft:2}})]})}),Object(u.jsx)("span",{className:"balance",children:"1.00"})]})]})]}),Object(u.jsx)(i.a,{}
1),Object(u.jsx)(o.a,{}),Object(u.jsx)(d,{}),Object(u.jsx)(j,{})]})},g=r(592),k=r(593),w=r(306),N=function(){var e=Object(h.useContext)(w.a).htBalance;return Object(u.jsxs)("div",{children:[Object(u.jsxs)("div",{className:"liquidity-left",children:[Object(u.jsx)("h6",{children:"100% Available Liquidity"}),Object(u.jsxs)("p",{className:"text-primary",children:[Object(v.m)(e)," USDT"]})]}),Object(u.jsxs)("div",{className:"liquidity-right",children:[Object(u.jsx)("h6",{className:"text-secondary",children:"0% Locked Liquidity"}),Object(u.jsx)("p",{className:"text-secondary",children:"0.00 USDT"})]})]})},C=r(5),S=r(3),T=r(26),P=r(29),E=r(83),D=r(30),W=r(33),A=r(11),L=r.n(A),I=r(48),B=r(168),U=r(226),H=r(315),M=r(167),q=r(65),R=r(68),z=r(41),K=r(313);function V(e){return!e||e<0?0:e>100?100:e}function _(e){var t=e.success,r=e.successPercent;return t&&"progress"in t&&(Object(z.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}var G=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},F=function(e,t){var r=e.from,n=void 0===r?K.b.blue:r,a=e.to,c=void 0===a?K.b.blue:a,s=e.direction,i=void 0===s?"rtl"===t?"to left":"to right":s,o=G(e,["from","to","direction"]);if(0!==Object.keys(o).length){var l=function(e){var t=[];return Object.keys(e).forEach((function(r){var n=parseFloat(r.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[r]})})),(t=t.sort((function(e,t){return e.key-t.key}))).map((function(e){var t=e.key,r=e.value;return"".concat(r," ").concat(t,"%")})).join(", ")}(o);return{backgroundImage:"linear-gradient(".concat(i,", ").concat(l,")")}}return{backgroundImage:"linear-gradient(".concat(i,", ").concat(n,", ").concat(c,")")}},X=function(e){var t=e.prefixCls,r=e.direction,n=e.percent,a=e.strokeWidth,c=e.size,s=e.strokeColor,i=e.strokeLinecap,o=e.children,l=e.trailColor,u=e.success,d=s&&"string"!==typeof s?F(s,r):{background:s},b=l?{backgroundColor:l}:void 0,p=Object(S.a)({width:"".concat(V(n),"%"),height:a||("small"===c?6:8),borderRadius:"square"===i?0:""},d),j=_(e),f={width:"".concat(V(j),"%"),height:a||("small"===c?6:8),borderRadius:"square"===i?0:"",backgroundColor:null===u||void 0===u?void 0:u.strokeColor},O=void 0!==j?h.createElement("div",{className:"".concat(t,"-success-bg"),style:f}):null;return h.createElement(h.Fragment,null,h.createElement("div",{className:"".concat(t,"-outer")},h.createElement("div",{className:"".concat(t,"-inner"),style:b},h.createElement("div",{className:"".concat(t,"-bg"),style:p}),O)),o)},Y=r(13),J=r(21),Q={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Z=function(e){var t=e.map((function(){return Object(h.useRef)()})),r=Object(h.useRef)(null);return Object(h.useEffect)((function(){var e=Date.now(),n=!1;Object.keys(t).forEach((function(a){var c=t[a].current;if(c){n=!0;var s=c.style;s.transitionDuration=".3s, .3s, .3s, .06s",r.current&&e-r.current<100&&(s.transitionDuration="0s, 0s")}})),n&&(r.current=Date.now())})),[t]},$=function(e){var t=e.className,r=e.percent,n=e.prefixCls,a=e.strokeColor,c=e.strokeLinecap,s=e.strokeWidth,i=e.style,o=e.trailColor,l=e.trailWidth,u=e.transition,d=Object(J.a)(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete d.gapPosition;var b=Array.isArray(r)?r:[r],p=Array.isArray(a)?a:[a],j=Z(b),f=Object(Y.a)(j,1)[0],O=s/2,m=100-s/2,x="M ".concat("round"===c?O:0,",").concat(O,"\n         L ").concat("round"===c?m:100,",").concat(O),v="0 0 100 ".concat(s),y=0;return h.createElement("svg",Object(S.a)({className:L()("".concat(n,"-line"),t),viewBox:v,preserveAspectRatio:"none",style:i},d),h.createElement("path",{className:"".concat(n,"-line-trail"),d:x,strokeLinecap:c,stroke:o,strokeWidth:l||s,fillOpacity:"0"}),b.map((function(e,t){var r=1;switch(c){case"round":r=1-s/100;break;case"square":r=1-s/2/100;break;default:r=1}var a={strokeDasharray:"".concat(e*r,"px, 100px"),strokeDashoffset:"-".concat(y,"px"),transition:u||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},i=p[t]||p[p.length-1];return y+=e,h.createElement("path",{key:t,className:"".concat(n,"-line-path"),d:x,strokeLinecap:c,stroke:i,strokeWidth:s,fillOpacity:"0",ref:f[t],style:a})})))};
1$.defaultProps=Q,$.displayName="Line";var ee=0;function te(e){return+e.replace("%","")}function re(e){return Array.isArray(e)?e:[e]}function ne(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,c=arguments.length>5?arguments[5]:void 0,s=50-n/2,i=0,o=-s,l=0,u=-2*s;switch(c){case"left":i=-s,o=0,l=2*s,u=0;break;case"right":i=s,o=0,l=-2*s,u=0;break;case"bottom":o=s,u=2*s}var d="M 50,50 m ".concat(i,",").concat(o,"\n   a ").concat(s,",").concat(s," 0 1 1 ").concat(l,",").concat(-u,"\n   a ").concat(s,",").concat(s," 0 1 1 ").concat(-l,",").concat(u),b=2*Math.PI*s,p={stroke:"string"===typeof r?r:void 0,strokeDasharray:"".concat(t/100*(b-a),"px ").concat(b,"px"),strokeDashoffset:"-".concat(a/2+e/100*(b-a),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:p}}var ae=function(e){var t=e.prefixCls,r=e.strokeWidth,n=e.trailWidth,a=e.gapDegree,c=e.gapPosition,s=e.trailColor,i=e.strokeLinecap,o=e.style,l=e.className,u=e.strokeColor,d=e.percent,b=Object(J.a)(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),p=h.useMemo((function(){return ee+=1}),[]),j=ne(0,100,s,r,a,c),f=j.pathString,O=j.pathStyle,m=re(d),x=re(u),v=x.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),y=Z(m),g=Object(Y.a)(y,1)[0];return h.createElement("svg",Object(S.a)({className:L()("".concat(t,"-circle"),l),viewBox:"0 0 100 100",style:o},b),v&&h.createElement("defs",null,h.createElement("linearGradient",{id:"".concat(t,"-gradient-").concat(p),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(v).sort((function(e,t){return te(e)-te(t)})).map((function(e,t){return h.createElement("stop",{key:t,offset:e,stopColor:v[e]})})))),h.createElement("path",{className:"".concat(t,"-circle-trail"),d:f,stroke:s,strokeLinecap:i,strokeWidth:n||r,fillOpacity:"0",style:O}),function(){var e=0;return m.map((function(n,s){var o=x[s]||x[x.length-1],l="[object Object]"===Object.prototype.toString.call(o)?"url(#".concat(t,"-gradient-").concat(p,")"):"",u=ne(e,n,o,r,a,c);return e+=n,h.createElement("path",{key:s,className:"".concat(t,"-circle-path"),d:u.pathString,stroke:l,strokeLinecap:i,strokeWidth:r,opacity:0===n?0:1,fillOpacity:"0",style:u.pathStyle,ref:g[s]})}))}().reverse())};ae.defaultProps=Q,ae.displayName="Circle";var ce=ae;function se(e){var t=e.percent,r=e.success,n=e.successPercent,a=V(t),c=_({success:r,successPercent:n});return c?[V(c),V(a-V(c))]:a}var ie=function(e){var t=e.prefixCls,r=e.width,n=e.strokeWidth,a=e.trailColor,c=e.strokeLinecap,s=e.gapPosition,i=e.gapDegree,o=e.type,l=e.children,u=r||120,d={width:u,height:u,fontSize:.15*u+6},b=n||6,p=s||"dashboard"===o&&"bottom"||"top",j=function(e){var t=e.success,r=e.strokeColor||null;return _({success:t,successPercent:e.successPercent})?[K.b.green,r]:r}(e),f="[object Object]"===Object.prototype.toString.call(j),O=L()("".concat(t,"-inner"),Object(C.a)({},"".concat(t,"-circle-gradient"),f));return h.createElement("div",{className:O,style:d},h.createElement(ce,{percent:se(e),strokeWidth:b,trailWidth:b,strokeColor:j,strokeLinecap:c,trailColor:a,prefixCls:t,gapDegree:i||0===i?i:"dashboard"===o?75:void 0,gapPosition:p}),l)},oe=function(e){for(var t=e.size,r=e.steps,n=e.percent,a=void 0===n?0:n,c=e.strokeWidth,s=void 0===c?8:c,i=e.strokeColor,o=e.trailColor,l=e.prefixCls,u=e.children,d=Math.round(r*(a/100)),b="small"===t?2:14,p=[],j=0;j<r;j+=1)p.push(h.createElement("div",{key:j,className:L()("".concat(l,"-steps-item"),Object(C.a)({},"".concat(l,"-steps-item-active"),j<=d-1)),style:{backgroundColor:j<=d-1?i:o,width:b,height:s}}));return h.createElement("div",{className:"".concat(l,"-steps-outer")},p,u)},le=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},ue=(Object(R.a)("line","circle","dashboard"),Object(R.a)("normal","exception","active","success")),de=function(e){Object(D.a)(r,e);var t=Object(W.a)(r);function r(){var e;return Object(T.a)(this,r),(e=t.apply(this,arguments)).renderProgress=function(t){var r,n,a=t.getPrefixCls,c=t.direction,s=Object(E.a)(e).props,i=s.prefixCls,o=s.className,l=s.size,u=s.type,d=s.steps,b=s.showInfo,p=s.strokeColor,j=le(s,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),f=a("progress",i),O=e.getProgressStatus(),m=e.renderProcessInfo(f,O);Object(z.a)(!("successPercent"in s),"Progress","`successPercent` is deprecated. Please use `success.percent` instead."),"line"===u?n=d?h.createElement(oe,Object(S.a)({},e.props,{strokeColor:"string"===typeof p?p:void 0,prefixCls:f,steps:d}),m):h.createElement(X,Object(S.a)({},e.props,{prefixCls:f,direction:c}),m):"circle"!==u&&"dashboard"!==u||(n=h.createElement(ie,Object(S.a)({},e.props,{prefixCls:f,progressStatus:O}),m));var x=L()(f,(r={},Object(C.a)(r,"".concat(f,"-").concat(("dashboard"===u?"circle":d&&"steps")||u),!0),Object(C.a)(r,"".concat(f,"-status-").concat(O),!0),Object(C.a)(r,"".concat(f,"-show-info"),b),Object(C.a)(r,"".concat(f,"-").concat(l),l),Object(C.a)(r,"".concat(f,"-rtl"),"rtl"===c),r),o);return h.createElement("div",Object(S.a)({},Object(I.a)(j,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","percent","success","successPercent"]),{className:x}),n)},e}return Object(P.a)(r,[{key:"getPercentNumber",value:function(){var e=this.props.percent,t=void 0===e?0:e,r=_(this.props);return parseInt(void 0!==r?r.toString():t.toString(),10)}},{key:"getProgressStatus",value:function(){var e=this.props.status;return ue.indexOf(e)<0&&this.getPercentNumber()>=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var r,n=this.props,a=n.showInfo,c=n.format,s=n.type,i=n.percent,o=_(this.props);if(!a)return null;var l="line"===s;return c||"exception"!==t&&"success"!==t?r=(c||function(e){return"".concat(e,"%")})(V(i),V(o)):"exception"===t?r=l?h.createElement(M.a,null):h.createElement(B.a,null):"success"===t&&(r=l?h.createElement(H.a,null):h.createElement(U.a,null)),h.createElement("span",{className:"".concat(e,"-text"),title:"string"===typeof r?r:void 0},r)}},{key:"render",value:function(){return h.createElement(q.a,null,this.renderProgress)}}]),r}(h.Component);de.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var be=de,pe=function(){return Object(u.jsx)(be,{className:"progress-bar",strokeColor:{"0%":"#7c01ff","100%":"#00d77d"},percent:100,showInfo:!1})},je=function(){return Object(u.jsxs)("div",{children:[Object(u.jsxs)("div",{className:"liquidity-left",children:[Object(u.jsx)("h6",{children:"Distributed amongst"}),Object(u.jsxs)("p",{className:"text-primary",children:[278," Liquidity Providers"]})]}),Object(u.jsxs)("div",{className:"liquidity-right",children:[Object(u.jsx)("h6",{className:"text-secondary",children:"Reserved for"}),Object(u.jsxs)("p",{className:"text-secondary",children:[3620," Pending Bets"]})]})]})},he=function(){var e=Object(h.useContext)(w.a).htBalance;return Object(u.jsxs)(g.a,{style:{marginTop:5,padding:5},children:[Object(u.jsx)(k.a,{style:{textAlign:"center"},span:23,md:9,offset:1,children:Object(u.jsx)("video",{autoPlay:!0,loop:!0,width:200,height:200,src:"https://siasky.net/AABLoM1oiF4w42__V4_9CO1M1AhNGydb5oaYL0vgiRpFjQ"})}),Object(u.jsx)("div",{className:"horizontal-outline"}),Object(u.jsxs)(k.a,{span:24,md:14,style:{marginTop:4},children:[Object(u.jsxs)("h1",{style:{fontSize:"1.5em"},children:[Object(v.m)(e)," USDT"]}),Object(u.jsx)("div",{style:{fontSize:"1em",marginTop:5},className:"text-secondary liquidity-total",children:"Total in the Liquidity Pool"}),Object(u.jsx)(pe,{}),Object(u.jsx)(N,{}
1),Object(u.jsx)(je,{})]})]})},fe=r(594),Oe=r(221),me=r(165);t.default=function(){var e=Object(h.useState)(!1),t=Object(n.a)(e,2),r=t[0],i=t[1],o=Object(h.useState)(!1),l=Object(n.a)(o,2),d=l[0],b=l[1];return Object(u.jsx)(fe.a,{style:{backgroundColor:"#0D0D0D"},children:Object(u.jsxs)(g.a,{children:[Object(u.jsx)(k.a,{xs:24,sm:24,md:0,children:Object(u.jsx)(Oe.a,{headerType:me.a.Liquidity,isBetSlipsVisible:d,setBetSlipsVisible:b,isMobileMenuVisible:r,setMobileMenuVisible:i})}),Object(u.jsx)(k.a,{span:5,xs:r?24:0,sm:r?24:0,md:5,children:Object(u.jsx)(a.a,{children:Object(u.jsx)(s.a,{})})}),!r&&!d&&Object(u.jsx)(k.a,{span:14,xs:24,sm:24,md:14,children:Object(u.jsx)("header",{className:"root-content",children:Object(u.jsx)(he,{})})}),Object(u.jsx)(k.a,{span:5,xs:d?24:0,sm:d?24:0,md:5,children:Object(u.jsx)(c.a,{children:Object(u.jsx)(y,{})})})]})})}}}]);
2//# sourceMappingURL=5.a1dc3782.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.