PageSourceSearch

https://amply.finance/_next/static/chunks/pages/amply-093fd62eb4a09370.js

js amply.finance collected 2026-10-08 21:27:44 UTC 9,331 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[775],{3650:(e,t,s)=>{"use strict";s.d(t,{V:()=>d});var r=s(64476),l=s(87269),a=s(10203),n=s(26088),i=s(72091),o=s(1400);let d=e=>{let{children:t,fallback:s}=e,d=l.hB.useIsConnectedToSupportedChain(),x=l.hB.useIsWrongNetwork(),{openModal:c}=(0,o.o)();return x?(0,r.jsxs)(a.s,{direction:"column",gap:3.5,align:"center",mt:"20px",children:[(0,r.jsx)(n.E,{color:"primary.white",textStyle:"h3",children:"Wrong network"}),(0,r.jsx)(n.E,{color:"primary.text2",textStyle:"body",children:"Looks like you're not on our wavelength"}),(0,r.jsx)(i.$,{variant:"primary",my:4,minW:{desktop:"343px"},onClick:c,children:"Switch network"}),s]}):d?(0,r.jsx)(r.Fragment,{children:t}):(0,r.jsxs)(a.s,{direction:"column",gap:3.5,align:"center",mt:"20px",children:[(0,r.jsx)(n.E,{color:"primary.white",textStyle:"h3",children:"Wallet not connected"}),(0,r.jsx)(n.E,{color:"primary.text2",textStyle:"body",textAlign:"center",children:"Connect your wallet to start exploring with us"}),(0,r.jsx)(i.$,{variant:"primary",my:4,minW:{desktop:"343px"},onClick:c,children:"Connect wallet"}),s]})}},29865:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>G});var r=s(64476),l=s(10203),a=s(51767),n=s(31108),i=s(68179),o=s(40347),d=s(62260),x=s(87269),c=s(26088),p=s(23215),h=s(36294),j=s(72091),u=s(77681),m=s(98331),y=s(56036),b=s(94510),g=s(45593),S=s(93396),k=s(48684),v=s(57126),w=s(30508),A=s(61124);let f=e=>{let{handleClaim:t,amplyPrice:s}=e,{data:l}=(0,b.rI)(),{data:n}=(0,b.nF)(),i=l?l.reduce((e,t)=>e.add(t.amount),g.fw.ZERO):g.fw.ZERO;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.az,{children:[(0,r.jsx)(c.E,{textStyle:"body3",color:"primary.text2",children:"You staked"}),(0,r.jsxs)(p.T,{gap:"4px",alignItems:"flex-start",children:[(0,r.jsxs)(h.z,{children:[(0,r.jsx)(k.A,{symbol:"AMPLY"}),(0,r.jsx)(v.V,{value:i,textStyle:"body2"})]}),(0,r.jsx)(w.o,{textStyle:"body3",value:i,price:s})]})]}),(0,r.jsxs)(a.az,{children:[(0,r.jsx)(c.E,{textStyle:"body3",color:"primary.text2",children:"Your rewards"}),(0,r.jsxs)(p.T,{alignItems:"flex-start",gap:"4px",children:[(0,r.jsxs)(h.z,{children:[(0,r.jsx)(k.A,{symbol:"AMPLY"}),(0,r.jsx)(v.V,{value:n,textStyle:"body2"})]}),(0,r.jsx)(w.o,{textStyle:"body3",color:"primary.text2",value:n,price:s}),(0,r.jsx)(j.$,{variant:"claim",borderRadius:0,size:"sm",onClick:t,isDisabled:null==n?void 0:n.eq(0),children:"Claim / Compound"})]})]})]})},C=e=>{let{...t}=e,{data:s}=(0,b.OQ)(),{data:n}=(0,b.go)(),i=x.hB.useIsConnectedToSupportedChain(),{data:o}=(0,b.nF)(),d=null==s?void 0:s.reduce((e,t)=>e.add(t.totalStaked),g.fw.ZERO),[j,C,E,P]=(0,A.a3)(e=>[e.open,e.setTxStatus,e.setAmount,e.setType]);return(0,r.jsxs)(a.az,{...t,mb:{base:8,md:12},children:[(0,r.jsxs)(l.s,{justifyContent:{base:"space-between",desktop:"start"},alignItems:"center",gap:{base:3,desktop:12},children:[(0,r.jsx)(c.E,{color:"primary.text2",textStyle:"h2",mb:2,width:{base:"223px",desktop:"349px"},children:"Stake in $AMPLY Vaults"}),(0,r.jsx)(S.D,{maxW:"400px"})]}),(0,r.jsx)(y.u,{mb:6}),(0,r.jsxs)(u.r,{columns:{base:2,lg:3},spacing:2,width:{base:"full",lg:"80%"},children:[(0,r.jsxs)(a.az,{children:[(0,r.jsx)(c.E,{textStyle:"body3",color:"primary.text2",children:"Total staked"}),(0,r.jsxs)(p.T,{gap:"4px",alignItems:"flex-start",children:[(0,r.jsxs)(h.z,{children:[(0,r.jsx)(k.A,{symbol:"AMPLY"}),(0,r.jsx)(v.V,{value:d,textStyle:"body2"})]}),(0,r.jsx)(w.o,{textStyle:"body3",value:d,price:n})]})]}),i&&(0,r.jsx)(f,{handleClaim:()=>{P("stake"),C(m.tb.Default),E(o),j()},amplyPrice:n})]})]})};var E=s(75168),P=s(24345),z=s(87603),I=s(80009),Y=s(28701),R=s(2854),M=s(28443),F=s(67589),T=s(92525),W=s(57722);let L=e=>{let{poolId:t,poolSeconds:s,lockPeriod:l,apr:a,totalStaked:n}=e,i=(0,W.p)(l),o=x.hB.useIsConnectedToSupportedChain(),{data:d}=(0,b.rI)(),{data:u}=(0,b.go)(),y=d?d.filter(e=>e.pool.poolId===t).reduce((e,t)=>e.add(t.amount),g.fw.ZERO):g.fw.ZERO,[S,A,f]=(0,E.x)(e=>[e.open,e.setTxStatus,e.setMonth]);return(0,r.jsx)(T.A,{minW:{base:"343px",md:"430px"},children:(0,r.jsx)(P.Z,{minW:{base:"343px",md:"430px"},children:(0,r.jsxs)(z.b,{children:[(0,r.jsxs)(h.z,{justifyContent:"center",children:[(0,r.jsx)(I.I,{as:i,width:"32px",height:"32px"}),(0,r.jsx)(c.E,{textStyle:"body1",children:l})]}),(0,r.jsx)(R.cG,{}),(0,r.jsxs)(p.T,{gap:2,my:4,children:[(0,r.jsx)(M.R,{width:"full",title:(0,r.jsx)(c.E,{textStyle:"body3",children:"APR"}),content:(0,r.jsx)(v.Q,{value:a})}),(0,r.jsx)(M.R,{width:"full",title:(0,r.jsx)(c.E,{textStyle:"body3",children:"Total Staked"}),content:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.V,{value:n}),(0,r.jsx)(k.A,{symbol:"AMPLY"})]}),usdContent:(0,r.jsx)(w.o,{value:n,price:u})}),o&&(0,r.jsx)(M.R,{width:"full",title:(0,r.jsx)(c.E,{textStyle:"body3",children:"You Staked"}),content:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.V,{value:y}),(0,r.jsx)(k.A,{symbol:"AMPLY"})]}),usdContent:(0,r.jsx)(w.o,{value:y,price:u})})]}),o&&(0,r.jsxs)(h.z,{children:[(0,r.jsx)(j.$,{variant:"outline",width:"full",h:"30px",border:"0.5px solid",onClick:()=>{A(m.tb.Default),f(l),S()},children:"Stake $AMPLY"}),y.gt(0)&&(0,r.jsx)(j.$,{as:Y.N,href:"/amply/months/?period=".concat(s),rightIcon:(0,r.jsx)(F.YZI,{size:18}),variant:"outline",width:"full",size:"xs",border:"0.5px solid",children:"Details"})]})]})})})},_=()=>{let{data:e}=(0,b.OQ)();return(0,r.jsxs)(a.az,{my:4,children:[(0,r.jsx)(u.r,{columns:{lg:2,md:1},spacing:"31px",children:null==e?void 0:e.slice().reverse().map(e=>(0,r.jsx)(L,{...e},e.lockPeriod))}),(0,r.jsx)(E.q,{})]})};var O=s(18816),Z=s(57796);let $=()=>{let[e]=(0,Z.J)(e=>[e.open]),t=(0,O.A)({base:"body3",desktop:"body2"});return(0,r.jsx)(a.az,{my:12,borderRadius:"5px",bg:"rgba(16, 32, 45, 0.50)",p:"16px 16px 16px 8px",children:(0,r.jsxs)(l.s,{justifyContent:"space-between",flex:1,children:[(0,r.jsxs)(p.T,{spacing:2,align:"flex-start",children:[(0,r.jsxs)(l.s,{gap:1,children:[(0,r.jsx)(k.A,{symbol:"AMPLY"}),(0,r.jsx)(c.E,{textStyle:t,children:"Use your $AMPLY"})]}
1),(0,r.jsx)(c.E,{textStyle:t,maxW:{base:"248px",desktop:"unset"},children:"Compare the best APRs for $AMPLY within the ecosystem"})]}),(0,r.jsx)(j.$,{variant:"outline",h:"30px",border:"0.5px solid",onClick:()=>{e()},children:"View"})]})})};var V=s(3650),D=s(20110),N=s(24672),B=s(53134);let G=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N.G,{title:"Amply Finance | Amply - Staking",description:"Amply Finance | Amply - Staking"}),(0,r.jsxs)(i.P,{isFullWidth:!0,children:[(0,r.jsx)(B.A,{}),(0,r.jsxs)(l.s,{children:[(0,r.jsx)(o.SP,{children:(0,r.jsx)(d.A,{})}),(0,r.jsxs)(a.az,{minW:{base:"calc(100vw - 32px)",md:"calc(".concat(D.g_,"px - 300px)")},children:[(0,r.jsx)(V.V,{}),(0,r.jsx)(n.k,{}),(0,r.jsx)(C,{}),(0,r.jsx)($,{}),(0,r.jsx)(_,{})]})]})]})]})},31108:(e,t,s)=>{"use strict";s.d(t,{k:()=>g});var r=s(64476),l=s(60754),a=s(26088),n=s(80009),i=s(10203),o=s(28701),d=s(31798),x=s(94510),c=s(92735),p=s(45593),h=s(50353),j=s(69604),u=s(48684),m=s(40347),y=s(57126),b=s(28443);let g=()=>{let{data:e=p.fw.ZERO}=(0,x.oj)(),{data:t=p.fw.ZERO}=(0,x.dz)(),s=new Date,g=(0,c.c)(),{data:S}=(0,x.BP)();if(S&&S.claimOpenAt<=s&&s<=S.claimCloseAt)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.s,{as:o.N,href:"/claim",gap:2,height:{base:"50px",desktop:"80px"},mb:{base:2,desktop:3},cursor:"pointer",justifyContent:"center",children:[(0,r.jsx)(j.W,{as:d.o,flex:1,borderRadius:"160px",px:"18px",maxW:"360px",children:(0,r.jsx)(b.R,{width:"full",title:(0,r.jsx)(a.E,{textColor:"primary.text2",children:"Claim $AMPLY"}),content:e.isZero()&&!t.isZero()&&s<S.vestStartAt?(0,r.jsx)(a.E,{textStyle:{base:"body3",desktop:"h4"},children:g}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.V,{value:e}),(0,r.jsx)(u.A,{symbol:"AMPLY"}),(0,r.jsx)(m.SP,{children:(0,r.jsx)(n.I,{as:l.FY,color:"primary.cta",boxSize:"32px",ml:2})})]})})}),(0,r.jsx)(m._s,{children:(0,r.jsx)(j.W,{as:d.o,w:"50px",h:"100%",borderRadius:"22px",children:(0,r.jsx)(n.I,{as:l.FY,color:"primary.cta",boxSize:6})})})]}),S.vestEndAt<s&&s<S.claimCloseAt&&(0,r.jsxs)(d.o,{height:7,color:"primary.error",textStyle:{base:"body3",desktop:"body2"},children:["Claim AMPLY amount by ",(0,h.GP)(S.claimCloseAt,"dd/MM/yyyy")]})]})}},36470:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/amply",function(){return s(29865)}])},53134:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(64476),l=s(51767);let a=()=>(0,r.jsx)(l.az,{position:"absolute",zIndex:-1,w:"100%",right:0,top:0,h:{base:"45vh",desktop:"60vh"},opacity:.2,background:{base:"left / cover no-repeat url('/images/bg-dashboard-desktop.svg')",desktop:"top / cover no-repeat url('/images/bg-dashboard-desktop.svg')"}})},69604:(e,t,s)=>{"use strict";s.d(t,{W:()=>a});var r=s(64476),l=s(51767);s(5776);let a=e=>{let{children:t,...s}=e;return(0,r.jsx)(l.az,{background:"gradient.blur",boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.25)",...s,children:t})}},92735:(e,t,s)=>{"use strict";s.d(t,{c:()=>n});var r=s(46851),l=s(5776),a=s(32953);let n=()=>{let[e,t]=(0,l.useState)(""),{data:s}=(0,a.BP)();return(0,l.useEffect)(()=>{if(!s)return;let e=setInterval(()=>{let e=(0,r.F)({start:new Date,end:s.vestStartAt}),[l,a,n]=[e.days,e.hours,e.minutes].map(e=>String(null!=e?e:0).padStart(2,"0"));t("".concat(l," Days, ").concat(a,"h : ").concat(n,"m"))},1e3);return()=>clearInterval(e)},[s]),e}}},e=>{e.O(0,[692,50,851,967,636,593,792],()=>e(e.s=36470)),_N_E=e.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.