1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[468],{85200:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/invest",function(){return c(83245)}])},83245:function(a,b,c){"use strict";c.r(b),c.d(b,{default:function(){return o}});var d=c(47568),e=c(34051),f=c.n(e),g=c(85893),h=c(67294),i=c(66559),j=c(61247),k=c(214),l=c.n(k),m=c(43719),n=c(46553);function o(){var a=(0,h.useState)(null),b=a[0],c=a[1],e=(0,h.useState)(null),k=e[0],o=e[1],p=(0,h.useState)("0"),q=p[0],r=p[1],s=(0,h.useState)(),t=s[0],u=s[1];function v(){return(v=(0,d.Z)(f().mark(function a(){var b,d,e,g;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,n.J9)();case 2:return b=a.sent,a.next=5,(0,n.ZS)();case 5:return d=a.sent,a.next=8,A();case 8:return e=a.sent,a.next=11,z();case 11:g=a.sent,o(d),c(b),r(e),u(g);case 16:case"end":return a.stop()}},a)}))).apply(this,arguments)}(0,h.useEffect)(function(){!function(){return v.apply(this,arguments)}()},[k,b,t,q]);var w,x,y,z=(w=(0,d.Z)(f().mark(function a(){var b;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(a.prev=0,k){a.next=4;break}return console.log("web3auth not initialized yet"),a.abrupt("return");case 4:return a.next=6,k.getUserInfo();case 6:return b=a.sent,console.log(b),a.abrupt("return",b);case 11:a.prev=11,a.t0=a.catch(0),console.log(a.t0),console.log("This error is coming from getUser Info");case 15:case"end":return a.stop()}},a,null,[[0,11]])})),function(){return w.apply(this,arguments)}),A=(x=(0,d.Z)(f().mark(function a(){var c,d;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(a.prev=0,b){a.next=4;break}return console.log("provider not initialized yet"),a.abrupt("return");case 4:return c=new m.Z(b),a.next=7,c.getBalance();case 7:return d=a.sent,console.log(d),a.abrupt("return",d);case 12:a.prev=12,a.t0=a.catch(0),console.log(a.t0),console.log("This error is coming from getBalance");case 16:case"end":return a.stop()}},a,null,[[0,12]])})),function(){return x.apply(this,arguments)});return(0,d.Z)(f().mark(function a(c,d){var e,g;return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(a.prev=0,b){a.next=4;break}return console.log("provider not initialized yet"),a.abrupt("return");case 4:return e=new m.Z(b),a.next=7,e.sendTransaction(c,d);case 7:g=a.sent,console.log(g),a.next=15;break;case 11:a.prev=11,a.t0=a.catch(0),console.log(a.t0),console.log("This error is coming from sendTransaction");case 15:case"end":return a.stop()}},a,null,[[0,11]])})),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(j.Z,{}),(0,g.jsxs)("div",{className:"bg-blueGray-600 relative md:ml-64",children:[(0,g.jsx)(i.Z,{}),(0,g.jsx)("div",{className:"".concat(l().backgroundParent)})]})]})}},43719:function(a,b,c){"use strict";c.d(b,{Z:function(){return k}});var d=c(47568),e=c(51438),f=c(34051),g=c.n(f),h=c(241),i=c(86494),j=c(35553),k=function(){function a(b){(0,e.Z)(this,a),this.provider=b}var b=a.prototype;return b.getChainId=function(){var a=this;return(0,d.Z)(g().mark(function b(){var c,d;return g().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.prev=0,c=new h.Q(a.provider),b.next=4,c.getNetwork();case 4:return d=b.sent,b.abrupt("return",d.chainId);case 8:return b.prev=8,b.t0=b.catch(0),b.abrupt("return",b.t0);case 11:case"end":return b.stop()}},b,null,[[0,8]])}))()},b.getAccounts=function(){var a=this;return(0,d.Z)(g().mark(function b(){var c,d,e;return g().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.prev=0,d=(c=new h.Q(a.provider)).getSigner(),b.next=5,d.getAddress();case 5:return e=b.sent,b.abrupt("return",e);case 9:return b.prev=9,b.t0=b.catch(0),b.abrupt("return",b.t0);case 12:case"end":return b.stop()}},b,null,[[0,9]])}))()},b.getBalance=function(){var a=this;return(0,d.Z)(g().mark(function b(){var c,d,e,f;return g().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.prev=0,d=(c=new h.Q(a.provider)).getSigner(),b.next=5,d.getAddress();case 5:return e=b.sent,b.t0=i,b.next=9,c.getBalance(e);case 9:return b.t1=b.sent,f=b.t0.formatEther.call(b.t0,b.t1),b.abrupt("return",f);case 14:return b.prev=14,b.t2=b.catch(0),b.abrupt("return",b.t2);case 17:case"end":return b.stop()}},b,null,[[0,14]])}
1))()},b.sendTransaction=function(a,b){var c=this;return(0,d.Z)(g().mark(function d(){var e,f,i,k,l;return g().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,console.log("sengint tx...."),d.next=4,new h.Q(c.provider);case 4:return e=d.sent,d.next=7,e.getSigner();case 7:return f=d.sent,i=j.parseEther(b),d.next=11,f.sendTransaction({to:a,value:i,maxPriorityFeePerGas:"5000000000",maxFeePerGas:"6000000000000"});case 11:return k=d.sent,d.next=14,k.wait();case 14:return l=d.sent,console.log("Tx Sent!"),console.log(l),d.abrupt("return",l);case 20:return d.prev=20,d.t0=d.catch(0),alert("Sending tx failed!"),console.log(d.t0),d.abrupt("return",d.t0);case 25:case"end":return d.stop()}},d,null,[[0,20]])}))()},b.signMessage=function(a){var b=this;return(0,d.Z)(g().mark(function c(){var d,e,f,i;return g().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,e=(d=new h.Q(b.provider)).getSigner(),f=a,c.next=6,e.signMessage(f);case 6:return i=c.sent,c.abrupt("return",i);case 10:return c.prev=10,c.t0=c.catch(0),c.abrupt("return",c.t0);case 13:case"end":return c.stop()}},c,null,[[0,10]])}))()},b.getPrivateKey=function(){var a=this;return(0,d.Z)(g().mark(function b(){var c;return g().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.prev=0,b.next=3,a.provider.request({method:"eth_private_key"});case 3:return c=b.sent,b.abrupt("return",c);case 7:return b.prev=7,b.t0=b.catch(0),b.abrupt("return",b.t0);case 10:case"end":return b.stop()}},b,null,[[0,7]])}))()},a}()},46601:function(){}},function(a){a.O(0,[664,592,804,774,888,179],function(){var b;return a(a.s=85200)}),_N_E=a.O()}])
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.