PageSourceSearch

https://pancakeswap.finance/_next/static/chunks/pages/liquidity/add/[[...poolId]]-6efb8a7848205c15.js

js pancakeswap.finance collected 2026-10-01 10:14:01 UTC 67,595 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d355001c-af82-49ab-a6d1-66225219f9bf",e._sentryDebugIdIdentifier="sentry-dbid-d355001c-af82-49ab-a6d1-66225219f9bf")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6034,7168],{30596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(350979),l=n(876089),r=n(2828),o=n(764289),a=n.n(o);let s=()=>(0,i.jsx)(l.A,{LinkComp:a(),children:(0,i.jsx)(r.bV,{title:"404"})});s.chains=[];let u=s},52203:(e,t,n)=>{"use strict";n.d(t,{Fs:()=>u,Ic:()=>d});var i=n(659918);let l=(e,t)=>!!e&&!!t&&0===e.localeCompare(t,void 0,{sensitivity:"accent"});var r=n(91168),o=n(659197),a=n(414070);let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["BUSD","WBNB"];return e.find(e=>t.some(t=>e.quoteToken.symbol===t))||e[0]};function u(e,t,n,l){return(0,o.o4)(e)?((e,t,n,l,r,o)=>{if(e.isZero())return i.AH;let s=n.times(t),u=r.times(l),d=s.plus(u),c=e.div((0,a.E)(o));return d.div(c)})(new r.A(e.lpTotalSupply),new r.A(e.tokenAmountTotal),t,new r.A(e.quoteTokenAmountTotal),n,l):((e,t,n,l,r)=>{let o=i.AH;if(e.gt(0)&&t.gt(0)){let t=l.times(n).times(i.eA),s=e.div((0,a.E)(r));o=t.div(s)}return o})(new r.A(e.lpTotalSupply),new r.A(e.lpTotalInQuoteToken),new r.A(e.tokenAmountTotal),t,l)}let d=(e,t,n)=>{var o;if(!e||!t||0===e.length)return[];let a=e.find(e=>((e,t)=>!!l(e.lpAddress,t.address)||l(e.token.symbol,t.stable)&&l(e.quoteToken.symbol,t.wNative))(e,t)),d=(null==a||null==(o=a.token)?void 0:o.symbol)===t.wNative,c=a&&0!==Number(null==a?void 0:a.tokenPriceVsQuote)?d?new r.A(a.tokenPriceVsQuote):i.Mm.div(new r.A(a.tokenPriceVsQuote)):i.AH;return e.map(o=>{var a,d;let p=(a=o.quoteToken.address,d=[t.wNative,t.stable],s(e.filter(e=>l(e.token.address,a)),d)),m=((e,t,n,l,o)=>e.quoteToken.symbol===o?i.Mm:e.quoteToken.symbol===l?n:t?t.quoteToken.symbol===l?t.tokenPriceVsQuote?n.times(new r.A(t.tokenPriceVsQuote)):i.AH:t.quoteToken.symbol===o&&t.tokenPriceVsQuote?new r.A(t.tokenPriceVsQuote):i.AH:i.AH)(o,p,c,t.wNative,t.stable),v=((e,t,n,l,o,a)=>{let s=!!e.tokenPriceVsQuote;return e.quoteToken.symbol===o?s?new r.A(e.tokenPriceVsQuote):i.Mm:e.quoteToken.symbol===l?s?n.times(new r.A(e.tokenPriceVsQuote)):i.Mm:t&&(t.quoteToken.symbol===l||t.quoteToken.symbol===o)?s&&a?new r.A(e.tokenPriceVsQuote).times(a):i.Mm:i.AH})(o,p,c,t.wNative,t.stable,m),h=u(o,v,m,n);return{...o,tokenPriceBusd:v.toString(),quoteTokenPriceBusd:m.toString(),lpTokenPrice:h.toString()}})}},115843:(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var i=n(350979),l=n(25963),r=n(48099),o=n(96278),a=n(735872),s=n(334804),u=n(680797),d=n(442828),c=n(179087),p=n(769932),m=n(311560),v=n(3197),h=n(857036),g=n(966983),x=n(282304),y=n(605641),f=n(995315),b=n(490233),w=n(38395),A=n(249452),k=n(129166),T=n(102342),C=n(830640),S=n(842807),I=n(796147),j=n(979332),M=n(962478),P=n(501823),N=n(399832),B=n(310085),E=n(557423),q=n(721745),R=n(862373),U=n(118708),D=n(954335),L=n(619749);let _=function(e){let{tokens:t,handleCurrencySelect:n}=e,{t:r}=(0,p.A)(),[o,a]=(0,l.useState)(!1),[s]=(0,U.fp)(R.fk),{addUserToken:u}=(0,D.F)();return(0,i.jsxs)(I.mm,{gap:"lg",children:[(0,i.jsx)(T._,{}),t.map(e=>{let t=e.address?`${(0,q.A)(e.address)}`:null;return(0,i.jsxs)(f.A,{gap:"4px",flexDirection:"column",children:[(0,i.jsx)(j.A,{variant:"failure",outline:!0,scale:"sm",startIcon:(0,i.jsx)(M.A,{color:"failure"}),children:r("Unknown Source")}),(0,i.jsxs)(P.A,{alignItems:"center",children:[(0,i.jsx)(y.A,{mr:"8px",children:e.name||e.symbol}),(0,i.jsxs)(y.A,{children:["(",e.symbol,")"]})]}),(0,i.jsxs)(P.A,{justifyContent:"space-between",width:"100%",children:[(0,i.jsx)(y.A,{mr:"4px",children:t}),(0,i.jsx)(N.A,{href:`${s.host}/token/${e.address}`,children:r("View on %site%",{site:"Solana Explorer"})})]})]},e.address)}),(0,i.jsxs)(P.A,{justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(P.A,{alignItems:"center",onClick:()=>a(!o),children:[(0,i.jsx)(B.A,{scale:"sm",name:"confirmed",type:"checkbox",checked:o,onChange:()=>a(!o)}),(0,i.jsx)(y.A,{ml:"8px",style:{userSelect:"none"},children:r("I understand")})]}),(0,i.jsx)(E.A,{variant:"danger",disabled:!o,onClick:()=>
1{t.forEach(e=>{u((0,L.sI)(e))}),n&&n(t[0])},className:".token-dismiss-button",children:r("Import")})]})]})},F=(0,u.I4)(g.Bs).withConfig({componentId:"sc-7e443008-0"})(["width:100%;min-width:320px;min-height:calc(var(--vh,1vh) * 90);","{max-width:420px !important;min-height:auto;}"],e=>{let{theme:t}=e;return t.mediaQueries.sm}),Q=(0,u.I4)(g.rQ).withConfig({componentId:"sc-7e443008-1"})(["border:none;"]),O=(0,u.I4)(g.cw).withConfig({componentId:"sc-7e443008-2"})(["padding:4px 24px 24px;max-height:calc(90vh);overflow-y:",";-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"],e=>{let{$allowScroll:t}=e;return t?"auto":"hidden"});function V(e){var t,n,u;let{supportCrossChain:I=!1,onDismiss:j=()=>null,onCurrencySelect:M,selectedCurrency:P,otherSelectedCurrency:N,commonBasesType:B,tokensToShow:E,modalTitle:q,showCommonBases:R=!0,showSearchInput:U,searchInputPlaceholder:D,showCurrencyInHeader:L=!1,showSearchHeader:V,mode:Y,showNative:$=!0,showMultichainBalances:H=!1,enableMultichainSearch:W=!1,currencyStatus
1Map:Z,allowedChainIds:X,showNativeChainIds:z,showNativeAfterTokens:G,nativeInsertIndex:K,onChainSelect:J,preserveChainOrder:ee}=e,[et,en]=(0,l.useState)(S.Yg.search),[ei,el]=(0,l.useState)(null!=(u=null!=(n=null==P?void 0:P.chainId)?n:null==N?void 0:N.chainId)?u:null==X?void 0:X[0]),er=(0,l.useCallback)(e=>{null==j||j(),null==M||M(e)},[j,M]),eo=(0,c.Sz)(et),[ea,es]=(0,l.useState)(),[eu,ed]=(0,l.useState)(),[ec,ep]=(0,l.useState)(),{t:em}=(0,p.A)(),[,ev]=(0,s.pE)(),eh=(0,a.mC)(),eg=!!(ec&&(null==(t=eh[ec])?void 0:t.loadingRequestId)),ex=(0,h.jU)(ev),[ey,ef]=(0,l.useState)(null),eb=(0,l.useCallback)(()=>{!eg&&ec&&(ef(null),ex(ec).then(()=>{ev((0,h.c6)(ec)),en(S.Yg.manage)}).catch(e=>{ef(e.message),ev((0,h.tK)(ec))}))},[eg,ev,ex,ec]),ew=(0,l.useMemo)(()=>({[S.Yg.search]:{title:em("Select a Token"),onBack:void 0},[S.Yg.manage]:{title:em("Manage Tokens"),onBack:()=>en(S.Yg.search)},[S.Yg.importToken]:{title:em("Import Tokens"),onBack:()=>en(eo&&eo!==S.Yg.importToken?eo:S.Yg.search)},[S.Yg.importList]:{title:em("Import List"),onBack:()=>en(S.Yg.search)}}),[em,eo]),eA=(0,l.useRef)(null),[ek,eT]=(0,l.useState)(void 0);return(0,l.useEffect)(()=>{let e=eA.current;if(!e)return;let t=()=>eT(e.offsetHeight-300);t();let n="undefined"!=typeof ResizeObserver?new ResizeObserver(t):void 0;return null==n||n.observe(e),window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{null==n||n.disconnect(),window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[]),(0,i.jsxs)(F,{dragConstraints:{top:0,bottom:600},dragElastic:{top:0},dragSnapToOrigin:!0,onDragStart:()=>{eA.current&&(eA.current.style.animation="none")},onDragEnd:(e,t)=>{t.velocity.y>x.G8&&j&&j()},ref:eA,children:[(!V||et!==S.Yg.search)&&(0,i.jsxs)(Q,{children:[(0,i.jsxs)(g.wt,{children:[ew[et].onBack&&(0,i.jsx)(g.jR,{onBack:ew[et].onBack}),L&&P?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.Z,{size:"32px",showChainLogo:I,currency:P,style:{borderRadius:"50%"}}),(0,i.jsx)(y.A,{px:"8px",bold:!0,fontSize:"20px",children:(0,d.En)(P.wrapped.address,P.chainId,P.symbol)}),!P.isNative&&(0,i.jsxs)(f.A,{gap:"8px",alignItems:"center",children:[(0,i.jsx)(b.i,{"data-dd-action-name":"Copy token address",width:"16px",buttonColor:"textSubtle",text:P.wrapped.address,tooltipMessage:em("Token address copied"),defaultTooltipMessage:em("Copy token address"),tooltipPlacement:"top"}),(0,i.jsx)(o.k,{address:P.wrapped.address,chainId:P.chainId,type:"token",color:"textSubtle",width:"18px",tooltipPlacement:"top"}),(0,i.jsx)(r.A,{"data-dd-action-name":"Add to wallet",variant:"text",p:"0",height:"auto",width:"fit-content",tokenAddress:P.wrapped.address,tokenSymbol:P.symbol,tokenDecimals:P.decimals,tokenLogo:P.wrapped instanceof v.Xs?P.wrapped.logoURI:void 0,tooltipPlacement:"top"})]})]}):(0,i.jsx)(y.A,{fontSize:"18px",bold:!0,children:ew[et].title})]}),(0,i.jsx)(g.s_,{onDismiss:j})]}),(0,i.jsx)(O,{$allowScroll:et===S.Yg.importToken||et===S.Yg.manage,children:et===S.Yg.search?(0,i.jsx)(k.A,{onSettingsClick:()=>en(S.Yg.manage),supportCrossChain:I,onCurrencySelect:er,selectedCurrency:P,otherSelectedCurrency:N,showCommonBases:R,commonBasesType:B,showSearchInput:U,searchInputPlaceholder:D,showImportView:()=>en(S.Yg.importToken),setImportToken:es,height:ek,tokensToShow:E,showChainLogo:I,showSearchHeader:V,headerTitle:q,onDismiss:j,mode:Y,setSelectedChainId:el,selectedChainId:ei,showNative:$,showMultichainBalances:H,enableMultichainSearch:W,currencyStatus
1Map:Z,allowedChainIds:X,showNativeChainIds:z,showNativeAfterTokens:G,nativeInsertIndex:K,onChainSelect:J,preserveChainOrder:ee}):et===S.Yg.importToken&&ea?ea instanceof m.xx?(0,i.jsx)(_,{tokens:[ea],handleCurrencySelect:er}):(0,i.jsx)(T.A,{tokens:[ea],handleCurrencySelect:er}):et===S.Yg.importList&&eu&&ec?(0,i.jsx)(A.q,{onAddList:eb,addError:ey,listURL:ec,listLogoURI:null==eu?void 0:eu.logoURI,listName:null==eu?void 0:eu.name,listTokenLength:null==eu?void 0:eu.tokens.length}):et===S.Yg.manage?(0,i.jsx)(C.A,{setModalView:en,setImportToken:es,setImportList:ed,setListUrl:ep,chainId:ei}):null})]})}},157852:(e,t,n)=>{"use strict";n.d(t,{Hq:()=>a,Qv:()=>o,UT:()=>l,aO:()=>r});var i=n(985148);let l=(0,i.eU)({bestOrder:void 0,tradeLoaded:!1,tradeError:void 0,refreshDisabled:!1,refreshOrder:()=>{},refreshTrade:()=>{},pauseQuoting:()=>{},resumeQuoting:()=>{}}),r=(0,i.eU)(!1),o=(0,i.eU)(!1),a=(0,i.eU)(e=>{let t=e(l),n=e(o);return{...t,tradeLoaded:!n&&t.tradeLoaded}})},186757:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var i=n(25963),l=n(569019),r=n(241439),o=n(17581);let a=e=>{let{address:t}=(0,o.F)(),n=(0,l.Sd)(t,e,null==e?void 0:e.chainId);return(0,i.useMemo)(()=>(0,r.r)(n),[n])}},204577:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function l(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var o=l.apply(null,n);o&&e.push(o)}}else if("object"===r){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)i.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(n=(function(){return l}).apply(t,[]))||(e.exports=n)}()},286844:(e,t,n)=>{"use strict";n.d(t,{G:()=>i.G});var i=n(289062)},335403:(e,t,n)=>{"use strict";n.d(t,{D_:()=>i,Oy:()=>l,h5:()=>r});var i=function(e){return e[e.SWAP=0]="SWAP",e[e.MINT=1]="MINT",e[e.BURN=2]="BURN",e}({}),l=function(e){return e[e.V3=0]="V3",e[e.V2=1]="V2",e}({}),r=function(e){return e[e.daily=0]="daily",e[e.weekly=1]="weekly",e[e.monthly=2]="monthly",e}({})},344035:(e,t,n)=>{"use strict";n.d(t,{I:()=>v});var i=n(350979),l=n(734658),r=n(796147),o=n(970911),a=n(841643),s=n(687287),u=n(411207),d=n(386182),c=n(25963),p=n(488907),m=n(312779);let v=e=>{let{baseCurrency:t,quoteCurrency:n,tickSpacing:v,currentPrice:h,quickAction:g,handleQuickAction:x}=e,[y]=(0,p.h2)(),[{lowerTick:f,upperTick:b}]=(0,p.N_)(),w=(0,c.useMemo)(()=>null!==f&&null!==b,[f,b]),{onLowerDecrement:A,onLowerIncrement:k,onUpperDecrement:T,onUpperIncrement:C,onLowerUserInput:S,onUpperUserInput:I}=(0,d.w)(t,n,v,h),[j,M]=(0,c.useMemo)(()=>t&&n?(0,l.Uy)([t,n]):[void 0,void 0],[t,n]),P=(0,s.f6)(j,M),N=(0,c.useCallback)(e=>(0,m.N)(P(e)),[P]),{minPrice:B,maxPrice:E}=(0,u.d)(t,n,null!=v?v:void 0,N),[q,R,U,D,L,_]=(0,c.useMemo)(()=>y?[C,T,k,A,I,S]:[A,k,T,C,S,I],[y,A,k,T,C,S,I]);return(0,i.jsxs)(r.mm,{gap:"8px",children:[(0,i.jsx)(a.z,{baseCurrency:t,quoteCurrency:n,minPrice:B,maxPrice:E,onMinPriceDecrement:q,onMinPriceIncrement:R,onMaxPriceDecrement:U,onMaxPriceIncrement:D,onMinPriceUserInput:L,onMaxPriceUserInput:_}),(0,i.jsx)(o.r.PriceRangePicker,{tickSpacing:v,value:w?g:void 0,onChange:x})]})}},386182:(e,t,n)=>{"use strict";n.d(t,{w:()=>p});var i=n(734658),l=n(673384),r=n(91168),o=n(687287),a=n(403607),s=n(112788),u=n(25963),d=n(488907),c=n(702356);let p=(e,t,n,p)=>{let[{lowerTick:m,upperTick:v},h]=(0,d.N_)(),g=(0,o.hx)(e,t),[x,y]=(0,u.useMemo)(()=>e&&t?(0,i.Uy)([e,t]):[void 0,void 0],[e,t]),f=(0,u.useCallback)(()=>{null!==m&&n&&(S(null),h({lowerTick:(0,l.Yp)(m+n,n)}))},[m,n,h]),b=(0,u.useCallback)(()=>{null!==m&&n&&(S(null),h({lowerTick:(0,l.Yp)(m-n,n)}))},[m,n,h]),w=(0,u.useCallback)(()=>{null!==v&&n&&(S(null),h({upperTick:(0,l.Yp)(v+n,n)}))},[v,n,h]),A=(0,u.useCallback)(()=>{null!==v&&n&&(S(null),h({upperTick:(0,l.Yp)(v-n,n)}))},[v,n,h]),k=(0,u.useCallback)(l=>{if(!n||!e||!t)return;if(S(null),""===l)return void h({lowerTick:null});let r=g(l);if(void 0===r)return;(0,i.lV)(e,t)||(r=r.invert());let o=(0,a.We)(r,n);void 0!==o&&h({lowerTick:o})},[n,h,e,t,g]),T=(0,u.useCallback)(l=>{if(!n||!e||!t)return;if(S(null),""===l)return void h({upperTick:null});let r=g(l);
1if(void 0===r)return;(0,i.lV)(e,t)||(r=r.invert());let o=(0,a.We)(r,n);void 0!==o&&h({upperTick:o})},[n,e,t,h,g]),[C,S]=(0,u.useState)(null),I=(0,c.V)(null!=n?n:void 0);return{onLowerIncrement:f,onLowerDecrement:b,onUpperIncrement:w,onUpperDecrement:A,onLowerUserInput:k,onUpperUserInput:T,quickAction:C,handleQuickAction:(0,u.useCallback)((e,t)=>{if(!n||!x||!y||!p||p.equalTo(0))return;if(S(e),100===e)return void h({lowerTick:I.LOWER,upperTick:I.UPPER});let{initialMin:l,initialMax:o}=t,u=(0,i.lV)(p.baseCurrency,p.quoteCurrency)?p:p.invert(),d=(0,s.m)(x,y,new r.A(u.denominator?u.toFixed(18):0).times(null!=l?l:1).toString()),c=(0,s.m)(x,y,new r.A(u.denominator?u.toFixed(18):0).times(null!=o?o:1).toString());if(d&&c)h({lowerTick:(0,a.We)(d,n),upperTick:(0,a.We)(c,n)})},[p,x,y,h,n,I])}}},403607:(e,t,n)=>{"use strict";n.d(t,{We:()=>o,y1:()=>a});var i=n(213527),l=n(734658),r=n(673384);function o(e,t){let n;if(!e||!t||"boolean"==typeof e)return;let i=(0,r.r_)(e.numerator,e.denominator);return n=i>=r.gy.MAX_SQRT_RATIO?r.gy.MAX_TICK:i<=r.gy.MIN_SQRT_RATIO?r.gy.MIN_TICK:function(e){let[t]=(0,l.Uy)([e.baseCurrency,e.quoteCurrency]),n=t.equals(e.baseCurrency),i=n?(0,r.r_)(e.numerator,e.denominator):(0,r.r_)(e.denominator,e.numerator),o=r.gy.getTickAtSqrtRatio(i),s=a(e.baseCurrency,e.quoteCurrency,o+1);return n?!e.lessThan(s)&&o++:!e.greaterThan(s)&&o++,o}(e),(0,r.Yp)(n,t)}function a(e,t,n){let o=r.gy.getSqrtRatioAtTick(n),a=o*o,[s]=(0,l.Uy)([e,t]);return s.equals(e)?new l.gm(e,t,i.CI,a):new l.gm(e,t,a,i.CI)}},414070:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var i=n(659918);let l=(0,n(381033).A)(e=>i.Fw.pow(e))},547725:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(350979);n(25963);var l=n(257057);let r=e=>(0,i.jsx)(l.A,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{d:"M8.13107 21.6744L6.67407 19.2732L3.95382 18.6542C3.68865 18.5964 3.47849 18.4659 3.32332 18.2629C3.16799 18.0601 3.10699 17.8241 3.14032 17.5549L3.39032 14.7657L1.53932 12.6897C1.36532 12.4784 1.27832 12.2484 1.27832 11.9999C1.27832 11.7514 1.36532 11.5215 1.53932 11.3102L3.39032 9.23419L3.14032 6.44493C3.10699 6.17577 3.16799 5.93977 3.32332 5.73693C3.47849 5.53393 3.68865 5.40352 3.95382 5.34569L6.67407 4.72669L8.13107 2.32544C8.26374 2.11427 8.45115 1.96519 8.69332 1.87819C8.93549 1.79119 9.1809 1.79535 9.42957 1.89069L11.9996 3.00369L14.5696 1.89069C14.8182 1.79535 15.0637 1.79119 15.3058 1.87819C15.548 1.96519 15.7354 2.11427 15.8681 2.32544L17.3251 4.72669L20.0453 5.34569C20.3105 5.40352 20.5207 5.53393 20.6758 5.73693C20.8312 5.93977 20.8922 6.17577 20.8588 6.44493L20.6088 9.23419L22.4598 11.3102C22.6338 11.5215 22.7208 11.7514 22.7208 11.9999C22.7208 12.2484 22.6338 12.4784 22.4598 12.6897L20.6088 14.7657L20.8588 17.5549C20.8922 17.8241 20.8312 18.0601 20.6758 18.2629C20.5207 18.4659 20.3105 18.5964 20.0453 18.6542L17.3251 19.2732L15.8681 21.6744C15.7354 21.8856 15.548 22.0347 15.3058 22.1217C15.0637 22.2087 14.8182 22.2045 14.5696 22.1092L11.9996 20.9962L9.42957 22.1092C9.1809 22.2045 8.93549 22.2087 8.69332 22.1217C8.45115 22.0347 8.26374 21.8856 8.13107 21.6744ZM11.9996 17.0032C12.2974 17.0032 12.5507 16.8988 12.7596 16.6899C12.9684 16.4811 13.0728 16.2278 13.0728 15.9299C13.0728 15.6321 12.9684 15.3777 12.7596 15.1667C12.5507 14.9559 12.2974 14.8504 11.9996 14.8504C11.7017 14.8504 11.4484 14.9559 11.2396 15.1667C11.0307 15.3777 10.9263 15.6321 10.9263 15.9299C10.9263 16.2278 11.0307 16.4811 11.2396 16.6899C11.4484 16.8988 11.7017 17.0032 11.9996 17.0032ZM11.9996 13.2119C12.2854 13.2119 12.5298 13.1104 12.7328 12.9074C12.9357 12.7046 13.0371 12.4603 13.0371 12.1744V8.11194C13.0371 7.8261 12.9357 7.58169 12.7328 7.37869C12.5298 7.17585 12.2854 7.07443 11.9996 7.07443C11.7137 7.07443 11.4693 7.17585 11.2663 7.37869C11.0635 7.58169 10.9621 7.8261 10.9621 8.11194V12.1744C10.9621 12.4603 11.0635 12.7046 11.2663 12.9074C11.4693 13.1104 11.7137 13.2119 11.9996 13.2119Z",fill:"currentColor"})})},579058:(e,t,n)=>{"use strict";n.d(t,{Uj:()=>b,HL:()=>T});var i=n(228876),l=n(987212),r=n(659918),o=n(91168),a=n(240183),s=n(495659),u=n(659197),d=n(52203),c=n(603616);let p=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}],m=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.nU.BSC,n=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0;try{let i=e.flatMap(e=>((e,t,n)=>{let{lpAddress:i,token:l,quoteToken:r,bCakeWrapperAddress:o}=e;return[{abi:p,address:l.address,functionName:"balanceOf",args:[i]},{abi:p,address:r.address,functionName:"balanceOf",args:[i]},{abi:p,address:i,functionName:"balanceOf",args:[o||n||t]},{abi:p,address:i,functionName:"totalSupply"}]}
1)(e,l,s.vJ[t])),r=i.length/e.length,o=await n({chainId:t}).multicall({contracts:i,allowFailure:!1});return(0,c.A)(o,r)}catch(e){throw console.error("MasterChef Public Data error ",e),e}};var v=n(34117);let h=[{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"coins",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"balances",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"j",type:"uint256"},{internalType:"uint256",name:"dx",type:"uint256"}],name:"get_dy",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}];async function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.nU.BSC,n=arguments.length>2?arguments[2]:void 0,l=e.flatMap(e=>[{abi:h,address:e.stableSwapAddress,functionName:"balances",args:[0n]},{abi:h,address:e.stableSwapAddress,functionName:"balances",args:[1n]},{abi:h,address:e.stableSwapAddress,functionName:"get_dy",args:[0n,1n,(0,v.X)("1",e.token.decimals)]},{abi:h,address:e.stableSwapAddress,functionName:"get_dy",args:[1n,0n,(0,v.X)("1",e.quoteToken.decimals)]}]),r=l.length/e.length,o=await n({chainId:t}).multicall({contracts:l,allowFailure:!1});return(0,c.A)(o,r)}var x=n(414070);let y={[i.nU.ETHEREUM]:{address:"0x2E8135bE71230c6B1B4045696d41C09Db0414226",wNative:"WETH",stable:"USDC"},[i.nU.GOERLI]:{address:"0xf5bf0C34d3c428A74Ceb98d27d38d0036C587200",wNative:"WETH",stable:"tUSDC"},[i.nU.BSC]:{address:"0x58F876857a02D6762E0101bb5C46A8c1ED44Dc16",wNative:"WBNB",stable:"BUSD"},[i.nU.BSC_TESTNET]:{address:"0x4E96D2e92680Ca65D58A0e2eB5bd1c0f44cAB897",wNative:"WBNB",stable:"BUSD"},[i.nU.ARBITRUM_ONE]:{address:"0x4E96D2e92680Ca65D58A0e2eB5bd1c0f44cAB897",wNative:"WETH",stable:"USDC"},[i.nU.MONAD_TESTNET]:{address:"0x4E96D2e92680Ca65D58A0e2eB5bd1c0f44cAB897",wNative:"MON",stable:"USDC"},[i.nU.MONAD_MAINNET]:{address:"0x4E96D2e92680Ca65D58A0e2eB5bd1c0f44cAB897",wNative:"MON",stable:"USDC"},[i.nU.ROBINHOOD]:{address:"0x0000000000000000000000000000000000000000",wNative:"WETH",stable:"USDC"}},f=(e,t)=>e.div((0,x.E)(t));async function b(e){let{farms:t,provider:n,isTestnet:i,masterChefAddress:r,chainId:a,totalRegularAllocPoint:c,totalSpecialAllocPoint:p}=e;if(!s.z.includes(a))return[];let v=t.filter(u.o4),[h,x,f]=await Promise.all([g(v,a,n),k(t,i,n,r),m(t,a,n,r)]),b=h.map(C),w=v.reduce((e,t,n)=>({...e,[t.pid]:b[n]}),{}),A=f.map(I),T=t.map((e,t)=>{var n,i,l,r,o,a;try{return{...e,...w[e.pid]?S({...A[t],...w[e.pid],token0Decimals:e.token.decimals,token1Decimals:e.quoteToken.decimals,price1:w[e.pid].price1}):M({...A[t],...w[e.pid],token0Decimals:e.token.decimals,token1Decimals:e.quoteToken.decimals}),...j({allocPoint:null!=(r=BigInt(null!=(l=null==e?void 0:e.allocPoint)?l:0))?r:null==(n=x[t])?void 0:n.allocPoint,isRegular:null==(i=x[t])?void 0:i.isRegular,totalRegularAllocPoint:BigInt(2305)||c,totalSpecialAllocPoint:p})}}catch(n){throw console.error(n,e,t,{allocPoint:null==(o=x[t])?void 0:o.allocPoint,isRegular:null==(a=x[t])?void 0:a.isRegular,token0Decimals:e.token.decimals,token1Decimals:e.quoteToken.decimals,totalRegularAllocPoint:c,totalSpecialAllocPoint:p}),n}}),P=(0,d.Ic)(T,y[a],18),N=Array.from(P.reduce((e,t)=>("0"===t.tokenPriceBusd&&e.set(t.token.address,t.token),"0"===t.quoteTokenPriceBusd&&e.set(t.quoteToken.address,t.quoteToken),e),new Map).values());if(N.length){let e=await (0,l.Tn)(N);return P.map(t=>{var n,i;if("0"!==t.tokenPriceBusd&&"0"!==t.quoteTokenPriceBusd)return t;let r=(0,l.Vt)(t.token),a=(0,l.Vt)(t.quoteToken),s=new o.A(t.tokenPriceVsQuote),u=new o.A(r&&null!=(n=e[r])?n:0),c=new o.A(a&&null!=(i=e[a])?i:0);s.gt(0)&&(u.eq(0)&&c.gt(0)?u=c.div(s):c.eq(0)&&u.gt(0)&&(c=u.times(s)));let p=(0,d.Fs)(t,u,c,18);return{...t,tokenPriceBusd:u.toString(),quoteTokenPriceBusd:c.toString(),lpTokenPrice:p.toString()}})}return P}let w=[{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"poolInfo",outputs:[{internalType:"uint256",name:"accCakePerShare",type:"uint256"},{internalType:"uint256",name:"lastRewardBlock",type:"uint256"},{internalType:"uint256",name:"allocPoint",type:"uint256"},{internalType:"uint256",name:"totalBoostedShare",type:"uint256"},{internalType:"bool",name:"isRegular",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"poolLength",outputs:[{internalType:"uint256",name:"pools",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalRegularAllocPoint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSpecialAllocPoint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bool",name:"_isRegular",type:"bool"}],name:"cakePerBlock",outputs:[{internalType:"uint256",name:"amount",type:"uint256"}],stateMutability:"view",type:"function"}];function A(e){return null!=e}let k=async(e,t,n,l)=>{try{let r=e.map(e=>((e,t)=>{let{pid:n}=e;return n||0===n?{abi:w,address:t,functionName:"poolInfo",args:[BigInt(n)]}:null})(e,l)),o=r.filter(A),a=t?i.nU.BSC_TESTNET:i.nU.BSC,s=await n({chainId:a}).multicall({contracts:o,allowFailure:!1}),u=0;return r.map(e=>{if(null===e)return null;let t=s[u];return u++,{accCakePerShare:t[0],lastRewardBlock:t[1],allocPoint:t[2],totalBoostedShare:t[3],isRegular:t[4]}})}catch(e){throw console.error("MasterChef Pool info data error",e),e}},T=async e=>{let{provider:t,isTestnet:n,masterChefAddress:l}=e;try{let e=n?i.nU.BSC_TESTNET:i.nU.BSC,[r,o,a,s]=await t({chainId:e}).multicall({contracts:[{abi:w,address:l,functionName:"poolLength"},{abi:w,address:l,functionName:"totalRegularAllocPoint"},{abi:w,address:l,functionName:"totalSpecialAllocPoint"}
1,{abi:w,address:l,functionName:"cakePerBlock",args:[!0]}],allowFailure:!1});return{poolLength:r,totalRegularAllocPoint:o,totalSpecialAllocPoint:a,cakePerBlock:s}}catch(e){throw console.error("Get MasterChef data error",e),e}},C=e=>{let[t,n,i,l]=e;return{tokenBalanceLP:new o.A(t.toString()),quoteTokenBalanceLP:new o.A(n.toString()),price1:l}},S=e=>{let{lpTokenBalanceMC:t,lpTotalSupply:n,quoteTokenBalanceLP:i,tokenBalanceLP:l,token0Decimals:o,token1Decimals:s,price1:u}=e,d=f(l,o),c=f(i,s),p=n.isZero()||t.isZero()?r.AH:t.div(n),m=(0,a.J)(u,o),v=c.times(p),h=d.times(p).times(r.Mm.div(m)),g=v.plus(h);return{tokenAmountTotal:d.toString(),quoteTokenAmountTotal:c.toString(),lpTotalSupply:n.toString(),lpTotalInQuoteToken:g.toString(),tokenPriceVsQuote:m}},I=e=>{let[t,n,i,l]=e;return{tokenBalanceLP:new o.A(t.toString()),quoteTokenBalanceLP:new o.A(n.toString()),lpTokenBalanceMC:new o.A(i.toString()),lpTotalSupply:new o.A(l.toString())}},j=e=>{let{allocPoint:t,isRegular:n,totalRegularAllocPoint:i,totalSpecialAllocPoint:l}=e,a=t?new o.A(t.toString()):r.AH,s=n?i:l;return{poolWeight:(s&&a?a.div(s.toString()):r.AH).toString(),multiplier:a.isZero()?"0X":`${+a.div(10).toString()}X`}},M=e=>{let{lpTokenBalanceMC:t,lpTotalSupply:n,quoteTokenBalanceLP:i,tokenBalanceLP:l,token0Decimals:o,token1Decimals:a}=e,s=f(l,o),u=f(i,a),d=n.isZero()||t.isZero()?r.AH:t.div(n),c=u.times(d).times(r.eA);return{tokenAmountTotal:s.toString(),quoteTokenAmountTotal:u.toString(),lpTotalSupply:n.toString(),lpTotalInQuoteToken:c.toString(),tokenPriceVsQuote:u.isZero()||s.isZero()?r.AH.toString():u.div(s).toString(),lpTokenStakedAmount:t.toString()}}},596953:(e,t,n)=>{"use strict";n.d(t,{j:()=>a,q:()=>o});var i=n(428089),l=n(672946),r=n(680797);let o=(0,r.Ay)(i.Ay).withConfig({componentId:"sc-4776396-0"})(["display:grid;grid-column-gap:32px;grid-row-gap:16px;grid-template-columns:1fr;grid-template-rows:max-content;grid-auto-flow:row;align-items:start;","{grid-template-columns:5fr 3fr;}"],e=>{let{theme:t}=e;return t.mediaQueries.lg}),a=(0,r.Ay)(l.A).withConfig({componentId:"sc-4776396-1"})(["grid-template-columns:1fr auto 1fr;align-items:center;gap:5px;"])},603616:(e,t,n)=>{"use strict";function i(e,t){if(t<=0)throw Error("Chunk size must be greater than 0");let n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n}n.d(t,{A:()=>i})},608998:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var i=n(530957),l=n(985148);let r=(0,n(781649).getLogger)("error-report");function o(e){let t,{asyncFn:n,maxRetries:o=3,delayMs:a=1e3,fallbackValue:s,errorReportKey:u,shared:d=!1,sharedTtlMs:c=6e4}=e,p=(0,l.eU)(0),m=(e,i)=>{if(!d)return n(e,i);let l=Date.now();if(t&&l-t.at<c)return t.promise;let r=n(e,new AbortController().signal).catch(e=>{throw(null==t?void 0:t.promise)===r&&(t=void 0),e});return t={at:l,promise:r},r},v=(0,l.eU)(async(e,t)=>{let{signal:n}=t;e(p);let l=0;for(;l<o;)try{return await m(e,n)}catch(e){if(u&&r.error(u,{reason:"Async function failed",message:e instanceof Error?e.message:String(e),stack:e instanceof Error?e.stack:void 0}),++l>=o){if(!(0,i.A)(s))try{if("function"==typeof s)return await s();return s}catch{return}throw e}await new Promise(e=>setTimeout(e,a))}throw Error("Retries exhausted")});return(0,l.eU)(e=>e(v),(e,n)=>{t=void 0,n(p,e=>e+1)})}},639303:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/liquidity/add/[[...poolId]]",function(){return n(972738)}])},657168:(e,t,n)=>{"use strict";n.d(t,{i1:()=>C,$E:()=>S,II:()=>I});var i=n(350979),l=n(769932),r=n(995315),o=n(557423),a=n(796898),s=n(501823),u=n(428089),d=n(727353),c=n(605641),p=n(226464),m=n(525033);n(862373);var v=n(25963),h=n(733775),g=n(286844);n(775517);var x=n(772763),y=n(680797);let f=(0,y.Ay)(o.A).attrs({variant:"tertiary"}).withConfig({componentId:"sc-bf492518-0"})(["border-radius:",";height:",";color:",";border:",";"],e=>{let{theme:t}=e;return t.radii["12px"]},e=>{let{$height:t}=e;return null!=t?t:"40px"},e=>{let{theme:t,variant:n}=e;return"text"===n?t.colors.primary60:"text"},e=>{let{theme:t,variant:n}=e;
1return"text"===n?`2px solid ${t.colors.primary}`:""}),b=(0,y.Ay)(r.A).attrs({flexWrap:"wrap",gap:"4px"}).withConfig({componentId:"sc-6e208a1d-0"})(["background-color:",";border-radius:",";padding:1px;width:fit-content;box-shadow:",";"],e=>{let{theme:t}=e;return t.colors.input},e=>{let{theme:t}=e;return t.radii.default},e=>{let{theme:t}=e;return t.shadows.inset}),w=(0,y.Ay)(o.A).withConfig({componentId:"sc-6e208a1d-1"})(["height:48px;padding:0 8px;","{height:52px;padding:0 16px;}"],e=>{let{theme:t}=e;return t.mediaQueries.md}),A=(0,y.Ay)(g.G).attrs(e=>{let{theme:t}=e;return{bg:t.colors.inputSecondary}}).withConfig({componentId:"sc-6e208a1d-2"})(["margin:0 4px;"]);var k=function(e){return e.InvalidInput="InvalidInput",e}(k||{});let T=RegExp("^\\d*(?:\\\\[.])?\\d*$"),C=50,S=e=>{let t,{slippageTolerance:n,setSlippageTolerance:o,isAutoSlippageEnabled:m,setIsAutoSlippageEnabled:g}=e,[x,y]=(0,v.useState)(""),{isMobile:f}=(0,a.A)(),{t:k}=(0,l.A)(),S=""===x||(n/100).toFixed(2)===Number.parseFloat(x).toFixed(2);t=""===x||S?S&&n<50?"RiskyLow":S&&n>2e3?"RiskyVeryHigh":S&&n>100?"RiskyHigh":void 0:"InvalidInput";let I=e=>{if(""===e||T.test((0,h.Nt)(e))){y(e);try{let t=Number.parseInt((100*Number.parseFloat(e)).toString());!Number.isNaN(t)&&t<5e3&&o(t)}catch(e){console.error(e)}}};return(0,i.jsx)(r.A,{flexDirection:"column",gap:"24px",children:(0,i.jsxs)(s.A,{flexDirection:"column",children:[(0,i.jsxs)(b,{style:{flexWrap:f?"nowrap":"wrap"},children:[void 0!==g&&void 0!==m&&(0,i.jsx)(w,{scale:"sm",onClick:()=>{y(""),null==g||g(!0)},variant:m?"subtle":"light",children:k("Auto")}),(0,i.jsx)(w,{scale:"sm",onClick:()=>{y(""),o(10),null==g||g(!1)},variant:10!==n||m?"light":"subtle",children:"0.1%"}),(0,i.jsx)(w,{scale:"sm",onClick:()=>{y(""),o(50),null==g||g(!1)},variant:50!==n||m?"light":"subtle",children:"0.5%"}),(0,i.jsx)(w,{scale:"sm",onClick:()=>{y(""),o(100),null==g||g(!1)},variant:100!==n||m?"light":"subtle",children:"1.0%"}),(0,i.jsx)(s.A,{ml:"8px",pr:"8px",alignItems:"center",children:(0,i.jsxs)(u.Ay,{position:"relative",width:"82px",children:[(0,i.jsx)(d.A,{scale:"md",inputMode:"decimal",pattern:"^[0-9]*[.,]?[0-9]{0,2}$",placeholder:m?"Auto":(n/100).toFixed(2),value:x,onBlur:()=>{I((n/100).toFixed(2))},onChange:e=>{m&&(null==g||g(!1)),e.currentTarget.validity.valid&&I(e.target.value.replace(/,/g,"."))},isWarning:!S,isSuccess:![10,50,100].includes(n),style:{paddingRight:"28px"}}),(0,i.jsxs)(s.A,{position:"absolute",right:"8px",top:"8px",alignItems:"center",children:[(0,i.jsx)(A,{}),(0,i.jsx)(c.A,{color:"textSubtle",children:" %"})]})]})})]}),!m&&!!t&&(0,i.jsx)(p.A,{mt:"8px",variant:"InvalidInput"===t?"primary":"RiskyLow"===t||"RiskyHigh"===t?"warning":"danger",children:(0,i.jsxs)(c.A,{children:[k("InvalidInput"===t?"Enter a valid slippage percentage":"RiskyLow"===t?"Your transaction may fail":"Your transaction may be frontrun"),".",(0,i.jsx)("br",{}),(0,i.jsx)(c.A,{as:"button",role:"button",onClick:()=>{y(""),o(C)},style:{textDecoration:"underline",cursor:"pointer",display:"inline-block",background:"none",border:"none",padding:0},bold:!0,children:k("Reset slippage settings")})," ",k("to avoid potential loss"),"."]})})]})})},I=()=>{let{t:e}=(0,l.A)(),[t,n]=(0,x.d)(),[r,o]=(0,v.useState)(),[a,p]=(0,v.useState)(""),h=""===a||void 0!==t&&(Number(t)/60).toString()===a,g=void 0!==n&&void 0!==t,y=e=>{try{let t=60*Number.parseInt(e);!Number.isNaN(t)&&t>60&&t<259200?null==n||n(t):o("InvalidInput")}catch(e){console.error(e)}};return(0,v.useEffect)(()=>{""===a||h?o(void 0):o("InvalidInput")},[a,h]),g&&(0,i.jsxs)(u.Ay,{children:[(0,i.jsxs)(s.A,{alignItems:"center",children:[(0,i.jsx)(c.A,{children:e("Tx deadline")}),(0,i.jsx)(m.PT,{text:e("Your transaction will revert if it is left confirming for longer than this time."),placement:"top",ml:"4px"})]}),(0,i.jsxs)(s.A,{alignItems:"center",children:[(0,i.jsxs)(u.Ay,{position:"relative",width:"128px",mt:"4px",children:[(0,i.jsx)(d.A,{scale:"md",inputMode:"numeric",pattern:"^[0-9]+$",isWarning:!!r,placeholder:(Number(t)/60).toString(),value:a,onChange:e=>{e.currentTarget.validity.valid&&p(e.target.value)},onBlur:e=>{e.currentTarget.validity.valid&&y(e.target.value)},style:{paddingRight:"48px"}}),(0,i.jsxs)(s.A,{position:"absolute",right:"8px",top:"8px",alignItems:"center",children:[(0,i.jsx)(A,{}),(0,i.jsx)(c.A,{color:"textSubtle",children:e("Mins")})]})]}),(0,i.jsx)(f,{ml:"8px",mt:"3px",variant:"text",scale:"sm",onClick:()=>{p(""),y("20")},children:e("Reset")})]})]})}}
1,689612:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var i=n(459247),l=n(425576);function r(e){let t=(0,l._Q)(),n=(0,l.lh)(),r=!1;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r||(r=!0,(0,i.yU)("core_data_operation",()=>({...a,operation:e,outcome:o,duration_ms:Math.round((0,l.lh)()-n),start_ms:Math.round(n-t.started_at_ms),completed_ms:Math.round((0,l.lh)()-t.started_at_ms)}),void 0,t))}}},724152:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let i=n(421770).x},728844:(e,t,n)=>{"use strict";n.d(t,{x:()=>A});var i=n(228876),l=n(782739),r=n(893130),o=n(899188),a=n(209208),s=n(760013),u=n.n(s),d=n(25963),c=n(695055),p=n(617921),m=n(524099),v=n(779623),h=n(680116),g=n(545416),x=n(532649),y=n(660193),f=n(697115),b=n(53670);let w=u()(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return o.rY.reduce((t,n)=>({...t,[n.id]:(0,m.l)({chain:n,transport:e&&window.ethereum?(0,v.I)(window.ethereum):(0,p.v)([...a.I[n.id].map(e=>(0,h.L)(e,{timeout:15e3}))]),batch:{multicall:{batchSize:204800,wait:16}},pollingInterval:6e3})}),{})});function A(e){let{chainId:t}=(0,b.ax)(),n=null!=e?e:t,o=(0,f.e)({chainId:n}),a=(0,b.NM)(),s=(0,l.hm)(n);return{waitForTransaction:(0,d.useCallback)(async e=>{var t;let l=null!=(t=null==e?void 0:e.chainId)?t:n,u=async()=>{try{if(l&&w(a)[l]){let t=await w(a)[l].getTransactionReceipt({hash:e.hash});return"success"===t.status&&s(),t}if(!o)return;let t=await o.getTransactionReceipt({hash:e.hash});return"success"===t.status&&s(),t}catch(i){var t,n;if(i instanceof g.Kz)throw new c.dw(`Transaction not found: ${e.hash}`);if(i instanceof g.Kc)throw new c.dw(`Transaction receipt not found: ${e.hash}`);if(i instanceof x.l)throw new c.dw(`Block not found for transaction: ${e.hash}`);else if(i instanceof g.WA)throw new c.dw(`Timeout reached when fetching transaction receipt: ${e.hash}`);else if(i instanceof y.Ci&&((null==(t=i.details)?void 0:t.includes("Load failed"))||(null==(n=i.details)?void 0:n.includes("Failed to fetch"))))throw new c.dw(`Network error when request to ${i.url} failed: ${i.status}, ${i.details}`);throw i}},d=(l?i.vf[l]:r.J3)*1e3+1e3;return(0,c.cJ)(u,{n:10,base:d,delay:d,factor:1.5}).promise},[n,o,s,a])}}},774900:(e,t,n)=>{"use strict";n.d(t,{D$:()=>a,L1:()=>r.L1,pg:()=>s,uP:()=>r.uP});var i=n(913076),l=n(573536),r=n(169516);let o={async onResponse(e){let{response:t}=e;if(t.status>=400){var n;throw Error((null==(n=t.headers.get("content-type"))?void 0:n.includes("json"))?await t.clone().json():await t.clone().text())}}},a=(0,l.Ay)({baseUrl:"https://explorer.pancakeswap.com/api"});a.use(o),a.use({onRequest(e){let{request:t}=e;return i.o.request(t)}});let s=(0,l.Ay)({baseUrl:"https://sol-explorer.pancakeswap.com/api"});s.use(o)},775517:(e,t,n)=>{"use strict";n.d(t,{eF:()=>L,Nt:()=>R,Az:()=>U,jw:()=>D});var i=n(350979),l=n(987212),r=n(734658),o=n(862373),a=n(985148),s=n(118708),u=n(656862),d=n(863064),c=n(25963),p=n(387165),m=n(228876),v=n(311560),h=n(91168),g=n(899188),x=n(53670),y=n(662928),f=n(126294),b=n(518400),w=n(419041),A=n(155018);let k=new v.QE(50,1e4),T=new v.QE(10,1e4),C=e=>!!e&&g.e6.includes(e),S=e=>null!=e&&"gasUseEstimate"in e&&!("orderInfo"in e),I=(e,t)=>e&&"number"==typeof t?new h.g(e.toString()).multipliedBy(t):void 0,j=(e,t)=>e&&t?parseFloat(e.toFixed(0))/10**t.decimals:void 0,M=(e,t)=>new v.QE(Math.floor(e/t*1e4),1e4),P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;return e.greaterThan(new v.QE(n,1e4))?new v.QE(n,1e4):e.lessThan(new v.QE(t,1e4))?new v.QE(t,1e4):e};function N(e){var t,n;let{chainId:i}=(0,x.ax)(),l=C(i),r=(0,b.YW)(),o=(0,w.Ay)(i),a=null==e?void 0:e.currency,s=(0,A.r0)(a,{enabled:!!(null==e?void 0:e.greaterThan(0))}),u=(0,c.useMemo)(()=>j(I(null==r?void 0:r.toString(),2e5),o),[r,o]),d=(0,A.h1)(o,u,{enabled:!!(null==e?void 0:e.greaterThan(0))}),{data:p}=(0,y.I)({queryKey:["input-based-auto-slippage",null==e||null==(t=e.wrapped)?void 0:t.toExact(),null==s||null==(n=s.wrapped)?void 0:n.toSignificant(),d],queryFn:()=>{if(!e||l)return{inputBasedSlippage:k,inputDollarValue:void 0};let t=null==e?void 0:e.toSignificant(6),n=t&&s?parseFloat(t)*parseFloat(s.toSignificant(6)):void 0;return n&&d?{inputBasedSlippage:P(M(d,n)),inputDollarValue:n}:{inputBasedSlippage:k,inputDollarValue:void 0}},placeholderData:f.rX,staleTime:1/0,gcTime:0});return null!=p?p:{inputBasedSlippage:k,inputDollarValue:void 0}}let B=(0,u.tG)("pcs:auto-slippage-enabled-2",!0),E=(0,a.eU)(50),q=()=>(0,s.fp)(E),R=()=>(0,s.fp)(B);function U(){let[e]=R(),[t]=(0,o.uZ)(),[n]=q();return(0,c.useMemo)(()=>e?{slippageTolerance:n,isAuto:!0}:{slippageTolerance:t,isAuto:!1},[e,n,t])}let D=e=>{let[t]=R(),[n]=(0,o.uZ)(),{inputBasedSlippage:i}=N((null==e?void 0:e.currency)&&r.xx.isSPLToken(e.currency)?void 0:e);return(0,c.useMemo)(()=>t&&e&&i?{slippageTolerance:Number(i.numerator),isAuto:!0}:{slippageTolerance:n,isAuto:!1},[t,e,i,n])},L=e=>{let{children:t}=e;return(0,i.jsxs)(i.Fragment,{children:[t,(0,i.jsx)(c.Suspense,{fallback:null,children:(0,i.jsx)(_,{})})]})},_=()=>{var e,t,n,i,r;let o=(0,d.Z)(),a=(0,c.useRef)(null==o||null==(e=o.bestOrder)?void 0:e.trade),s=(0,c.useMemo)(()=>{var e,t,n,i,l,r,s,u,d,c,m,v,h,g,x,y,f,b,w,A,k,T,C,S;return!(0,p.mI)(null==o?void 0:o.bestOrder)&&!!a.current&&!!(null==o||null==(e=o.bestOrder)?void 0:e.trade)&&(null==(s=a.current)||null==(r=s.inputAmount)||null==(l=r.currency)?void 0:l.equals(null==o||null==(i=o.bestOrder)||null==(n=i.trade)||null==(t=n.inputAmount)?void 0:t.currency))&&(null==(h=a.current)||null==(v=h.outputAmount)||null==(m
1=v.currency)?void 0:m.equals(null==o||null==(c=o.bestOrder)||null==(d=c.trade)||null==(u=d.outputAmount)?void 0:u.currency))&&(null==(g=a.current)?void 0:g.tradeType)===(null==o||null==(y=o.bestOrder)||null==(x=y.trade)?void 0:x.tradeType)&&(null==(A=a.current)||null==(w=A.inputAmount)?void 0:w.equalTo(null==o||null==(b=o.bestOrder)||null==(f=b.trade)?void 0:f.inputAmount))&&(null==(S=a.current)||null==(C=S.outputAmount)?void 0:C.equalTo(null==o||null==(T=o.bestOrder)||null==(k=T.trade)?void 0:k.outputAmount))},[null==o?void 0:o.bestOrder]),u=function(e){var t,n,i,l,r,o,a;let{chainId:s}=(0,x.ax)(),u=C(s),{inputBasedSlippage:d,inputDollarValue:p}=N(null==e?void 0:e.inputAmount),v=null==e||null==(t=e.outputAmount)?void 0:t.currency,h=(0,A.r0)(v,{enabled:!!(null==e||null==(n=e.outputAmount)?void 0:n.greaterThan(0))}),g=(0,b.YW)(),T=(0,w.Ay)(s),B=(0,c.useMemo)(()=>s&&!!s&&(s===m.nU.ETHEREUM||s===m.nU.BSC),[s]),E=2e5*!!e,q=S(e)&&(null==(i=e.gasUseEstimateBase)?void 0:i.greaterThan(0))?e.gasUseEstimateBase.currency:void 0,R=(0,A.r0)(q,{enabled:!!e}),U=(0,c.useMemo)(()=>j(I(null==g?void 0:g.toString(),E),T),[g,E,T]),D=(0,A.h1)(T,U,{enabled:!!(null==e||null==(l=e.outputAmount)?void 0:l.greaterThan(0))}),L=(0,c.useMemo)(()=>{let t=((e,t,n)=>{var i;if(!e||!t)return null;if(S(t)){let e=t.gasUseEstimateBase;return(null==e?void 0:e.greaterThan(0))&&n?parseFloat(e.toSignificant(6))*parseFloat(n.toSignificant(6)):null}return"orderInfo"in t?.5:"gasEstimateInUSD"in t?"string"==typeof t.gasEstimateInUSD?parseFloat(t.gasEstimateInUSD):Number(null==(i=t.gasEstimateInUSD)?void 0:i.toSignificant(6)):null})(!!B,e,R);return B&&t?t:D},[B,D,R,e]),{data:_}=(0,y.I)({queryKey:["classic-auto-slippage",null==e||null==(o=e.outputAmount)||null==(r=o.wrapped)?void 0:r.toExact(),null==h||null==(a=h.wrapped)?void 0:a.toSignificant(),L],queryFn:()=>{var t;if(!e||u)return k;let n=null==e||null==(t=e.outputAmount)?void 0:t.toSignificant(6),i=n&&h?parseFloat(n)*parseFloat(h.toSignificant(6)):void 0;if(i&&L){let e=P(M(L,i));return p&&Math.abs(p-i)>.05*i&&e.lessThan(d)?d:e}return console.log("Auto Slippage: Using DEFAULT_AUTO_SLIPPAGE because missing outputDollarValue or dollarCostToUse"),k},placeholderData:f.rX,staleTime:1/0,gcTime:0});return null!=_?_:k}((null==o||null==(t=o.bestOrder)?void 0:t.type)===l.ZN.PCS_SVM||null==o||null==(n=o.bestOrder)?void 0:n.trade),v=(null==o||null==(i=o.bestOrder)?void 0:i.type)===l.ZN.DUTCH_LIMIT?T:u,[,h]=q(),g=(0,c.useCallback)(()=>{v&&h(Number(v.numerator))},[v,h]);return(0,c.useEffect)(()=>{if(!s){var e;a.current=null==o||null==(e=o.bestOrder)?void 0:e.trade,g()}},[s,g,null==o||null==(r=o.bestOrder)?void 0:r.trade]),null}},835490:(e,t,n)=>{"use strict";n.d(t,{O9:()=>i,TE:()=>l,nN:()=>r});var i=function(e){return e.CURRENCY_A="CURRENCY_A",e.CURRENCY_B="CURRENCY_B",e}({}),l=function(e){return e.Infinity="infinity",e.V3="v3",e.V2="v2",e.StableSwap="stableSwap",e}({});let r=["infinity","v3","v2","stableSwap"]},863064:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(118708),l=n(157852);let r=()=>(0,i.md)(l.Hq)},876089:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var i=n(350979),l=n(680797),r=n(25963),o=n(769932),a=n(178405),s=n(575058),u=n(605641),d=n(557423);let c=l.I4.div.withConfig({componentId:"sc-7851d89b-0"})(["align-items:center;display:flex;flex-direction:column;height:calc(100vh - 64px);justify-content:center;"]),p=e=>{let{statusCode:t=404,children:n,LinkComp:l}=e,{t:p}=(0,o.A)(),m=(0,r.createElement)(l,{href:"/",passHref:!0},(0,i.jsx)(d.A,{scale:"sm",children:p("Back Home")}));return(0,i.jsxs)(i.Fragment,{children:[n,(0,i.jsxs)(c,{children:[(0,i.jsx)(a.A,{width:"64px",mb:"8px"}),(0,i.jsx)(s.A,{scale:"xxl",children:t}),(0,i.jsx)(u.A,{mb:"16px",children:p("Oops, page not found.")}),m]})]})}},913076:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});class i{static shouldUsePreview(){return!1}static url(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.origin,n=new URL(e);if(["explorer.pancakeswap.com","qa-explorer.pancakeswap.com"].includes(n.hostname)&&(n.hostname=i.shouldUsePreview()?"qa-explorer.pancakeswap.com":"explorer.pancakeswap.com"),i.shouldUsePreview()&&t&&n.origin!==t){let e=new URL(`/api/explorer${n.pathname.replace(/^\/api/,"")}`,t);return e.search=n.search,e}return i.shouldUsePreview()&&n.searchParams.set("preview","1"),n}
1static request(e){return new Request(i.url(e.url),e)}static fetch(e,t){return fetch(i.url(e),t)}}},927122:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(350979),l=n(680797),r=n(554945),o=n(814795);let a=(0,l.I4)(o.A).withConfig({componentId:"sc-c1354ddc-0"})(["display:flex;justify-content:center;align-items:center;"]),s=()=>(0,i.jsx)(a,{children:(0,i.jsx)(r.A,{})})},972738:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>tl});var i=n(350979),l=n(769932),r=n(796898),o=n(561213),a=n(245009),s=n(995315),u=n(605641),d=n(905470),c=n(344628),p=n(927122),m=n(899188),v=n(719740),h=n(87242),g=n.n(h),x=n(30596),y=n(18468),f=n(807543),b=n(150591),w=n(680797),A=n(208103),k=n(659197),T=n(273523),C=n(734658),S=n(428089),I=n(82029),j=n(698409),M=n(512977),P=n(810286),N=n(687287),B=n(332083),E=n(309776),q=n(535219),R=n(811021),U=n.n(R),D=n(25963),L=n(488907),_=n(662949),F=n(661017),Q=n(582188);let O=()=>{let e=(0,Q.Q)(),[t,n]=(0,D.useMemo)(()=>[(null==e?void 0:e.activeId)?e.activeId+F.wW:null,(null==e?void 0:e.activeId)?e.activeId-F.wW:null],[null==e?void 0:e.activeId]);return{maxBinId:t,minBinId:n}};var V=n(60199),Y=n(495815),$=n(42771);let H={initialMin:.9,initialMax:1.1,min:1e-5,max:20},W=()=>{var e;let{t}=(0,l.A)(),{isMobile:n}=(0,r.A)(),{poolId:o,chainId:a}=(0,v.s)(),{currency0:d,currency1:c,baseCurrency:p,quoteCurrency:m}=(0,q.j)({poolId:o,chainId:a}),h=(0,Q.Q)(),[g,x]=(0,L.h2)(),[y,f]=(0,D.useState)(I.PRESET_RANGE_ITEMS[0]),{isLoading:b,formattedData:w}=(0,V.n)({baseCurrency:p,quoteCurrency:m,poolId:o,chainId:a}),{isLoading:A,data:R}=(0,$.F)({baseCurrency:p,quoteCurrency:m,chainId:null==d?void 0:d.chainId,period:y.value,poolId:o,protocol:k.Zs.InfinityBIN}),{maxBinId:F,minBinId:W}=O(),{onLowerUserInput:Z,onUpperUserInput:X}=(0,E.e)({currency0:d,currency1:c,minBinId:W,maxBinId:F,binStep:null==h?void 0:h.binStep}),z=(0,D.useMemo)(()=>{if(h)return(0,T.GQ)(h.activeId,h.binStep,h.token0,h.token1)},[h]),G=(0,D.useCallback)((e,t)=>{g?(X(e),Z(t)):(Z(e),X(t))},[g,Z,X]),K=(0,D.useCallback)(e=>{g?X(e):Z(e)},[g,Z,X]),J=(0,D.useCallback)(e=>{g?Z(e):X(e)},[g,Z,X]),[{lowerBinId:ee,upperBinId:et}]=(0,L.H4)(),[en,ei]=(0,D.useMemo)(()=>{let e,t;return!h||U()(null==h?void 0:h.binStep)?["",""]:(ee&&(e=(0,T.GQ)(ee,h.binStep,h.token0,h.token1)),et&&(t=(0,T.GQ)(et,h.binStep,h.token0,h.token1)),[e,t])},[h,ee,et]),el=(0,D.useMemo)(()=>z?g?z.invert():z:void 0,[z,g]),er=(0,N.xm)(el),eo=(0,N.xm)(en instanceof C.gm?en:void 0),ea=(0,N.xm)(ei instanceof C.gm?ei:void 0),es=(0,N.jN)(el),eu=(0,D.useMemo)(()=>(0,B.X)(w,es),[w,es]),ed=(0,D.useMemo)(()=>(0,B.B)(R,es),[R,es]),ec=(0,D.useMemo)(()=>{if(!z||!F||!W||!(null==w?void 0:w.length)||!(null==h?void 0:h.binStep))return H;let e=(0,T.GQ)(F,h.binStep,h.token0,h.token1),t=Number((0,T.GQ)(W,h.binStep,h.token0,h.token1).divide(z).toSignificant(6)),n=Number(e.divide(z).toSignificant(6));return{...H,initialMin:.9999*t,initialMax:1.0001*n}},[z,F,W,null==w?void 0:w.length,null==h?void 0:h.binStep,null==h?void 0:h.token0,null==h?void 0:h.token1]),ep=(0,D.useMemo)(()=>(0,Y.x)(y.value,n),[y.value,n]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.A,{flexDirection:n?"column":"row",justifyContent:n?"flex-start":"space-between",gap:"16px",children:[(0,i.jsx)(I.PriceRangeDatePicker,{onChange:f,value:y}),(0,i.jsx)(I.RateToggle,{currencyA:p,handleRateToggle:()=>{x(!g)},showReset:!1})]}),(0,i.jsxs)(s.A,{gap:"2px",mt:"16px",mb:"-18px",children:[(0,i.jsxs)(u.A,{color:"textSubtle",small:!0,children:[t("Current Price"),":"," ",(0,i.jsx)(P.g3,{mode:"price",price:el,as:"span",color:"textSubtle",small:!0,children:null==er?void 0:er.toFixed(8)})]}),(0,i.jsx)(u.A,{color:"textSubtle",small:!0,children:t("%assetA% per %assetB%",{assetA:g?null==d?void 0:d.symbol:null==c?void 0:c.symbol,assetB:g?null==c?void 0:c.symbol:null==d?void 0:d.symbol})})]}),(0,i.jsx)(S.Ay,{mb:"8px",children:(0,i.jsx)(j.k,{isLoading:b||A,zoomLevel:ec,baseCurrency:p,quoteCurrency:m,price:er?parseFloat(er.toFixed(8)):void 0,priceLower:en instanceof C.gm?eo:en,priceUpper:ei instanceof C.gm?ea:ei,onBothRangeInput:G,onMinPriceInput:K,onMaxPriceInput:J,formattedData:eu,priceHistoryData:ed,axisTicks:ep,interactive:!0},null==d?void 0:d.wrapped.address)}),(0,i.jsx)(S.Ay,{mb:"8px",children:(0,i.jsx)(M.W,{currency0:d,currency1:c,binStep:null!=(e=null==h?void 0:h.binStep)?e:null,activeBinId:null==h?void 0:h.activeId,maxBinId:F,minBinId:W})}),(0,i.jsx)(S.Ay,{mb:"8px",children:(0,i.jsx)(_.k,{mt:"24px"})})]})};var Z=n(796259),X=n(673384),z=n(344035),G=n(114041),K=n(411207),J=n(386182),ee=n(702356);let et=w.I4.span.withConfig({componentId:"sc-767940c2-0"})(["display:inline-flex;width:8px;height:8px;border-radius:50%;background-color:",";"],e=>{let{theme:t,$color:n}=e;return t.colors[n]}),en=()=>{var e,t;let{t:n}=(0,l.A)(),{isMobile:o}=(0,r.A)(),{poolId:a,chainId:d}
1=(0,v.s)(),{currency0:c,currency1:p,baseCurrency:m,quoteCurrency:h}=(0,q.j)({poolId:a,chainId:d}),g=(0,Q.Q)(),[x]=(0,L.h2)(),[y,f]=(0,D.useState)(I.PRESET_RANGE_ITEMS[0]),{lowerPrice:b,upperPrice:w}=(0,K.d)(c,p,null!=(e=null==g?void 0:g.tickSpacing)?e:void 0),{isLoading:A,formattedData:T}=(0,V.j)({baseCurrency:m,quoteCurrency:h,poolId:a,chainId:d}),{data:C}=(0,$.F)({baseCurrency:m,quoteCurrency:h,chainId:null==c?void 0:c.chainId,period:y.value,protocol:k.Zs.InfinityCLAMM,poolId:a}),{rawPrice:M,displayPrice:P}=(0,D.useMemo)(()=>{if(!g||!c||!g.sqrtRatioX96)return{rawPrice:void 0,displayPrice:void 0};let e=(0,X.ux)({currency0:c,currency1:p,sqrtRatioX96:g.sqrtRatioX96},c);return{rawPrice:e,displayPrice:x?e.invert():e}},[c,p,g,x]),E=(0,N.xm)(P),R=(0,N.xm)(b),U=(0,N.xm)(w),_=(0,D.useMemo)(()=>E?parseFloat(E.toFixed(8)):void 0,[E]),F=(0,N.jN)(P),O=(0,D.useMemo)(()=>(0,B.X)(T,F),[T,F]),H=(0,D.useMemo)(()=>(0,B.B)(C,F),[C,F]),{onLowerUserInput:W,onUpperUserInput:en,quickAction:ei,handleQuickAction:el}=(0,J.w)(m,h,null==g?void 0:g.tickSpacing,M),er=(0,D.useCallback)((e,t)=>{x?(en(e),W(t)):(W(e),en(t))},[x,W,en]),eo=(0,D.useCallback)(e=>{x?en(e):W(e)},[x,W,en]),ea=(0,D.useCallback)(e=>{x?W(e):en(e)},[x,W,en]),es=(0,ee.k)(null!=(t=null==g?void 0:g.tickSpacing)?t:void 0),eu=(0,D.useMemo)(()=>{var e,t;if(ei)return I.getQuickActionConfigs(null==g?void 0:g.tickSpacing)[ei];let n=I.getZoomLevelConfigs(null==g?void 0:g.tickSpacing);if(es[G.zm.UPPER])return n;let i=Number(null!=(e=null==b?void 0:b.divide(null!=M?M:1).toSignificant(6))?e:1),l=Number(null!=(t=null==w?void 0:w.divide(null!=M?M:1).toSignificant(6))?t:1);return{...n,initialMin:i*n.initialMin,initialMax:l*n.initialMax}},[es,ei,null==g?void 0:g.tickSpacing,b,M,w]),ed=(0,D.useMemo)(()=>(0,Y.x)(y.value,o),[y.value,o]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.A,{gap:"8px",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",children:[(0,i.jsx)(Z.y,{children:n("Set position range")}),(0,i.jsxs)(s.A,{gap:"8px",alignItems:"center",flexWrap:"wrap",children:[(0,i.jsxs)(s.A,{gap:"8px",alignItems:"center",children:[(0,i.jsx)(et,{$color:"primary"}),(0,i.jsx)(u.A,{color:"textSubtle",small:!0,children:n("Current Price")})]}),(0,i.jsxs)(s.A,{gap:"8px",alignItems:"center",children:[(0,i.jsx)(et,{$color:"secondary"}),(0,i.jsx)(u.A,{color:"textSubtle",small:!0,children:n("Position Range")})]}),(0,i.jsxs)(s.A,{gap:"8px",alignItems:"center",children:[(0,i.jsx)(et,{$color:"input"}),(0,i.jsx)(u.A,{color:"textSubtle",small:!0,children:n("Liquidity Depth")})]})]})]}),(0,i.jsxs)(S.Ay,{mt:"22px",border:"1px solid",borderColor:"cardBorder",borderRadius:"24px",p:"8px 8px 2px",children:[(0,i.jsx)(s.A,{flexDirection:o?"column":"row",justifyContent:o?"flex-start":"space-between",gap:"16px",children:(0,i.jsx)(I.PriceRangeDatePicker,{onChange:f,value:y})}),(0,i.jsx)(S.Ay,{mt:"16px",children:(0,i.jsx)(j.k,{isLoading:A,zoomLevel:eu,baseCurrency:m,quoteCurrency:h,ticksAtLimit:es,price:_,priceLower:R,priceUpper:U,onBothRangeInput:er,onMinPriceInput:eo,onMaxPriceInput:ea,formattedData:O,priceHistoryData:H,axisTicks:ed,interactive:!0},null==c?void 0:c.wrapped.address)})]}),(0,i.jsx)(S.Ay,{mt:"22px",mb:"8px",children:(0,i.jsx)(z.I,{currentPrice:M,baseCurrency:m,quoteCurrency:h,tickSpacing:null==g?void 0:g.tickSpacing,quickAction:ei,handleQuickAction:el})})]})};var ei=n(796147),el=n(270483),er=n(226207),eo=n(165073),ea=n(53670),es=n(437862),eu=n(569019),ed=n(178367),ec=n(904839),ep=n(469079),em=n(698163),ev=n(511820);function eh(e,t){let{depositCurrencyAmount0:n,depositCurrencyAmount1:i}=(0,ec.AJ)(),{data:l}=(0,ep.y)(e,!!e),{data:r}=(0,ep.y)(t,!!t);return(0,D.useMemo)(()=>{let e=0;if(n&&l){let t=Number(n.toExact());Number.isFinite(t)&&(e+=t*l)}if(i&&r){let t=Number(i.toExact());Number.isFinite(t)&&(e+=t*r)}return e},[n,i,l,r])}let eg=e=>{var t;let{poolInfo:n,baseCurrency:l,quoteCurrency:r}=e,{lpApr:o,cakeApr:a,merklApr:s,incentraApr:u}=(0,em.Hi)(n),d=eh(l,r);return(0,i.jsx)(ev.E,{lpApr:o,cakeAprValue:parseFloat(null!=(t=null==a?void 0:a.value)?t:"0"),merklApr:s,incentraApr:u,totalUsdValue:d})},ex=e=>{var t;let{poolInfo:n,baseCurrency:l,quoteCurrency:r}=e,{lpApr:o,cakeApr:a,merklApr:s,incentraApr:u}=(0,em.tA)(n),d=eh(l,r);return(0,i.jsx)(ev.E,{lpApr:o,cakeAprValue:parseFloat(null!=(t=null==a?void 0:a.value)?t:"0"),merklApr:s,incentraApr:u,totalUsdValue:d})};var ey=n(990296),ef=n(389213),eb=n(186757),ew=n(133843),eA=n(290387);let ek=e=>{var t,n;let{baseCurrency:r,quoteCurrency:o,...a}=e,{t:s}=(0,l.A)(),{chainId:u}=(0,v.s)(),{account:d}=(0,ea.W7)(),{inputValue0:c,inputValue1:p,handleDepositAmountChange:m}=(0,ec.AJ)(),{isDepositEnabled:h,isDeposit0Enabled:g,isDeposit1Enabled:x}=(0,ec.ZA)(),[y]=(0,L.h2)(),f=(0,Q.Q)(),[{lowerTick:b,upperTick:w}]=(0,L.N_)(),A=(0,D.useMemo)(()=>y?p:c,[y,c,p]),k=(0,D.useMemo)(()=>y?c:p,[y,c,p]),T=(0,D.useCallback)(e=>m(e,+!!y),[y,m]),C=(0,D.useCallback)(e=>m(e,+!y),[y,m]),S=y?x:g,I=y?g:x,[j,M]=(0,eu.ed)(null!=d?d:void 0,(0,D.useMemo)(()=>[r,o],[r,o])),P=(0,eb.Y)(r),N=(0,eb.Y)(o),{data:B}=(0,ep.y)(r,!!r),{data:E}=(0,ep.y)(o,!!o),q=(null==f?void 0:f.poolType)==="Bin",R=(0,D.useMemo)(()=>
1{if(f&&"CL"===f.poolType)return f.sqrtRatioX96},[f]),U=(0,eA.y)(R,b,w,null==f||null==(t=f.token0)?void 0:t.decimals,null==f||null==(n=f.token1)?void 0:n.decimals,y?null!=E?E:0:null!=B?B:0,y?null!=B?B:0:null!=E?E:0),_=(0,D.useMemo)(()=>q?.5:y?1-U:U,[q,y,U]),{usdDisplayValue:F,onUsdInput:O,totalUsdValue:V,canUseUsdMode:Y,onBaseInputWrapped:$,onQuoteInputWrapped:H,basePriceUsd:W,quotePriceUsd:Z}=(0,ew.S)({baseCurrency:r,quoteCurrency:o,baseInputValue:null!=A?A:"",quoteInputValue:null!=k?k:"",onBaseInput:T,onQuoteInput:C,baseTokenRatio:_,independentQuote:q,isBaseDepositEnabled:S,isQuoteDepositEnabled:I});return r&&o?(0,i.jsx)(ef.N,{baseCurrency:r,quoteCurrency:o,baseInputValue:null!=A?A:"",quoteInputValue:null!=k?k:"",onBaseInput:$,onQuoteInput:H,usdDisplayValue:F,onUsdInput:O,canUseUsdMode:Y,totalUsdValue:V,isDepositEnabled:h,isBaseDepositEnabled:S,isQuoteDepositEnabled:I,baseBalance:j,quoteBalance:M,maxBaseAmount:P,maxQuoteAmount:N,basePriceUsd:W,quotePriceUsd:Z,disabledMessage:s("Set price range first"),baseDisabledMessage:s(h?"The price range is outside current pool price":"Set price range first"),quoteDisabledMessage:s(h?"The price range is outside current pool price":"Set price range first"),showSettings:!0,...a}):(0,i.jsx)(ey.Ay,{height:"220px",width:"100%"})};var eT=n(504101),eC=n(892977),eS=n(226464),eI=n(91168),ej=n(782038);let eM=e=>(0,D.useMemo)(()=>{if(e)try{if("CL"===e.poolType)return new C.gm(e.token0,e.token1,2n**192n,e.sqrtRatioX96*e.sqrtRatioX96);if("Bin"===e.poolType)return(0,T.GQ)(e.activeId,e.binStep,e.token0,e.token1)}catch(e){console.error("Error computing pool current price:",e)}},[e]);var eP=n(262453),eN=n(748520),eB=n(519901),eE=n(207014),eq=n(835490),eR=n(918279),eU=n(796416),eD=n(17581),eL=n(334404),e_=n(862373),eF=n(529208),eQ=n(610564),eO=n(52451),eV=n(747921),eY=n(772763),e$=n(118708),eH=n(326848),eW=n(774900),eZ=n(178852),eX=n(732170),ez=n(850611),eG=n(541375),eK=n(493803),eJ=n(745332),e0=n(37207);let e1=e=>{let{t}=(0,l.A)(),{isWrongNetwork:n}=(0,ea.ax)(),{address:r}=(0,eD.F)(),{chainId:o,poolId:a}=(0,v.s)(),[s]=(0,L.h2)(),d=(0,Q.Q)(),c=(0,es.qX)({poolAddress:a,chainId:o}),[m,h]=(0,D.useMemo)(()=>[null==d?void 0:d.token0,null==d?void 0:d.token1],[d]),g=(0,D.useMemo)(()=>({CURRENCY_A:m,CURRENCY_B:h}),[m,h]),x=eM(d),[,y]=(0,eB.e)(null==d?void 0:d.token0,null==d?void 0:d.token1,x),f=(0,D.useMemo)(()=>void 0!==y&&new eI.A(y.toFixed(0)).abs().gt(5),[y]),{shouldBlock:b}=(0,ej.Wd)(m,h),{onSubmit:w,attemptingTx:A}=(()=>{var e,t,n,i;let{address:r,chainId:o}=(0,eD.F)(),{chainId:a,poolId:s}=(0,v.s)(),u=(0,Q.Q)(),{switchNetwork:d}=(0,eV.Y)(),{toastError:c}=(0,eL.d)(),p=(0,eO.PJ)(),{t:m}=(0,l.A)(),{lastEditCurrency:h}=(0,e$.md)(ec.wF),{data:g}=(0,eo.L)(s,a),[x,y]=(0,D.useMemo)(()=>[null==u?void 0:u.token0,null==u?void 0:u.token1],[u]),{depositCurrencyAmount0:f,depositCurrencyAmount1:b}=(0,ec.AJ)(),[{lowerTick:w,upperTick:A}]=(0,L.N_)(),[{lowerBinId:k,upperBinId:C}]=(0,L.H4)(),[S]=(0,L.cB)(),[I]=(0,L.oO)(),{permit:j,requirePermit:M}=(0,eN.$)((null==x?void 0:x.isNative)||null==f?void 0:f.wrapped,(null==u?void 0:u.poolType)?(0,eE.B4)(u.poolType,a):void 0,{overrideChainId:a}),{permit:P,requirePermit:N}=(0,eN.$)((null==y?void 0:y.isNative)||null==b?void 0:b.wrapped,(null==u?void 0:u.poolType)?(0,eE.B4)(u.poolType,a):void 0,{overrideChainId:a}),[B]=(0,eY.g)(),[E]=(0,e_.uZ)()||[eF.C0],[q]=(0,e_.Ts)(),R=(0,D.useMemo)(()=>{if(!u||"Bin"!==u.poolType)return;let{binStep:e,activeId:t}=u;return(0,T.FP)(parseFloat(q.toSignificant(2)),e,t)},[q,u]),U=(0,eH.useRouter)(),_=(0,D.useCallback)(()=>{a&&s&&U.push(`/liquidity/pool/${(0,eW.uP)(a)}/${s}`)},[a,s,U]),{addCLLiquidity:F,attemptingTx:O}=(0,eQ.K)(null!=a?a:0,null!=r?r:"0x",(null==x?void 0:x.isNative)?eX.Xd:null!=(e=null==x?void 0:x.wrapped.address)?e:"0x",(null==y?void 0:y.isNative)?eX.Xd:null!=(t=null==y?void 0:y.wrapped.address)?t:"0x",_),{addBinLiquidity:V,attemptingTx:Y}=(0,eK._)(null!=a?a:0,null!=r?r:"0x",(null==x?void 0:x.isNative)?eX.Xd:null!=(n=null==x?void 0:x.wrapped.address)?n:"0x",(null==y?void 0:y.isNative)?eX.Xd:null!=(i=null==y?void 0:y.wrapped.address)?i:"0x",_);return{onSubmit:(0,D.useCallback)(async()=>
1{if(!r||!a||!x||!y||!g)return void console.error("Account, chainId, currencies or poolKey not found");if(o===a||await d(a))try{var e,t;let n,i,l=null!=(e=null==f?void 0:f.quotient)?e:0n,o=null!=(t=null==b?void 0:b.quotient)?t:0n;!(null==x?void 0:x.isNative)&&M&&l>0n&&(n=await j()),!(null==y?void 0:y.isNative)&&N&&o>0n&&(i=await P());let[a,s]=f?(0,eZ.wQ)(f,E):[0n,ez.iB],[d,c]=b?(0,eZ.wQ)(b,E):[0n,ez.iB];if((null==u?void 0:u.poolType)==="CL"){if(null===w||null===A)return;let e=u.sqrtRatioX96,t={poolKey:g,tickLower:w,tickUpper:A,lastEditCurrency:h,sqrtPriceX96:e,amount0Desired:l,amount1Desired:o,amount0Max:s,amount1Max:c,recipient:r,currency0:x,currency1:y,deadline:B||BigInt(Math.floor(Date.now()/1e3)+1200),modifyPositionHookData:"0x",token0Permit2Signature:n,token1Permit2Signature:i};await F(t)}else if((null==u?void 0:u.poolType)==="Bin"){let{binStep:e,activeId:t}=u;if(null===e||null===t||null===S||null===I||null===k||null===C)return;let a={poolKey:g,liquidityShape:S,binNums:I,activeIdDesired:t,idSlippage:BigInt(null!=R?R:0),amount0Desired:l,amount1Desired:o,amount0Max:s,amount1Max:c,recipient:r,deadline:B||BigInt(Math.floor(Date.now()/1e3)+1200),currency0:x,currency1:y,lowerBinId:k,upperBinId:C,token0Permit2Signature:n,token1Permit2Signature:i};await V(a)}}catch(e){if(p(e))return;console.error("Error submitting form",e),c(m("Error Add Liquidity"),e instanceof Error?e.message:(0,eG.A)(e))}},[h,r,o,V,F,E,a,x,y,B,f,b,R,S,k,w,I,j,P,u,g,M,N,d,p,m,c,C,A]),attemptingTx:(0,D.useMemo)(()=>!!u&&("CL"===u.poolType?O:"Bin"===u.poolType&&Y),[O,Y,u])}})(),k=(0,eT.k)(),C=(0,D.useCallback)(async()=>{if(f){let e,n="confirm",l=new Promise(t=>{e=t});k({message:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(ei.mm,{gap:"8px",children:[(0,i.jsx)(u.A,{children:t("The pool price shows a significant deviation from current market rates (%slippage%). This increases the risk of losses from arbitrage.",{slippage:`${null==y?void 0:y.toFixed(0)}%`})}),(0,i.jsx)(u.A,{children:t('To proceed, please type the word "%word%"',{word:n})})]})}),onConfirm:t=>e(t===n)}),await l.then(async e=>{e&&await w()})}else await w()},[w,f,y,k,t]),{depositCurrencyAmount0:S,depositCurrencyAmount1:I}=(0,ec.AJ)(),j=(0,D.useMemo)(()=>({[eq.O9.CURRENCY_A]:null!=S?S:void 0,[eq.O9.CURRENCY_B]:null!=I?I:void 0}),[S,I]),[M,P]=(0,eu.ed)(null!=r?r:void 0,(0,D.useMemo)(()=>[m,h],[m,h])),{approve:N,revoke:B,isApproving:E,isPermitPending:q,requireApprove:R,requireRevoke:U}=(0,eN.$)((null==m?void 0:m.isNative)||null==S?void 0:S.wrapped,(null==d?void 0:d.poolType)?(0,eE.B4)(d.poolType,o):void 0,{overrideChainId:o}),{approve:_,revoke:F,isApproving:V,isPermitPending:Y,requireApprove:$,requireRevoke:H}=(0,eN.$)((null==h?void 0:h.isNative)||null==I?void 0:I.wrapped,(null==d?void 0:d.poolType)?(0,eE.B4)(d.poolType,o):void 0,{overrideChainId:o}),{isDeposit0Enabled:W,isDeposit1Enabled:Z}=(0,ec.ZA)(),X=(0,D.useMemo)(()=>!!(null==m?void 0:m.isToken)&&(R||U)&&!!S&&W,[null==m?void 0:m.isToken,R,U,S,W]),z=(0,D.useMemo)(()=>!!(null==h?void 0:h.isToken)&&($||H)&&!!I&&Z,[null==h?void 0:h.isToken,$,H,I,Z]),{currentAllowance:G}=(0,eP.en)((null==m?void 0:m.isNative)||null==S?void 0:S.wrapped,(null==d?void 0:d.poolType)?(0,eE.B4)(d.poolType,o):void 0),{currentAllowance:J}=(0,eP.en)((null==h?void 0:h.isNative)||null==I?void 0:I.wrapped,(null==d?void 0:d.poolType)?(0,eE.B4)(d.poolType,o):void 0),ee=(0,D.useMemo)(()=>{if(X){if(E)return eP.h$.PENDING;if(U||R)return eP.h$.NOT_APPROVED}return eP.h$.APPROVED},[E,R,U,X]),et=(0,D.useMemo)(()=>{if(z){if(V)return eP.h$.PENDING;if(H||$)return eP.h$.NOT_APPROVED}return eP.h$.APPROVED},[V,$,H,z]),en=q||Y,{errorMessage:el,enabled:er,outOfRange:ed,invalidClRange:ep,invalidBinRange:em}=(()=>{let e=(0,Q.Q)(),[t,n]=(0,D.useMemo)(()=>[null==e?void 0:e.token0,null==e?void 0:e.token1],[e]),i=(0,e0.P)(),{depositCurrencyAmount0:l,depositCurrencyAmount1:r}=(0,ec.AJ)(),{isDeposit0Enabled:o,isDeposit1Enabled:a}=(0,ec.ZA)(),{errorMessage:s}=(0,eJ.P)({currencyA:t,currencyB:n,currencyAAmount:o&&l?l:void 0,currencyBAmount:a&&r?r:void 0,allowSingleSide:(null==e?void 0:e.poolType)==="Bin"||o&&!a||!o&&a}),[{lowerTick:u,upperTick:d}]=(0,L.N_)(),[{lowerBinId:c,upperBinId:p}]=(0,L.H4)(),m=(0,D.useMemo)(()=>
1{if(!e)return;let{tickSpacing:t}=e;return t},[e]),v=(null==e?void 0:e.poolType)==="CL"?null:null==e?void 0:e.activeId,{lowerPrice:h,upperPrice:g}=(0,K.d)(t,n,null!=m?m:void 0),x=(0,D.useMemo)(()=>(null==e?void 0:e.poolType)==="CL"&&!!("number"==typeof u&&"number"==typeof d&&u>=d),[u,d,null==e?void 0:e.poolType]),{minBinId:y,maxBinId:f}=O(),b=(0,D.useMemo)(()=>(null==e?void 0:e.poolType)==="Bin"&&(!c||!p||!!(c>p)||!!y&&!!(c<y)||!!f&&!!(c>f)||!!y&&!!(p<y)||!!f&&!!(p>f))||!1,[c,f,y,null==e?void 0:e.poolType,p]),w=(0,D.useMemo)(()=>(null==e?void 0:e.poolType)==="Bin"?!!(c&&p&&v&&(v<c||v>p)):!!(h&&g&&i&&(i.lessThan(h)||i.greaterThan(g))),[null==e?void 0:e.poolType,h,g,i,c,p,v]),A=(0,D.useMemo)(()=>(null==e?void 0:e.poolType)==="Bin"?o&&!l||a&&!r:!l||!r,[l,r,o,a,null==e?void 0:e.poolType]);return{errorMessage:s,outOfRange:w,invalidClRange:x,invalidBinRange:b,invalidDepositAmount:A,enabled:!s&&!x&&!b&&!A}})(),{minBinId:ev,maxBinId:eh}=O(),[eg,ex]=(0,D.useMemo)(()=>{var e,n;return W&&!S||Z&&!I?[t("Enter an amount"),void 0]:W&&S&&(null==M?void 0:M.lessThan(S))?[t("Insufficient %symbol% balance",{symbol:null!=(e=null==m?void 0:m.symbol)?e:"Unknown"}),void 0]:Z&&I&&(null==P?void 0:P.lessThan(I))?[t("Insufficient %symbol% balance",{symbol:null!=(n=null==h?void 0:h.symbol)?n:"Unknown"}),void 0]:en?[t("Waiting for Permit2 approval"),void 0]:[t("Add"),(0,i.jsx)(eC.A,{color:er?"invertedContrast":"textDisabled",width:"24px"},"add-icon")]},[M,P,null==m?void 0:m.symbol,null==h?void 0:h.symbol,S,I,er,W,Z,en,t]);return d?(0,i.jsxs)(ei.mm,{gap:"8px",...e,children:[f?(0,i.jsx)(eU.Zw,{slippage:`${null==y?void 0:y.toFixed(0)} %`}):null,1e3>Number(null==c?void 0:c.tvlUsd)?(0,i.jsx)(eU.gz,{}):null,en&&(0,i.jsx)(eS.A,{variant:"warning",children:(0,i.jsx)(eS.J,{children:t("A Permit2 approval is waiting to be executed in your wallet. Execute it, then come back to add liquidity.")})}),ed&&(0,i.jsx)(eU._5,{}),ep&&(0,i.jsx)(eU.tP,{}),em&&(0,i.jsx)(eU.Lp,{inverted:s,baseCurrency:m,quoteCurrency:h,minBinId:ev,maxBinId:eh,binStep:null==d?void 0:d.binStep}),(0,i.jsx)(eR.E,{addIsUnsupported:b,account:null!=r?r:void 0,isWrongNetwork:!!n,showApprovalA:X,approveACallback:N,currentAllowanceA:G,revokeACallback:B,currencies:g,showApprovalB:z,approveBCallback:_,currentAllowanceB:J,revokeBCallback:F,parsedAmounts:j,onClick:C,attemptingTxn:A,buttonText:eg,endIcon:ex,errorMessage:el,isValid:er&&!en,depositADisabled:!S||S.equalTo(0),depositBDisabled:!I||I.equalTo(0),approvalA:ee,approvalB:et})]}):(0,i.jsx)(p.A,{})},e2=(0,w.Ay)(f.A).withConfig({componentId:"sc-8de4290a-0"})(["height:fit-content;overflow:visible;"]),e6=e=>{let{poolId:t,chainId:n}=e,l=(0,es.qX)({poolAddress:t,chainId:n}),r=(null==l?void 0:l.protocol)===k.Zs.InfinityBIN,o=(null==l?void 0:l.protocol)===k.Zs.InfinityCLAMM,{currency0:a,currency1:s}=(0,q.j)({chainId:n,poolId:t}),[u]=(0,L.h2)(),{account:d}=(0,ea.W7)(),c=(0,Q.Q)(),{data:p}=(0,eo.L)(t,n,"CL"),[{lowerTick:m,upperTick:v}]=(0,L.N_)(),{inputValue0:h,inputValue1:g,depositCurrencyAmount0:x,depositCurrencyAmount1:y}=(0,ec.AJ)(),f=(0,D.useMemo)(()=>u?s:a,[u,a,s]),w=(0,D.useMemo)(()=>u?a:s,[u,a,s]),[A,T]=(0,eu.ed)(null!=d?d:void 0,(0,D.useMemo)(()=>[f,w],[f,w])),C=(0,D.useMemo)(()=>u?g:h,[u,h,g]),S=(0,D.useMemo)(()=>u?h:g,[u,h,g]),I=(0,D.useMemo)(()=>{if(!A||!T)return!1;let e=u?y:x,t=u?x:y;return e&&A.lessThan(e)||t&&T.lessThan(t)},[A,T,x,y,u]),j=(0,D.useMemo)(()=>!!p&&!!n&&(!p.hooks||(0,ed.g2)(n,p.hooks)),[p,n]),M=(0,D.useMemo)(()=>(null==c?void 0:c.poolType)==="CL"&&j&&I&&null!==m&&null!==v&&t&&n&&el.$.includes(n),[c,j,I,m,v,t,n]);return(0,i.jsxs)(ei.VP,{gap:"16px",children:[r&&l&&(0,i.jsx)(eg,{poolInfo:l,baseCurrency:a,quoteCurrency:s}),o&&l&&(0,i.jsx)(ex,{poolInfo:l,baseCurrency:a,quoteCurrency:s}),(0,i.jsx)(e2,{children:(0,i.jsxs)(b.A,{children:[M&&(0,i.jsx)(er.E,{wrapperProps:{mb:"16px"},poolId:t,poolType:er._.DEX_PANCAKE_INFINITY_CL,tickLower:null!=m?m:void 0,tickUpper:null!=v?v:void 0,baseCurrency:f,baseCurrencyAmount:C,quoteCurrency:w,quoteCurrencyAmount:S}),(0,i.jsx)(ek,{baseCurrency:f,quoteCurrency:w}),(0,i.jsx)(e1,{mt:"16px"})]})})]})};var e9=n(596953);let e8=(0,w.Ay)(f.A).withConfig({componentId:"sc-b9652880-0"})(["width:100%;"]),e5=()=>{let{chainId:e,poolId:t}=(0,v.s)(),n=(e=>{let{poolId:t,chainId:n}=e,[,i]=(0,A.W)(t,n);return null==i?void 0:i.poolType})({poolId:t,chainId:e});return(0,i.jsxs)(e9.q,{children:[(0,i.jsx)(e8,{style:{overflow:"visible",width:"100%"},children:(0,i.jsxs)(b.A,{children:["CL"===n&&(0,i.jsx)(en,{}),"Bin"===n&&(0,i.jsx)(W,{})]})}),(0,i.jsx)(e6,{poolId:t,chainId:e})]})};var e7=n(338685),e3=n(457258);n(131619);var e4=n(442828),te=n(139184);let tt=e=>{let{poolId:t,chainId:n}=e,{isMobile:l}=(0,r.A)(),o=(0,es.qX)({poolAddress:t,chainId:n}),a=(0,e3.R4)(n,t),{currency0:s,currency1:u}=(0,q.j)({chainId:n,poolId:t}),[,d]=(0,A.W)(t,n),c=eM(d),[p,m]=(0,L.h2)(),v=(0,D.useMemo)(()=>{var e;return(0,e4.En)(null==s||null==(e=s.wrapped)?void 0:e.address,null==s?void 0:s.chainId,null==s?void 0:s.symbol)},[s]),h=(0,D.useMemo)(()=>{var e;return(0,e4.En)(null==u||null==(e=u.wrapped)?void 0:e.address,null==u?void 0:u.chainId,null==u?void 0:u.symbol)},[u]),g=(0,D.useMemo)(()=>{let e,t;if(!o)return null;try{e=null==c?void 0:c.invert().toFixed(18),t=null==c?void 0:c.toFixed(18)}catch(e){console.error("Error formatting on-chain price:",e)}return{...o,token0Price:null!=e?e:o.token0Price,token1Price:null!=t?t:o.token1Price}},[o,c]);return(0,i.jsx)(e7.I,{poolId:t,poolInfo:g,currency0:s,currency1:u,symbol0:v,symbol1:h,chainId:n,isInverted:!!p,onInvertPrices:()=>m(!p),hookData:a,linkType:"addLiquidity",overrideAprDisplay:{aprDisplay:o?o.protocol===k.Zs.InfinityCLAMM?(0,i.jsx)(te.qP,{pool:o,fontSize:l?"20px":"24px"}):o.protocol===k.Zs.InfinityBIN?(0,i.jsx)(te.gI,{pool:o,fontSize:l?"20px":"24px"}):"-":null,roiCalculator:(0,i.jsx)(i.Fragment,{})}})},tn=()=>{let{t:e}
1=(0,l.A)(),{routeParams:t,routeError:n}=(0,v.y)(),{isLg:h}=(0,r.A)(),{chainId:g,poolId:y}=(0,v.s)();return n?(console.warn("AddLiquiditySelectorPage routeError",{routeError:n}),(0,i.jsx)(x.default,{})):t&&g&&y?(0,i.jsxs)(o.A,{mx:"auto",my:"24px",maxWidth:"1200px",children:[(0,i.jsxs)(a.A,{children:[(0,i.jsx)(d.Y,{to:"/liquidity/pools",children:(0,i.jsx)(c._,{children:e("Farms")})}),g&&y&&(0,i.jsx)(d.Y,{to:`/liquidity/pool/${m.RW[g]}/${y}`,children:(0,i.jsx)(c._,{children:e("Pool Detail")})}),(0,i.jsx)(s.A,{alignItems:"center",gap:"4px",children:(0,i.jsx)(u.A,{children:e("Add Liquidity")})})]}),(0,i.jsxs)(s.A,{flexDirection:"column",gap:h?"24px":"16px",mt:["16px","24px","24px","24px"],children:[(0,i.jsx)(tt,{poolId:y,chainId:g}),(0,i.jsx)(e5,{})]})]}):(0,i.jsx)(p.A,{})},ti=g()(()=>Promise.resolve(tn),{ssr:!1});ti.screen=!0,ti.chains=y.tx;let tl=ti}},e=>{e.O(0,[7964,3821,5139,7578,3732,4306,4374,3892,2845,7121,7061,9596,2141,8516,2806,6270,143,3387,6175,7969,7618,5958,7212,1480,6335,4711,9818,7635,64,8269,6283,5018,9508,4712,7287,4641,8686,8837,6010,4522,4586,2911,3484,770,7869,2457,1729,7207,3527,8528,7998,636,6593,8792],()=>e(e.s=639303)),_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.