<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[549],{58141:function(e,t,a){a.d(t,{DZ:function(){return r},X6:function(){return o},uZ:function(){return s}});let r=async(e,t)=&gt;{let a={...e,slippageLimitPercent:1,disableRFQs:!0,compact:!0},r=await fetch("https://api.odos.xyz/sor/quote/v2/zap",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a),signal:t});if(200===r.status)return await r.json();console.error("Error in Quote:",r)},o=async(e,t)=&gt;{let a={...e,slippageLimitPercent:1,disableRFQs:!0,compact:!0},r=await fetch("https://api.odos.xyz/sor/quote/v2",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a),signal:t});if(200===r.status)return await r.json();console.error("Error in Quote:",await r.json())},s=async(e,t,a)=&gt;{let r={userAddr:e,pathId:t.pathId,simulate:!0},o=await fetch("https://api.odos.xyz/sor/assemble",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r),signal:a});if(200===o.status)return await o.json();console.error("assembleRequestBody Error in Transaction Assembly:",o)}},62637:function(e,t,a){var r=a(85893),o=a(82740),s=a(96292),n=a(18618),i=a(34292),l=a(5460),c=a(96854);a(67294);var d=a(1893);t.Z=e=&gt;{let{title:t,info:a,value:m,titleProps:p,valueProps:u,prefix:h,loading:x,suffix:b,valueNumberProps:f,...y}=e,[g]=(0,n.a)("(min-width: 48em)");return(0,r.jsxs)(i.U,{...y,gap:0,children:[(0,r.jsx)(l.E,{src:g?"/vectors/components/DataCard/left-center-datacard.svg":"/vectors/components/DataCard/mo-left-center-datacard.svg",alt:""}),(0,r.jsxs)(i.U,{flexDir:"column",h:{base:"68px",md:"80px"},borderTop:"1px solid",borderBottom:"1px solid",borderColor:"mahaGray.800",zIndex:1,py:3,pr:{base:0,md:3},pl:{base:0,md:3},alignItems:"center",justifyContent:"center",gap:0,bg:"mahaGray.1000",w:"100%",children:[(0,r.jsx)(s.Z,{info:a,mb:0,color:"mahaGray.500",style:{textWrap:"nowrap"},fontFamily:d.Z.fonts.secondary,...p,children:t}),x?(0,r.jsx)(c.O,{height:"24px",width:"40px"}):"string"==typeof m||"number"==typeof m?(0,r.jsx)(o.BK,{color:"mahaGray.0",prefix:h,value:m,suffix:b,fontSize:{base:20,md:24},fontWeight:600,visibleDecimals:2,...f}):m]}),(0,r.jsx)(l.E,{src:g?"/vectors/components/DataCard/right-center-datacard.svg":"/vectors/components/DataCard/mo-right-center-datacard.svg",alt:""})]})}},35725:function(e,t,a){var r=a(85893),o=a(82740),s=a(96292),n=a(18618),i=a(34292),l=a(96854),c=a(5460);a(67294);var d=a(1893);t.Z=e=&gt;{let{title:t,info:a,value:m,titleProps:p,loading:u,valueProps:h,prefix:x,suffix:b,valueNumberProps:f,...y}=e,[g]=(0,n.a)("(min-width: 48em)");return(0,r.jsxs)(i.U,{gap:0,...y,children:[(0,r.jsxs)(i.U,{flexDir:"column",h:{base:"68px",md:"80px"},borderTop:"1px solid",borderBottom:"1px solid",borderLeft:"1px solid",borderColor:"mahaGray.800",zIndex:1,borderTopLeftRadius:"lg",py:3,pr:{base:0,md:3},pl:{base:2,md:3},alignItems:"flex-start",justifyContent:"center",gap:0,bg:"mahaGray.1000",w:"100%",children:[(0,r.jsx)(s.Z,{info:a,mb:0,color:"mahaGray.500",style:{textWrap:"nowrap"},fontFamily:d.Z.fonts.secondary,...p,children:t}),u?(0,r.jsx)(l.O,{height:"24px",width:"40px"}):"string"==typeof m||"number"==typeof m?(0,r.jsx)(o.BK,{color:"mahaGray.0",prefix:x,value:m,suffix:b,visibleDecimals:2,fontSize:{base:20,lg:24},fontWeight:600,...f}):m]}),(0,r.jsx)(c.E,{src:g?"/vectors/components/DataCard/right-left-datacard.svg":"/vectors/components/DataCard/mo-right-left-datacard.svg",alt:""})]})}},62707:function(e,t,a){var r=a(85893),o=a(82740),s=a(96292),n=a(18618),i=a(34292),l=a(5460),c=a(96854);a(67294);var d=a(1893);t.Z=e=&gt;{let{title:t,info:a,value:m,titleProps:p,valueProps:u,prefix:h,suffix:x,loading:b,valueNumberProps:f,...y}=e,[g]=(0,n.a)("(min-width: 48em)");return(0,r.jsxs)(i.U,{...y,gap:0,children:[(0,r.jsx)(l.E,{src:g?"/vectors/components/DataCard/left-right-datacard.svg":"/vectors/components/DataCard/mo-left-right-datacard.svg",alt:""}),(0,r.jsxs)(i.U,{flexDir:"column",h:{base:"68px",md:"80px"},borderTop:"1px solid",borderBottom:"1px solid",borderRight:"1px solid",borderColor:"mahaGray.800",zIndex:1,borderTopRightRadius:"lg",p:3,alignItems:"flex-end",justifyContent:"center",gap:0,bg:"mahaGray.1000",w:"100%",children:[(0,r.jsx)(s.Z,{info:a,mb:0,color:"mahaGray.500",style:{textWrap:"nowrap"},fontFamily:d.Z.fonts.secondary,...p,children:t}),b?(0,r.jsx)(c.O,{height:"24px",width:"40px"}):"string"==typeof m||"number"==typeof m?(0,r.jsx)(o.BK,{color:"mahaGray.0",prefix:h,value:m,suffix:x,visibleDecimals:2,fontSize:{base:20,lg:24},fontWeight:600,...f}):m]})]})}},96292:function(e,t,a){var r=a(85893),o=a(6570),s=a(34292),n=a(71293),i=a(25675),l=a.n(i);t.Z=e=&gt;{let{info:t,...a}=e;return(0,r.jsxs)(s.U,{gap:0,children:[(0,r.jsx)(n.x,{fontSize:14,fontWeight:500,color:"mahaGray.400",fontFamily:"secondary",...a,children:a.children}),t&amp;&amp;(0,r.jsx)(o.Z,{label:t,cursor:"pointer",children:(0,r.jsx)(l(),{src:"/icons/tooltipTrigger.svg",alt:"",width:16,height:16})})]})}},11884:function(e,t,a){a.d(t,{a:function(){return s}});var r=a(16402),o=a(67294);let s=e=&gt;{let[t,a]=(0,o.useState)((0,r.VZ)(e)),[s,n]=(0,o.useState)(""),[i,l]=(0,o.useState)(!1);return(0,o.useEffect)(()=&gt;{let t=e=&gt;{let{years:t,months:a,days:r,hours:o,minutes:s,seconds:n}=e,i="";return t&gt;0&amp;&amp;(i+="".concat(t,"y ")),a&gt;0&amp;&amp;(i+="".concat(a,"m ")),r&gt;0&amp;&amp;(i+="".concat(r,"d ")),o&gt;0&amp;&amp;(i+="".concat(o,"h ")),s&gt;0&amp;&amp;(i+="".concat(s,"m ")),n&gt;0&amp;&amp;(i+="".concat(n,"s")),i.trim()},o=setInterval(()=&gt;{let o=(0,r.VZ)(e);a(o),n(t(o)),l(o.total&lt;=0)},1e3);return()=&gt;clearInterval(o)},[e]),{timeFormatted:s,futureTimeInSeconds:e,timeLeft:t,finished:i}}},27935:function(e,t,a){var r=a(85893),o=a(58616),s=a(78802),n=a(57747),i=a(5460),l=a(71293),c=a(34292),d=a(5674),m=a(41664),p=a.n(m);a(67294);var u=a(54280),h=a(89592);t.Z=e=&gt;(0,r.jsx)(s.Z,{isOpen:e.isOpen,onClose:e.onClose,children:(0,r.jsxs)(n.xu,{width:{base:"100%",lg:"684px"},children:[(0,r.jsxs)(n.xu,{p:"6px 24px 24px 24px",backgroundImage:"url('/images/lockZerobg.svg')",position:"relative",children:[(0,r.jsx)(n.xu,{position:"absolute",left:"144px",top:"12px",children:(0,r.jsx)(i.E,{src:"/images/modalSlash.svg",alt:"",width:"28px",height:"18px"})}),(0,r.jsxs)(n.xu,{display:"flex",justifyContent:"space-between",children:[(0,r.jsx)(l.x,{fontSize:"20px",fontWeight:"700",color:"mahaGray.400",children:"Success"}),(0,r.jsx)(n.xu,{children:(0,r.jsx)(h.nfZ,{color:"#78716C",cursor:"pointer",onClick:e.onClose})})]})]}),(0,r.jsxs)(n.xu,{p:6,border:"1px solid",borderColor:"mahaGray.800",bg:"mahaGray.1000",children:[(0,r.jsxs)(c.U,{mb:6,children:[(0,r.jsx)(n.xu,{mr:4,children:(0,r.jsx)(i.E,{src:"/images/sucessMark.svg",alt:"",width:84,height:84})}),(0,r.jsx)(n.xu,{maxW:"450px",children:"string"==typeof e.message?(0,r.jsx)(l.x,{fontSize:"24px",fontWeight:"600",color:"mahaGray.0",lineHeight:"32px",children:e.message}):e.message})]}),(0,r.jsx)(n.xu,{children:e.extraContent}),(0,r.jsxs)(d.M,{gap:4,mt:4,columns:2,children:[e.secondaryButton?(0,r.jsx)(p(),{...e.secondaryButton,target:"_blank",children:(0,r.jsx)(o.Z,{size:"sm",variant:"secondary",w:"100%",children:e.secondaryButtonCta})}):(0,r.jsx)(o.Z,{size:"sm",variant:"secondary",w:"100%",icon:"",onClick:e.onClose,children:"Close"}),(0,r.jsx)(p(),{target:"_blank",...e.primaryButton,children:(0,r.jsx)(o.Z,{size:"sm",variant:"primary",icon:(0,r.jsx)(u.dhL,{fontSize:"20px"}),w:"100%",children:e.primaryButtonCta})})]})]})]})})},25804:function(e,t,a){var r=a(85893),o=a(23473),s=a(78802),n=a(57747),i=a(33090),l=a(34292),c=a(5460),d=a(71293),m=a(67294),p=a(89592),u=a(82740),h=a(49321),x=a(82002);t.Z=e=&gt;{let{assets:t,setSelectedAssetIndex:a,showSearchBar:b=!1,isOpen:f,chainId:y,onClose:g}=e,[j,v]=(0,m.useState)(""),[w,C]=(0,m.useState)(t),I=(0,x.x)();return(0,m.useEffect)(()=&gt;{if(""===j){C(t.length&gt;7?t.slice(0,7):t);return}if((0,h.U)(j)){C(t.filter(e=&gt;e.address.toLowerCase()===j.toLowerCase()&amp;&amp;e.chainId===(null!=y?y:I)));return}C(t.filter(e=&gt;{var t;return e.symbol.toLowerCase().includes(j.toLowerCase())||(null===(t=e.name)||void 0===t?void 0:t.toLowerCase().includes(j.toLowerCase()))}))},[j,t]),(0,r.jsx)(s.Z,{isOpen:f,onClose:g,children:(0,r.jsxs)(n.xu,{children:[(0,r.jsx)(n.xu,{children:(0,r.jsxs)(n.xu,{display:"flex",justifyContent:"space-between",children:[(0,r.jsx)(o.Z,{text:"Choose Token"}),(0,r.jsx)(n.xu,{children:(0,r.jsx)(p.nfZ,{color:"#78716C",cursor:"pointer",onClick:g})})]})}),(0,r.jsx)(n.xu,{children:(0,r.jsxs)(n.xu,{p:"24px",border:"1px solid",borderColor:"mahaGray.900",bg:"mahaGray.1000",borderRadius:"0px 12px 12px 12px",children:[b&amp;&amp;(0,r.jsx)(n.xu,{p:2,pt:0,mb:4,children:(0,r.jsx)(n.xu,{backgroundImage:"url('/vectors/components/input/input-field.png')",className:"bg",children:(0,r.jsx)(i.I,{border:"none",outline:"none",value:j,onChange:e=&gt;v(e.target.value),_focusVisible:{outline:"none"},color:"mahaGray.0",placeholder:"Search Tokens with name, symbol or address",_placeholder:{color:"mahaGray.600"},height:"48px"})})}),(null==w?void 0:w.length)===0&amp;&amp;(0,r.jsx)(n.xu,{children:"No asset found!"}),null==w?void 0:w.map((e,t)=&gt;(0,r.jsx)(n.xu,{onClick:()=&gt;{a(t),v(""),g()},borderRadius:"10px",clipPath:"polygon( 0% 20px, 25px 0, 100% 0, 100% calc(100% - 20px),  calc(100% - 25px) 100%, 0 100%)",p:3,bg:"mahaGray.800",cursor:"pointer",mb:2,children:(0,r.jsxs)(l.U,{justifyContent:"space-between",alignItems:"center",children:[(0,r.jsxs)(l.U,{gap:2,alignItems:"center",children:[(0,r.jsx)(c.E,{src:"/icons/tokens/".concat(e.symbol.toLowerCase(),".svg"),fallbackSrc:"/icons/tokens/missing.svg",alt:e.symbol,width:8,height:8}),(0,r.jsx)(d.x,{color:"mahaGray.0",fontSize:"14px",fontWeight:"500",children:e.symbol})]}),(0,r.jsx)(u.BK,{value:e.balance,prefix:"Available: ",suffix:" ".concat(e.symbol),prefixGap:1,visibleDecimals:3,fontFamily:"primary",color:"mahaGray.500",fontSize:"12px",fontWeight:"500"})]})},t))]})})]})})}},62541:function(e,t,a){var r=a(85893),o=a(58616),s=a(82740),n=a(83813),i=a(57747),l=a(34292),c=a(5460),d=a(71293),m=a(5674);a(67294);var p=a(15229);t.Z=e=&gt;{let{sZaiPool:t,withdrawableAmount:a,countdown:u,withdraw:h,loadingWithdraw:x,cancelWithdraw:b,loadingCancelWithdraw:f}=e;return a&amp;&amp;0!=Number(a)?(0,r.jsxs)(i.xu,{width:"100%",borderRadius:"10px",clipPath:"polygon(0% 20px, 25px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 25px) 100%, 0 100%)",backgroundColor:"mahaGray.800",py:5,px:6,mt:4,fontFamily:"secondary",children:[(0,r.jsxs)(l.U,{justifyContent:"space-between",children:[(0,r.jsxs)(l.U,{gap:2,fontFamily:"primary",children:[(0,r.jsx)(c.E,{src:"/icons/timer-default.svg",alt:""}),(0,r.jsx)(d.x,{fontSize:16,fontWeight:500,color:"mahaGray.0",children:u.finished?"Redeem ZAI":"Withdraw ".concat(null==t?void 0:t.symbol," in Queue…")})]}),(0,r.jsxs)(l.U,{gap:2,children:[(0,r.jsx)(s.BK,{color:"mahaGray.0",fontSize:20,fontWeight:600,value:(0,p.b)(a,18),visibleDecimals:3,suffix:null==t?void 0:t.symbol}),(0,r.jsx)(n.Z,{symbol:null==t?void 0:t.symbol})]})]}),(0,r.jsx)(i.xu,{maxW:"520px",children:u.finished?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(d.x,{color:"mahaGray.500",children:["The 10 day timeout is now complete. You can redeem your"," ",(0,r.jsx)(s.BK,{color:"mahaGray.100",value:(0,p.b)(a,18),visibleDecimals:3,suffix:null==t?void 0:t.symbol})]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.x,{color:"mahaGray.500",children:"You can process this withdrawal anytime after the time period ends\xa0"}),(0,r.jsxs)(d.x,{color:"mahaGray.500",children:["Time Remaining:",(0,r.jsx)(d.x,{color:"mahaGray.100",as:"span",ml:2,children:u.timeFormatted})]})]})}),(0,r.jsxs)(l.U,{gap:2,children:[(0,r.jsx)(d.x,{color:"mahaGray.500",children:"Withdrawal Date: "}),(0,r.jsx)(d.x,{fontWeight:400,color:"mahaOrange.500",children:new Date(1e3*u.futureTimeInSeconds).toLocaleString()})]}),(0,r.jsxs)(m.M,{mt:8,columns:{base:1,md:2},spacing:2,children:[u.finished&amp;&amp;(0,r.jsx)(o.Z,{size:"sm",variant:"secondary",icon:"",w:"100%",chainId:null==t?void 0:t.chainId,onClick:b,disabled:!Number(a),tracking_id:"cancel-redeem-safety-pool",tracking_params:{amount:Number(a)},children:f?"Cancelling..":"Cancel"}),(0,r.jsx)(o.Z,{size:"sm",variant:"primary",icon:"",w:"100%",onClick:h,chainId:null==t?void 0:t.chainId,disabled:!u.finished||x,tracking_id:"redeem-safety-pool",tracking_params:{amount:Number(a)},children:x?"Redeeming...":"Redeem Now"})]})]}):(0,r.jsx)("div",{})}},29899:function(e,t,a){a.d(t,{Wg:function(){return h},GG:function(){return y},AZ:function(){return b},TK:function(){return g},Ip:function(){return x}});var r=a(89686),o=a(25204),s=a(62330),n=a(16402),i=a(1958),l=a(15229),c=a(17232);let d=(0,a(86435).S)("https://api.merkl.xyz").v4,m={1:{ZAIUSDC:"ZAIUSDC",ZAIMAHA:"ZAIMAHA",ZAIsZAI:"ZAIsZAI"},8453:{ZAIUSDC:"sAMM-ZAI/USDC",ZAIMAHA:"vAMM-MAHA/ZAI"}},p=async(e,t)=&gt;{let{data:a}=await d.opportunities.index.get({query:{status:"LIVE",chainId:String(e),tokens:m[e][t],test:!1,items:1e5}});return{apr:a.reduce((e,t)=&gt;e+t.apr,0),dailyRewards:a.reduce((e,t)=&gt;e+t.dailyRewards,0)}};var u=a(67294);let h=(e,t,a)=&gt;{let r=t||i.DR,s=a||i.DR,n=(0,o.CG)(t=&gt;t.pools.data[e]),l=(0,o.CG)(t=&gt;t.pools.withdrawInfo[e]),c=n[r]||{},d=(l[r]||{})[s]||{};return{mintFeeBps:c.mintFeeBps||0,redeemFeeBps:c.redeemFeeBps||0,rate:c.rate||"0",priceUsdE8:c.priceUsdE8||0,poolUsdTVL:c.poolUsdTVL||0,withdrawableAmount:BigInt(d.amount||0),withdrawTimestamp:d.timestamp||0}},x=(e,t)=&gt;{let a=(0,s.h2)(e),o=(0,r.No)(e),n=(0,r.xg)(e),i=a.safetyPool;if(!n||!i)return;let c=(0,r.dC)(e,i.szai.address,i.zai.address),d=BigInt(0),m=0;if(t){let a=h(e,i.szai.address,t);a&amp;&amp;(d=BigInt(a.withdrawableAmount),m=a.withdrawTimestamp)}return{lp:o,lpPool:n,chainId:e,zap:i.zap,bytesBoost:i.bytesBoost,rewards:[],apr:0,tvl:{amount:BigInt(c),amountFormatted:(0,l.b)(BigInt(c),18),amountUsd:Number((0,l.b)(BigInt(c),18)),amountUsdFormatted:""},withdrawableAmount:Number((0,l.b)(d,18)),withdrawableAmountWei:d,withdrawableAmountFormatted:"",withdrawTimestamp:m}},b=(e,t,a)=&gt;{let o=(0,s.h2)(e).liquidityPools.find(e=&gt;e.lpPool===t);if(!o)throw Error("Pool not found");let[i,d]=(0,u.useState)({apr:0,dailyRewards:0}),m=(0,r.Gs)(e,o.lp,a),x=(0,r.Gs)(e,o.lpPool,a),b=(0,r.Gs)(e,o.token0.address,a),f=(0,r.Gs)(e,o.token1.address,a),y=(0,r.dC)(e,o.lpPool,o.lp),g=BigInt(0),j=0,v=0,w=h(e,t,a);return w&amp;&amp;(g=BigInt(w.withdrawableAmount),j=w.withdrawTimestamp,v=w.poolUsdTVL),(0,u.useEffect)(()=&gt;{p(e,"".concat(b.symbol).concat(f.symbol)).then(e=&gt;{d(e)}).catch(()=&gt;void 0)},[e,b.symbol,f.symbol]),{lp:{...m,decimals:18,symbol:e===c.u.id?"AERO_".concat(b.symbol,"_").concat(f.symbol):"CRV_".concat(b.symbol,"_").concat(f.symbol),name:"".concat(b.symbol,"/").concat(f.symbol),price:w.priceUsdE8,balanceUsd:Number((0,l.b)(m.balanceWei||BigInt(0),18))*w.priceUsdE8},lpPool:{...x,decimals:18,symbol:e===c.u.id?"AERO_".concat(b.symbol,"_").concat(f.symbol):"CRV_".concat(b.symbol,"_").concat(f.symbol),name:"".concat(b.symbol,"/").concat(f.symbol),price:w.priceUsdE8,balanceUsd:Number((0,l.b)(x.balanceWei||BigInt(0),18))*w.priceUsdE8},chainId:e,zap:o.zap,bytesBoost:o.bytesBoost,description:o.description,link:o.link,rewards:[],...i,tvl:{amount:BigInt(y),amountFormatted:(0,l.b)(BigInt(y),18),amountUsd:v,amountUsdFormatted:(0,n.xG)(Number(v))},withdrawableAmount:Number((0,l.b)(g,18)),withdrawableAmountWei:g,withdrawableAmountFormatted:(0,n.xG)(Number((0,l.b)(g,18))),withdrawTimestamp:j}},f=(e,t)=&gt;(0,s.h2)(e).liquidityPools.map(a=&gt;b(e,a.lpPool,t)).filter(e=&gt;!!e),y=e=&gt;[...f(1,e),...f(8453,e)],g=()=&gt;{var e;let t=[...f(1),...f(8453)],a=x(1),o=(0,s.h2)(1),n=(0,r.Gs)(1,o.assets.susde.address,o.contractAddresses.pegStabilityModuleSUSD);return{psmTVLusd:Number(n.balance||0)*n.price,liquidityPoolsTvlUsd:null!==(e=t.reduce((e,t)=&gt;e+t.tvl.amountUsd,0))&amp;&amp;void 0!==e?e:0,safetyPoolTvlUsd:a?a.tvl.amountUsd:0}}},68519:function(e,t,a){a.d(t,{P:function(){return c}});var r=a(16554),o=a(16914),s=a(87052),n=a(33951),i=a(85893);function l(e){return(0,n.XQ)(e,e=&gt;"auto"===e?"auto":`span ${e}/span ${e}`)}var c=(0,r.G)(function(e,t){let{area:a,colSpan:r,colStart:n,colEnd:c,rowEnd:d,rowSpan:m,rowStart:p,...u}=e,h=(0,s.o)({gridArea:a,gridColumn:l(r),gridRow:l(m),gridColumnStart:n,gridColumnEnd:c,gridRowStart:p,gridRowEnd:d});return(0,i.jsx)(o.m.div,{ref:t,__css:h,...u})});c.displayName="GridItem"}}]);</pre></body></html>