PageSourceSearch

https://curve.convexfinance.com/_next/static/chunks/1357-b8df7c6e698ede68.js

js convexfinance.com collected 2026-10-03 22:01:03 UTC 152,668 bytes, 27 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1357,5969],{3380:(e,a,n)=>{"use strict";n.d(a,{O:()=>u,c:()=>x});var r=n(17654),s=n.n(r),t=n(59472),o=n(66629),i=n(81403),l=n(37851),d=n(4360),c=n(78989),p=n(67141);let u=s()((e,a,n,r,s,d,c)=>e.map(e=>{let a,p,u,x,h,m,j=n?.[e.rewardContractKey],b=s?.get(e.address,e.blockchainId),y=void 0!==j&&void 0!==b?j.times(b):void 0,f=t.ACTIONS.depositAndStakeLpToken.apyHook(e,c,n,b,d);e.usesHarvester?{cumulativeApy:a,crvBoost:p,baseApy:u,crvApy:x,cvxApy:h,additionalRewards:m}=t.ACTIONS.depositAndStakeLpToken.projectedApyHook({curveApys:d,tvl:n,cvxPrice:r,lpTokenPrice:b,actionPool:e}):p=f.crvBoost;let g=x&&x.eq(0)&&!i.KQ.includes(e.id),k=void 0!==f.additionalRewards?(0,o.EJ)(f.additionalRewards.map(({apy:e})=>e)):(0,l.A)(0),T=void 0!==f?{...f,cumulativeApy:g?(0,l.A)(f.baseApy).plus(k):f.cumulativeApy,crvApy:g?(0,l.A)(0):f.crvApy,cvxApy:g?(0,l.A)(0):f.cvxApy,isPendingHarvest:!x?.eq(0)&&f.isPendingHarvest}:void 0;return{...e,totalLockedUsdValue:y,totalLockedUsdValueNumber:y?.toNumber(),currentAprData:T,apyNumber:e.isKilled?null:T?.cumulativeApy?.toNumber(),apyNumberFilteredByTvl:e.isKilled?null:y?.gt(5e4)?T?.cumulativeApy?.toNumber():T?.cumulativeApy?T.cumulativeApy.div(1e4).toNumber():void 0,isPendingHarvest:T?.isPendingHarvest,cumulativeApy:a,crvBoost:p,baseApy:u,crvApy:x,cvxApy:h,additionalRewards:m}}),{normalizer:([e,a,n,r,s,t,o])=>{let i=(0,p.useContext)(c.A),l=(0,p.useContext)(d.A);return`
2      ${e.length}-${e?.[0]?.blockchainId}-${e?.[0]?.isLendingVault}|
3      ${a}|
4      ${Object.keys(n).length}|
5      ${typeof s}|
6      ${void 0!==t?Object.keys(t).length:0}|
7      ${o?.areCurveTokenPricesLoaded}|
8      ${void 0!==i?.rewardRate?Object.keys(i.rewardRate).length:0}|
9      ${Object.keys(l).length}
10    `},maxAge:6e4}),x=({isKilled:e,poolEarnedUsdValue:a,stakedBalance:n})=>!e||!!a?.gt(0)||!!n?.gt(0)},7797:(e,a,n)=>{"use strict";n.d(a,{A:()=>u});var r=n(66305),s=n(96295),t=n.n(s);n(67141);var o=n(58511),i=n.n(o),l=n(99284),d=n(56474),c=n(69025);let p=({stakableBalance:e,lpTokenSymbol:a="LP"})=>(0,r.jsxs)("div",{className:"jsx-c129f97cc73f64f0 container",children:[(0,r.jsx)(d.A,{title:`You have available ${a} tokens that can be deposited in order to earn rewards!`,arrow:!0,children:(0,r.jsx)("span",{className:"jsx-c129f97cc73f64f0",children:(0,r.jsx)(l.A,{size:"small",variant:"outlined",label:(0,r.jsxs)(r.Fragment,{children:["+",(0,c.kW)(e,2)," ",(0,r.jsx)("span",{className:"jsx-c129f97cc73f64f0 small",children:a})," can be deposited"]})})})}),(0,r.jsx)(t(),{id:"c129f97cc73f64f0",children:".container.jsx-c129f97cc73f64f0{display:block;margin-left:-2px}.container.jsx-c129f97cc73f64f0 .MuiChip-root{font-size:12px;height:18px;border-style:dashed;border-color:#999;cursor:help;font-weight:400}.container.jsx-c129f97cc73f64f0 .MuiChip-root .MuiChip-label{padding-left:5px;padding-right:5px}"})]});p.propTypes={lpTokenSymbol:i().string};let u=p},8998:(e,a,n)=>{"use strict";n.d(a,{A:()=>i});var r=n(17654),s=n.n(r),t=n(31804),o=n(67896);let i=s()(async()=>(await (0,o.A)(`${t.Rh.fxp}/api/fxp/pools`)).pools.augmentedPoolData,{promise:!0,maxAge:6e5})},12553:(e,a,n)=>{"use strict";n.d(a,{A:()=>m});var r=n(66305),s=n(67141),t=n(96295),o=n.n(t),i=n(58511),l=n.n(i),d=n(99023),c=n(4741),p=n(9113),u=n(80543);function x(e){let{children:a,value:n,index:s,...t}=e;return(0,r.jsx)("div",{role:"tabpanel",hidden:n!==s,id:`tabpanel-${s}`,"aria-labelledby":`tab-${s}`,className:"panel",...t,children:n===s&&a})}x.propTypes={children:l().node.isRequired,index:l().any.isRequired,value:l().any.isRequired};let h=({labels:e,panels:a})=>{let[n,t]=s.useState(0);return(0,r.jsxs)("div",{className:o().dynamic([["58aab72ba5309a1",[u.Tj.dark,u.Tj.backgroundLighter,u.Tj.blue,u.Tj.blue]]])+" container",children:[(0,r.jsx)(d.A,{children:(0,r.jsx)(c.A,{value:n,onChange:(e,a)=>{t(a)},indicatorColor:"secondary",textColor:"inherit",children:e.map((e,a)=>(0,s.createElement)(p.A,{label:e,...{id:`tab-${a}`,"aria-controls":`tabpanel-${a}`},key:a}))})}),a.map((e,a)=>(0,r.jsx)(x,{value:n,index:a,children:e},a)),(0,r.jsx)(o(),{id:"58aab72ba5309a1",dynamic:[u.Tj.dark,u.Tj.backgroundLighter,u.Tj.blue,u.Tj.blue],children:`.container.__jsx-style-dynamic-selector{margin:-20px -20px 0;font-size:14px;font-weight:500}.container.__jsx-style-dynamic-selector .MuiAppBar-root{position:static;box-shadow:none;transition:none;display:block;background:transparent}.container.__jsx-style-dynamic-selector .MuiTabs-root{min-height:0;background-color:#f1f1f1}.container.__jsx-style-dynamic-selector .MuiTab-root{min-width:112px;max-width:none;min-height:0;padding:2px 20px 0 20px;color:${u.Tj.dark};opacity:.5;text-transform:uppercase;font-size:13px;line-height:34px;background-color:${u.Tj.backgroundLighter};border-bottom:4px solid transparent}.container.__jsx-style-dynamic-selector .MuiTab-root.Mui-selected{color:${u.Tj.blue};opacity:1;border-bottom-color:${u.Tj.blue};background-color:#E8EEF6}.container.__jsx-style-dynamic-selector .MuiTabs-indicator{display:none}.container.__jsx-style-dynamic-selector .panel{padding:20px 20px 0}`})]})};h.propTypes={labels:l().arrayOf(l().string).isRequired,panels:l().arrayOf(l().node).isRequired};let m=s.memo(h)},12881:(e,a,n)=>{"use strict";n.d(a,{A:()=>u});var r=n(66305),s=n(96295),t=n.n(s);n(67141);var o=n(58511),i=n.n(o),l=n(56474),d=n(5901),c=n(33027);let p=({address:e,blockchainId:a})=>{let n=a in c.Sb?`${c.Sb[a]}${e}`:void 0;return(0,r.jsxs)("span",{className:"jsx-710736a8a83b5b29 container",children:[(0,r.jsx)(l.A,{title:e,arrow:!0,placement:"right",enterDelay:500,children:(0,r.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"jsx-710736a8a83b5b29 pool-name",children:(0,r.jsx)("samp",{className:"jsx-710736a8a83b5b29",children:(0,d.Dc)(e)})})}),(0,r.jsx)(t(),{id:"710736a8a83b5b29",children:".container.jsx-710736a8a83b5b29 a{font-weight:inherit}.container.jsx-710736a8a83b5b29 a.pool-name{display:inline}"})]})};p.propTypes={address:i().string.isRequired,blockchainId:i().string.isRequired};let u=p},13139:(e,a,n)=>{"use strict";n.d(a,{A:()=>et});var r=n(66305),s=n(67141),t=n(37851),o=n(58511),i=n.n(o),l=n(99284),d=n(95589),c=n(48491),p=n(33027),u=n(66671),x=n(12553),h=n(89028),m=n(96295),j=n.n(m),b=n(57443),y=n(46357),f=n(69025),g=n(66629),k=n(81403);n(79931);var T=n(31804);let v=({size:e="small",textPrefix:a,convexUrl:n,totalMinMaxApr:o})=>{let i=(0,s.useCallback)(e=>e.stopPropagation(),[]);return(0,r.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:i,children:(0,r.jsx)(l.A,{size:e,variant:"outlined",label:(0,r.jsxs)(r.Fragment,{children:[a,(0,r.jsxs)("strong",{children:[(0,f.o)((0,t.A)(o.min),0),"%→",(0,f.o)((0,t.A)(o.max),0),"%"]})," on Frax vault",(0,r.jsx)(y.A,{customId:"frax-color-round",noShadow:!0}
10),(0,r.jsx)("span",{className:"external-link-icon",children:(0,r.jsx)(b.A,{fontSize:"small"})})]})})})},A=({cumulativeApy:e,fraxPool:{id:a,boostedRewardAprs:n,areConvexPoolsCrvAndCvxBoostable:s},size:t})=>{let o=`${T.Rh.frax}/stake/ethereum/${a}`,i=s?{min:(0,g.EJ)(n.map(({min:e})=>e)),max:(0,g.EJ)(n.map(({max:e})=>e))}:{min:(0,g.EJ)([e,...n.map(({min:e})=>e)]),max:(0,g.EJ)([e,...n.map(({max:e})=>e)])};return void 0!==e&&i.max.minus(k.uW).gt(e)?(0,r.jsxs)("div",{className:`jsx-ae6e0e3d33d2b923 container ${t}`,children:[(0,r.jsx)(v,{size:t,totalMinMaxApr:i,textPrefix:"medium"===t?"":"Or ",convexUrl:o}),(0,r.jsx)(j(),{id:"ae6e0e3d33d2b923",children:".container.jsx-ae6e0e3d33d2b923{display:block;margin-left:-2px;margin-top:2px}.container.jsx-ae6e0e3d33d2b923 .MuiChip-root{font-size:12px;height:18px;border-style:dashed;border-color:#999;font-weight:400;cursor:pointer}.container.jsx-ae6e0e3d33d2b923 .MuiChip-root:hover{border-style:solid}.container.medium.jsx-ae6e0e3d33d2b923 .MuiChip-root{font-size:14px;height:21px;border-color:#555}.container.jsx-ae6e0e3d33d2b923 .MuiChip-root .MuiChip-label{padding-left:5px;padding-right:5px}.container.medium.jsx-ae6e0e3d33d2b923 .MuiChip-root .MuiChip-label{padding-right:6px}.container.jsx-ae6e0e3d33d2b923 .MuiChip-root .external-link-icon .MuiSvgIcon-root{position:relative;top:1px;margin-left:4px;font-size:11px}.container.medium.jsx-ae6e0e3d33d2b923 .MuiChip-root .external-link-icon .MuiSvgIcon-root{top:2px;font-size:13px}.container.jsx-ae6e0e3d33d2b923 .MuiChip-root .crypto-icon{display:inline-block;width:13px;height:13px;position:relative;top:2px;left:2px;margin-left:1px}.container.medium.jsx-ae6e0e3d33d2b923 .MuiChip-root .crypto-icon{width:13px;height:13px;top:2px}.container.jsx-ae6e0e3d33d2b923 .MuiChip-root strong{font-weight:500}"})]}):null};A.propTypes={size:i().string};var L=n(7797),w=n(71377),N=n(527),D=n(93058),C=n(11256);let _=({fraxPool:e,cumulativeApy:a})=>(0,r.jsxs)("div",{className:"jsx-edec6e1a4ef00735 container",children:[(0,r.jsxs)(D.A,{severity:"info",children:[(0,r.jsxs)(C.A,{children:["Earn more! ",(0,r.jsx)(A,{fraxPool:e,size:"medium",cumulativeApy:a})]}),"This Convex pool is also deployed on Frax, where you can earn more than what you’d get here. To earn this higher APR, stake your tokens on ",(0,r.jsx)("a",{href:`${T.Rh.frax}/stake/ethereum/${e.id}`,target:"_blank",rel:"noopener noreferrer",className:"jsx-edec6e1a4ef00735",children:"Convex for Frax"}),"!"]}),(0,r.jsx)(j(),{id:"edec6e1a4ef00735",children:".container.jsx-edec6e1a4ef00735 .MuiAlert-root{margin-top:0}.container.jsx-edec6e1a4ef00735 .MuiAlert-root .container{display:inline-block;margin-left:3px;position:relative;top:-2px}"})]}),P=()=>(0,r.jsxs)("div",{className:"jsx-10e9ecc906f5e49d container",children:[(0,r.jsxs)(D.A,{severity:"warning",children:[(0,r.jsx)(C.A,{children:"Please exit this pool and redeem your synths asap"}),"Synthetix has deprecated some of its synthetic tokens. Curve pools containing these tokens have been deprecated, and will not receive any more rewards. You must exit your liquidity positions and then ",(0,r.jsx)("a",{href:"https://staking.synthetix.io/wallet/balances/",target:"_blank",rel:"noopener noreferrer",className:"jsx-10e9ecc906f5e49d",children:"redeem your synthetic tokens for sUSD"}),". Synthetix has enacted a discount rate that will grow over time: the longer you wait to redeem a synth after April 29, 2024, the larger the discount rate (i.e. the more the value of your synth decreases).",(0,r.jsx)("br",{className:"jsx-10e9ecc906f5e49d"}),"As a result, you are encouraged to ",(0,r.jsxs)("strong",{className:"jsx-10e9ecc906f5e49d",children:["(1) exit this pool as soon as possible, and (2) ",(0,r.jsx)("a",{href:"https://staking.synthetix.io/wallet/balances/",target:"_blank",rel:"noopener noreferrer",className:"jsx-10e9ecc906f5e49d",children:"redeem your synths as soon as possible"})]}),".",(0,r.jsx)("br",{className:"jsx-10e9ecc906f5e49d"}),"Source: ",(0,r.jsx)("a",{href:"https://blog.synthetix.io/legacy-spot-synth-exchange-deprecation-migration/",target:"_blank",rel:"noopener noreferrer",className:"jsx-10e9ecc906f5e49d",children:"Synthetix Blog – ETH Mainnet Legacy Spot Synth Migration"})]}),(0,r.jsx)(j(),{id:"10e9ecc906f5e49d",children:".container.jsx-10e9ecc906f5e49d .MuiAlert-root{margin-top:0}.container.jsx-10e9ecc906f5e49d .MuiAlert-root .container{display:inline-block;margin-left:3px;position:relative;top:-2px}"})]});var q=n(9472),O=n(64675),S=n(10908);let I=({size:e="small",textPrefix:a,convexUrl:n,totalApy:t})=>{let o=(0,s.useCallback)(e=>e.stopPropagation(),[]);return(0,r.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:o,children:(0,r.jsx)(l.A,{size:e,variant:"outlined",label:(0,r.jsxs)(r.Fragment,{children:[a,(0,r.jsxs)("strong",{children:[(0,f.o)(t),"%"]})," on f(x) pool",(0,r.jsx)(y.A,{customId:"fxn",noShadow:!0}
10),(0,r.jsx)("span",{className:"external-link-icon",children:(0,r.jsx)(b.A,{fontSize:"small"})})]})})})},B=({currentAprData:e,fxpPool:{id:a,totalRewardAprs:n},size:s})=>{let o=(0,t.A)(n).plus(e.baseApy??0);if(!o?.minus(k.Vl)?.gt(e.cumulativeApy))return null;let i=`${T.Rh.fxp}/stake/ethereum/${a}`;return(0,r.jsxs)("div",{className:`jsx-91b2695595c903dc container ${s}`,children:[(0,r.jsx)(I,{size:s,totalApy:o,textPrefix:"medium"===s?"":"Or ",convexUrl:i}),(0,r.jsx)(j(),{id:"91b2695595c903dc",children:".container.jsx-91b2695595c903dc{display:block;margin-left:-2px;margin-top:2px}.container.jsx-91b2695595c903dc .MuiChip-root{font-size:12px;height:18px;border-style:dashed;border-color:#999;font-weight:400;cursor:pointer}.container.jsx-91b2695595c903dc .MuiChip-root:hover{border-style:solid}.container.medium.jsx-91b2695595c903dc .MuiChip-root{font-size:14px;height:21px;border-color:#555}.container.jsx-91b2695595c903dc .MuiChip-root .MuiChip-label{padding-left:5px;padding-right:5px}.container.medium.jsx-91b2695595c903dc .MuiChip-root .MuiChip-label{padding-right:6px}.container.jsx-91b2695595c903dc .MuiChip-root .external-link-icon .MuiSvgIcon-root{position:relative;top:1px;margin-left:4px;font-size:11px}.container.medium.jsx-91b2695595c903dc .MuiChip-root .external-link-icon .MuiSvgIcon-root{top:2px;font-size:13px}.container.jsx-91b2695595c903dc .MuiChip-root .crypto-icon{display:inline-block;width:13px;height:13px;position:relative;top:2px;left:2px;margin-left:1px}.container.medium.jsx-91b2695595c903dc .MuiChip-root .crypto-icon{width:14px;height:14px;top:2px}.container.jsx-91b2695595c903dc .MuiChip-root strong{font-weight:500}"})]})};B.propTypes={size:i().string};let R=({fxpPool:e,currentAprData:a})=>{let{id:n,totalRewardAprs:s}=e,o=(0,t.A)(s).plus(a.baseApy??0);if(!o?.minus(k.Vl)?.gt(a.cumulativeApy))return null;let i=`${T.Rh.fxp}/stake/ethereum/${n}`;return(0,r.jsxs)("div",{className:"jsx-10e9ecc906f5e49d container",children:[(0,r.jsxs)(D.A,{severity:"info",children:[(0,r.jsxs)(C.A,{children:["Earn more! ",(0,r.jsx)(B,{fxpPool:e,size:"medium",currentAprData:a})]}),"This Convex pool is also deployed on f(x), where you can earn more than what you’d get here. To earn this higher APR, stake your tokens on ",(0,r.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"jsx-10e9ecc906f5e49d",children:"Convex for f(x)"}),"!"]}),(0,r.jsx)(j(),{id:"10e9ecc906f5e49d",children:".container.jsx-10e9ecc906f5e49d .MuiAlert-root{margin-top:0}.container.jsx-10e9ecc906f5e49d .MuiAlert-root .container{display:inline-block;margin-left:3px;position:relative;top:-2px}"})]})};var M=n(90769),F=n(80646);let $=()=>{let[e,a]=(0,F.A)([]);return(0,s.useEffect)(()=>{(0,M.A)().then(e=>{a(e)})},[]),{has:(a,n=!1)=>e&&e.some(({type:e,underlyingTokenAddress:r,active:s})=>"convex"===e&&r.toLowerCase()===a.toLowerCase()&&(!n||s)),find:(a,n=!1)=>e?.find(({type:e,underlyingTokenAddress:r,active:s})=>"convex"===e&&r.toLowerCase()===a.toLowerCase()&&(!n||s))}},U=({convexPoolId:e,networkChoice:a,currentAprData:n,correspondingFxpPool:t})=>{let o,i,l,d=(0,c.getPoolByConvexPoolId)(e,a);if(d.usesDepositToken){let e=S.kl.stakeWrappedLpToken.balanceHook({actionPool:d})?.gt(0);[i,l]=(0,s.useState)(e),(0,s.useEffect)(()=>{void 0===i&&e&&l(!0)},[i,e]),o=(0,s.useCallback)(()=>l(!i),[i])}let p=$(),u=p.find(d.lpTokenAddress||d.address,!0),x=void 0!==u&&void 0!==n?u.areConvexPoolsCrvAndCvxBoostable?(0,g.EJ)(u.boostedRewardAprs.map(({max:e})=>e)):(0,g.EJ)([n.cumulativeApy,...u.boostedRewardAprs.map(({max:e})=>e)]):void 0,h=void 0!==u&&void 0!==x&&x.minus(k.uW).gt(n.cumulativeApy);return(0,r.jsxs)("div",{className:"jsx-54d8e7d2ca2f91d8 container",children:["ethereum"===a&&k.tZ.includes(e)&&(0,r.jsx)(P,{}),h&&(0,r.jsx)(_,{fraxPool:p.find(d.lpTokenAddress||d.address,!0),cumulativeApy:n?.cumulativeApy}),t&&(0,r.jsx)(R,{fxpPool:t,currentAprData:n}),(0,r.jsxs)("div",{className:"jsx-54d8e7d2ca2f91d8 pre-form-container",children:[(0,r.jsx)("div",{className:"jsx-54d8e7d2ca2f91d8 text-container",children:(0,r.jsxs)("p",{className:"jsx-54d8e7d2ca2f91d8",children:["Deposit liquidity into the ",(0,r.jsxs)("a",{href:d.poolUrl,target:"_blank",rel:"noopener noreferrer",className:"jsx-54d8e7d2ca2f91d8",children:["Curve ",d.name," pool"]})," (without staking in the Curve gauge), and then stake your ",d.lpTokenInfo.symbol," tokens here to earn CVX on top of Curve’s native rewards."]})}
10),d.usesDepositToken&&(0,r.jsx)("div",{className:"jsx-54d8e7d2ca2f91d8 switch-container",children:(0,r.jsx)(q.A,{control:(0,r.jsx)(O.A,{size:"small",checked:i,color:"primary",onChange:o}),label:"Advanced"})})]}),i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"jsx-54d8e7d2ca2f91d8 action-form-container",children:[(0,r.jsxs)("p",{className:"jsx-54d8e7d2ca2f91d8",children:["Convert and stake ",d.lpTokenInfo.symbol," in one go:"]}),(0,r.jsx)(N.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to deposit and stake`,actionType:"depositAndStakeLpToken",extraData:{actionPool:d}})]}),(0,r.jsxs)("div",{className:"jsx-54d8e7d2ca2f91d8 action-form-container",children:[(0,r.jsxs)("p",{className:"jsx-54d8e7d2ca2f91d8",children:["Or separately deposit ",d.lpTokenInfo.symbol," with this first form, and stake the wrapped deposit token with this second form:"]}),(0,r.jsx)(N.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to deposit`,actionType:"depositLpToken",extraData:{actionPool:d}}),(0,r.jsx)(N.A,{label:`Amount of wrapped ${d.lpTokenInfo.symbol} tokens to stake`,actionType:"stakeWrappedLpToken",extraData:{actionPool:d}})]})]}):(0,r.jsx)("div",{className:"jsx-54d8e7d2ca2f91d8 action-form-container",children:(0,r.jsx)(N.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to deposit and stake`,actionType:"depositAndStakeLpToken",extraData:{actionPool:d}})}),(0,r.jsx)(j(),{id:"54d8e7d2ca2f91d8",children:".pre-form-container.jsx-54d8e7d2ca2f91d8{display:flex}.text-container.jsx-54d8e7d2ca2f91d8>p.jsx-54d8e7d2ca2f91d8:first-child{margin-top:0}.text-container.jsx-54d8e7d2ca2f91d8>p.jsx-54d8e7d2ca2f91d8:last-child{margin-bottom:0}.switch-container.jsx-54d8e7d2ca2f91d8{margin-left:40px;display:flex;align-items:flex-end}.switch-container.jsx-54d8e7d2ca2f91d8 .MuiFormControlLabel-label{margin-left:5px;font-size:13px;font-weight:700;line-height:24px}.action-form-container.jsx-54d8e7d2ca2f91d8{margin-top:14px}.action-form-container.jsx-54d8e7d2ca2f91d8>p.jsx-54d8e7d2ca2f91d8:first-child{margin-top:28px}.action-form-container.jsx-54d8e7d2ca2f91d8>.container{margin-top:14px}"})]})};U.propTypes={networkChoice:i().oneOf(p.Ki).isRequired,convexPoolId:i().number.isRequired};var z=n(15406),E=n(27083);let V=({convexPoolId:e,networkChoice:a})=>{let n,t,o,i,{ethereumWeb3:{account:l}}=(0,s.useContext)(z.A),d=(0,c.getPoolByConvexPoolId)(e,a);if(d.usesDepositToken){let e=S.kl.stakeWrappedLpToken.balanceHook({actionPool:d})?.gt(0);
10[t,o]=(0,s.useState)(e),(0,s.useEffect)(()=>{void 0===t&&e&&o(!0)},[t,e]),n=(0,s.useCallback)(()=>o(!t),[t])}return(i=d.lpTokenAddress||d.address,E.some(({user:e,lpToken:a})=>e.toLowerCase()===l?.toLowerCase()&&a.toLowerCase()===i?.toLowerCase()))?(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)(D.A,{severity:"warning",children:["We have detected that your address has approved a malicious contract as a possible spender for your currently-staked lp tokens. Your ",d.lpTokenInfo.symbol," lp tokens aren’t currently at risk because they’re currently deposited on Convex, BUT if you withdrew them from Convex, they could be siphoned by the attacker. We’ve hidden the Withdraw button for you so you don’t fall prey to this attack; please reach out to us (see our various contact info at the bottom of the page) so we can guide you through revoking this approval, and then make this Withdraw button appear again for you!"]})}):(0,r.jsxs)("div",{className:"jsx-8fb34dae2afda2b3 container",children:["ethereum"===a&&k.tZ.includes(e)&&(0,r.jsx)(P,{}),(0,r.jsxs)("div",{className:"jsx-8fb34dae2afda2b3 pre-form-container",children:[(0,r.jsx)("div",{className:"jsx-8fb34dae2afda2b3",children:(0,r.jsx)("span",{className:"jsx-8fb34dae2afda2b3"})}),d.usesDepositToken&&(0,r.jsx)("div",{className:"jsx-8fb34dae2afda2b3 switch-container",children:(0,r.jsx)(q.A,{control:(0,r.jsx)(O.A,{size:"small",checked:t,color:"primary",onChange:n}),label:"Advanced"})})]}),d.isKilled&&!d.isImpactedByVyperBug&&(0,r.jsx)("div",{className:"jsx-8fb34dae2afda2b3 container-shutdown-pool",children:(0,r.jsx)(D.A,{severity:"info",children:"This pool has been shutdown, and is not accruing rewards anymore."})}),d.isKilled&&d.isImpactedByVyperBug&&(0,r.jsx)("div",{className:"jsx-8fb34dae2afda2b3 container-shutdown-pool",children:(0,r.jsxs)(D.A,{severity:"info",children:["arbitrum"===d.blockchainId?"You are invited to exit this pool, out of caution related to a small number of old Curve pools being targeted after the discovery of a vulnerability in a previous version of the Vyper compiler. This pool has NOT been exploited, however it uses an old Vyper version that was found to be vulnerable, so you’re encouraged to withdraw from this pool, and a new improved one will be released soon enough to take its place.":"This pool’s underlying Curve pool was affected by a vulnerability in a previous version of the Vyper compiler that was exploited. Four Curve pools have been exploited in total (alETH/ETH, msETH/ETH, pETH/ETH and CRV/ETH), and funds in ALL other pools are SAFE and not affected by this bug.",(0,r.jsx)("br",{className:"jsx-8fb34dae2afda2b3"}),(0,r.jsx)("br",{className:"jsx-8fb34dae2afda2b3"}),"Please find more context here: ",(0,r.jsx)("a",{href:"https://t.me/curvefi/572482",target:"_blank",rel:"noopener noreferrer",className:"jsx-8fb34dae2afda2b3",children:"Announcement from Curve"}),(0,r.jsx)("br",{className:"jsx-8fb34dae2afda2b3"}),"And feel free to follow Curve on ",(0,r.jsx)("a",{href:"https://t.me/curvefi",target:"_blank",rel:"noopener noreferrer",className:"jsx-8fb34dae2afda2b3",children:"Telegram"}),", ",(0,r.jsx)("a",{href:"https://discord.gg/rgrfS7W",target:"_blank",rel:"noopener noreferrer",className:"jsx-8fb34dae2afda2b3",children:"Discord"})," or ",(0,r.jsx)("a",{href:"https://twitter.com/curvefinance",target:"_blank",rel:"noopener noreferrer",className:"jsx-8fb34dae2afda2b3",children:"Twitter"})," for updates on this situation."]})}),t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"jsx-8fb34dae2afda2b3 action-form-container",children:[(0,r.jsxs)("p",{className:"jsx-8fb34dae2afda2b3",children:["Unstake and withdraw ",d.lpTokenInfo.symbol," in one go:"]}),(0,r.jsx)(N.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to unstake and withdraw`,actionType:"unstakeAndWithdrawLpToken",extraData:{actionPool:d}})]}),(0,r.jsxs)("div",{className:"jsx-8fb34dae2afda2b3 action-form-container",children:[(0,r.jsxs)("p",{className:"jsx-8fb34dae2afda2b3",children:["Or separately unstake ",d.lpTokenInfo.symbol," with this first form, and unwrap the wrapped deposit token with this second form:"]}),(0,r.jsx)(N.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to unstake`,actionType:"unstakeLpToken",extraData:{actionPool:d}}),(0,r.jsx)(N.A,{label:`Amount of wrapped ${d.lpTokenInfo.symbol} tokens to unwrap`,actionType:"withdrawWrappedLpToken",extraData:{actionPool:d}})]})]}):(0,r.jsx)("div",{className:"jsx-8fb34dae2afda2b3 action-form-container",children:(0,r.jsx)(N.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to unstake and withdraw`,actionType:"unstakeAndWithdrawLpToken",extraData:{actionPool:d}})}),(0,r.jsx)(j(),{id:"8fb34dae2afda2b3",children:".pre-form-container.jsx-8fb34dae2afda2b3{display:flex;justify-content:end}.text-container.jsx-8fb34dae2afda2b3>p.jsx-8fb34dae2afda2b3:first-child{margin-top:0}.text-container.jsx-8fb34dae2afda2b3>p.jsx-8fb34dae2afda2b3:last-child{margin-bottom:0}.switch-container.jsx-8fb34dae2afda2b3{margin-left:40px;
10display:flex;align-items:flex-end}.switch-container.jsx-8fb34dae2afda2b3 .MuiFormControlLabel-label{margin-left:5px;font-size:13px;font-weight:700;line-height:24px}.action-form-container.jsx-8fb34dae2afda2b3{margin-top:14px}.action-form-container.jsx-8fb34dae2afda2b3>p.jsx-8fb34dae2afda2b3:first-child{margin-top:28px}.action-form-container.jsx-8fb34dae2afda2b3>.container{margin-top:14px}.container-shutdown-pool.jsx-8fb34dae2afda2b3 .MuiAlert-root{margin:0}"})]})};V.propTypes={convexPoolId:i().number.isRequired,networkChoice:i().oneOf(p.Ki).isRequired};var G=n(33965),W=n(64904),H=n(99978),K=n.n(H);let Y=({convexPoolId:e,networkChoice:a})=>{let n=(0,c.getPoolByConvexPoolId)(e,a),s=n.usesDepositToken?W.Ay:W.Ay[n.blockchainId],t=new Map([["LP token address",n.lpTokenAddress||n.address],["Deposit contract address",s.Booster.address],["Rewards contract address",s[n.rewardContractKey].address]]);return(0,r.jsx)(G.A,{addressesMap:t,network:n.blockchainId,appendedContent:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Convex pool id"}),(0,r.jsx)("td",{children:n.convexPoolData.id})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Convex pool url"}),(0,r.jsx)("td",{children:(0,r.jsxs)(K(),{href:`${T.Rh.curve}/stake/${n.blockchainId}/${n.convexPoolData.id}`,children:[T.Rh.curve,"/stake/",n.blockchainId,"/",n.convexPoolData.id]})})]})]})})};Y.propTypes={networkChoice:i().oneOf(p.Ki).isRequired,convexPoolId:i().number.isRequired};var X=n(3380),J=n(44182),Z=n(88648),Q=n(5901),ee=n(8998),ea=n(14242),en=n(26642);let er=["Deposit","Withdraw","Info"],es=({networkChoice:e,convexPoolId:a,name:n,lpTokenSymbol:o,stakedBalance:i,stakedBalanceUsdValue:p,stakableBalance:m,poolEarnedUsdValue:j,totalLockedUsdValue:b,currentAprData:y,cumulativeApy:g,isPendingHarvest:v=!1,crvBoost:N,baseApy:D,crvApy:C,cvxApy:_,additionalRewards:P,expanded:q,isInsideStandaloneStakePage:O=!1})=>{let S=(0,c.getPoolByConvexPoolId)(a,e),I=S.isKilled,R=S.isKilled,M=void 0===y?.cumulativeApy||S.usesHarvester&&void 0===g,z=S.usesHarvester?[...v?[d.Ay.crv.address]:[],...P.filter(({isPendingHarvest:e})=>e).map(({coinAddress:e})=>e)]:[],E=$().find(S.lpTokenAddress||S.address),{pools:G}=(()=>{let[e,a]=(0,F.A)([]);return(0,s.useEffect)(()=>{(0,ee.A)().then(e=>{a(e)})},[]),{pools:e}})(),W=G?.find(({curvePoolData:e})=>(0,Q.lc)(e?.address)===(0,Q.lc)(S.address)),H=!!W,es=(0,s.useMemo)(()=>[(0,r.jsx)(U,{convexPoolId:a,networkChoice:e,currentAprData:y,correspondingFxpPool:W}),(0,r.jsx)(V,{convexPoolId:a,networkChoice:e}),(0,r.jsx)(Y,{convexPoolId:a,networkChoice:e})],[a,e,y,W]);return(0,X.c)({isKilled:S.isKilled,poolEarnedUsdValue:j,stakedBalance:i})?(0,r.jsx)(u.Ay,{expanded:q,Header:(0,r.jsxs)(u.d6,{className:S.isKilled?"faded":"",children:[(0,r.jsxs)(u.eB,{orientation:"horizontal",larger:!0,children:[(0,r.jsx)(w.A,{coins:S.coins,className:"icon"}),(0,r.jsxs)(u.hE,{children:[O?n:(0,r.jsx)(K(),{href:`${T.Rh.curve}/stake/${S.blockchainId}/${S.convexPoolData.id}`,children:n}),"ethereum"===e&&k.tZ.includes(a)&&(0,r.jsx)("span",{className:"synthetix-warning-icon-container",children:(0,r.jsx)(ea.A,{})})]})]}),(0,r.jsx)(u.eB,{children:(0,r.jsxs)(u.UC,{children:[(0,r.jsx)("span",{className:"small",children:"$"}),void 0===j?"–":(0,r.jsx)(r.Fragment,{children:(0,f.sz)(j)})]})}),(0,r.jsx)(u.eB,{children:(0,r.jsxs)(u.UC,{children:[M||R?"–":(0,r.jsxs)("span",{children:[(0,f.o)(y.cumulativeApy),(0,r.jsxs)("span",{className:"small",children:["%",S.usesHarvester&&(0,r.jsxs)(r.Fragment,{children:[" ","(proj. ",(0,f.o)(g),"%)"]})]}),(0,r.jsx)(h.A,{pool:S,poolName:n,baseApy:D,crvApy:C,crvBoost:N,additionalRewards:P,cvxApy:_,cumulativeApy:g,currentAprData:y,rewardsPendingHarvest:z}),S.usesHarvester&&z.length>0&&(0,r.jsx)(J.A,{}),(S.gaugeStatus?.rewardsNeedNudging||S.gaugeStatus?.areCrvRewardsStuckInBridge)&&(0,r.jsx)(Z.A,{pool:S})]}),null!=N&&!R&&(0,r.jsx)(l.A,{className:"vecrv-boost-chip",size:"small",variant:"outlined",label:(0,r.jsxs)(r.Fragment,{children:["veCRV boost: ",(0,f.kW)((0,t.A)(N)),"x"]})}),void 0!==S.pointsData&&(0,r.jsx)("span",{className:"points-campaigns",children:S.pointsData.map(e=>(0,r.jsx)(en.A,{pointsData:e},e.platform))}),!!E&&(0,r.jsx)(A,{fraxPool:E,cumulativeApy:y.cumulativeApy}),H&&(0,r.jsx)(B,{fxpPool:W,currentAprData:y})]})}),(0,r.jsx)(u.eB,{children:(0,r.jsxs)(u.UC,{children:[void 0===i?"–":(0,r.jsx)(r.Fragment,{children:(0,f.kW)(i,2)})," ",(0,r.jsx)("span",{className:"small",children:o}),void 0!==p&&(0,r.jsxs)(u.UC,{discreet:!0,children:[" ≈ ",(0,r.jsx)("span",{className:"small",children:"$"}),(0,f.sz)(p,2)]}),m?.gt(0)&&(0,r.jsx)(L.A,{stakableBalance:m})]})}),(0,r.jsx)(u.eB,{children:(0,r.jsxs)(u.UC,{children:[(0,r.jsx)("span",{className:"small",children:"$"}),void 0===b?"–":(0,r.jsx)(r.Fragment,{children:(0,f.sz)(b,2)})]})})]}),Content:(0,r.jsx)(u.Bo,{children:(0,r.jsx)(x.A,{labels:I?er.slice(1):er,panels:I?es.slice(1):es})})},a):null};es.propTypes={networkChoice:i().oneOf(p.Ki).isRequired,convexPoolId:i().number.isRequired,name:i().string.isRequired,lpTokenSymbol:i().string.isRequired,stakedBalance:i().instanceOf(t.A),stakedBalanceUsdValue:i().instanceOf(t.A),poolEarnedUsdValue:i().instanceOf(t.A),totalLockedUsdValue:i().instanceOf(t.A),currentAprData:i().shape({cumulativeApy:i().instanceOf(t.A),isPendingHarvest:i().bool,baseApy:i().oneOfType([i().string,i().number]),crvApy:i().instanceOf(t.A),cvxApy:i().instanceOf(t.A),additionalRewards:i().array}),cumulativeApy:i().instanceOf(t.A),isPendingHarvest:i().bool,expanded:i().bool,isInsideStandaloneStakePage:i().bool};let et=s.memo(es)},13835:(e,a,n)=>{"use strict";n.d(a,{A:()=>d});var r=n(67141),s=n(17654),t=n.n(s),o=n(21080),i=n(60920);let l=t()((e,a,n)=>{let r=e.map(e=>{let r=a?.[e.stakingTokenContractKey],s=a?.[e.underlyingTokenContractKey],t=n?.get(e.curvePool.address),o=void 0!==r&&void 0!==t?r.times(t):void 0,i=void 0!==s&&void 0!==t?s.times(t):void 0;return{...e,stakedBalance:r,stakedBalanceUsdValue:o,stakedBalanceUsdValueNumber:o?.toNumber()||0,stakableBalance:s,stakableBalanceUsdValue:i,stakableBalanceUsdValueNumber:i?.toNumber()||0}});return{appendedDataCacheIdentifier:r.map(({stakedBalanceUsdValue:e,stakableBalanceUsdValue:a})=>`${e}-${a}`).join(";"),poolsWithDeposits:r}}
10,{normalizer:([e,a,n])=>`${e.length}-${Object.values(a).join()}-${typeof n}`,maxAge:6e4}),d=e=>{let a=(0,r.useContext)(i.A);return l(e,(0,r.useContext)(o.A),a)}},14242:(e,a,n)=>{"use strict";var r=n(58773);a.A=void 0;var s=r(n(10541)),t=n(66305);a.A=(0,s.default)((0,t.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},26642:(e,a,n)=>{"use strict";n.d(a,{A:()=>d});var r=n(66305),s=n(96295),t=n.n(s),o=n(67141),i=n(80543),l=n(4303);let d=({pointsData:{platform:e,multiplier:a,dashboardLink:n,platformImageId:s}})=>{let[d,c]=(0,o.useState)(!1),p=(0,o.useCallback)(e=>{e.preventDefault(),c(!0)},[c]),u=(0,o.useCallback)(e=>{e.preventDefault(),c(!1)},[c]),x=(0,o.useCallback)(e=>{e.stopPropagation(),null===e.target.closest(".modal-container")&&u(e)},[u]),h="dTRINITY"!==e;return(0,r.jsxs)("span",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:[(0,r.jsx)("div",{onClick:p,className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]])+" "+`clickable-container ${h?"":"multiplier-hidden"}`,children:(0,r.jsxs)("span",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:[(0,r.jsx)("img",{src:`https://cdn.jsdelivr.net/gh/curvefi/curve-assets/platforms/${s}`,className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]])}),h?` ${a}x`:""]})}),(0,r.jsx)(l.A,{open:d,onClose:u,onClick:x,fullWidth:!0,children:(0,r.jsxs)("div",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]])+" modal-container",children:["Fraxtal"===e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]])+" title",children:"Fraxtal FXTL Points"}),(0,r.jsx)("p",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:"FXTL are points used to reward participation in the Fraxtal ecosystem. Providing liquidity in select pools on Convex is one of the activities being rewarded. You can see each pool’s FXTL multiplier displayed right next to its other APR figures. They can change every epoch."}),(0,r.jsxs)("p",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:["More information about FXTL points: ",(0,r.jsx)("a",{href:"https://docs.frax.com/fraxtal/fraxtal-incentives/fraxtal-point-system",target:"_blank",rel:"noopener noreferrer",className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:"https://docs.frax.com/fraxtal/fraxtal-incentives/fraxtal-point-system"})]}),(0,r.jsxs)("p",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:["View your FXTL points balance, and learn more about multipliers: ",(0,r.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:n})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]])+" title",children:[e," Points"]}),(0,r.jsxs)("p",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:["Providing liquidity in select pools on Convex is rewarded with ",e," points."]}),(0,r.jsxs)("p",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:["More information about these points: ",(0,r.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:n})]})]}),(0,r.jsx)("p",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:(0,r.jsxs)("i",{className:t().dynamic([["bc7a49d59857ebec",[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque]]]),children:["Note: Convex is not affiliated with these points campaigns, and does not guarantee their accuracy. Please contact ",e," for any question about these points."]})})]})}),(0,r.jsx)(t(),{id:"bc7a49d59857ebec",dynamic:[i.Tj.backgroundLighterDarkOpaque,i.Tj.backgroundLighterDarkOpaque],children:`.clickable-container.__jsx-style-dynamic-selector{display:flex;margin-left:-4px;margin-bottom:-2px;align-items:center;border-radius:10px;border:1px dashed transparent;height:20px;padding:1px;box-sizing:border-box;background-color:${i.Tj.backgroundLighterDarkOpaque};color:#fff;font-size:13px;font-weight:500;cursor:pointer;background-clip:content-box;font-size:12px;line-height:18px;font-weight:400;width:fit-content}.clickable-container.__jsx-style-dynamic-selector>span.__jsx-style-dynamic-selector{padding-left:2px;padding-right:5px}.clickable-container.multiplier-hidden.__jsx-style-dynamic-selector>span.__jsx-style-dynamic-selector{padding-right:2px}.clickable-container.__jsx-style-dynamic-selector img.__jsx-style-dynamic-selector{height:14px;margin-bottom:-3px;border-radius:50%}.clickable-container.__jsx-style-dynamic-selector:hover{border-color:${i.Tj.backgroundLighterDarkOpaque}}.modal-container.__jsx-style-dynamic-selector{padding:25px}.title.__jsx-style-dynamic-selector{font-size:16px;font-weight:700;text-align:center}.modal-container.__jsx-style-dynamic-selector p.__jsx-style-dynamic-selector:last-child{margin-bottom:0}`})]})}},27083:e=>{"use strict";e.exports=JSON.parse('[{"user":"0xfa760444a229e78a50ca9b3779f4ce4cce10e170","lpToken":"0x3A283D9c08E8b55966afb64C515f5143cf907611"}]')},28169:(e,a,n)=>{"use strict";n.d(a,{A:()=>em});var r=n(66305),s=n(67141),t=n(37851),o=n(58511),i=n.n(o),l=n(66671),d=n(10908),c=n(95589),p=n(12553),u=n(16064),x=n(89606),h=n(43905),m=n(96295),j=n.n(m),b=n(17654),y=n.n(b),f=n(52387),g=n(29674),k=n(91993),T=n(16019),v=n(56474),A=n(47982),L=n(80543),w=n(69025),N=n(34668);let D=y()((e,a)=>({min:0,max:a,valueLabelDisplay:"off",sliderValueDisplay:a=>{let n,s,t;return n=+a+ +e,s=(0,N.T9)(86400*a,0,"more "),t=(0,N.T9)(86400*n,0),(0,r.jsxs)(r.Fragment,{children:["Extend lock duration to ",(0,r.jsx)(v.A,{arrow:!0,title:`= ${a} more days`,children:(0,r.jsx)("span",{className:"highlight help",children:s})})," (",(0,r.jsx)(v.A,{arrow:!0,title:`= ${n} days total`,children:(0,r.jsxs)("span",{className:"highlight help",children:[t," total"]})}),")"]})},marks:[{value:0,label:"0 day"},a>1&&a<365?{value:a,label:`${a} days`}:null,a>=365?{value:365,label:"1 year"}:null,a>365&&a<730?{value:a,label:`${(0,w.$Z)((0,t.A)(a/365),1)} years`}:null,a>=730?{value:730,label:"2 years"}:null,a>730?{value:a,label:`${(0,w.$Z)((0,t.A)(a/365),1)} years`}:null].filter(e=>null!==e),defaultValue:0}),{max:2}),C=({pool:e,vault:a,kekId:n})=>
10{let[t,o]=(0,s.useState)(!1),i=(0,s.useCallback)(()=>{o(!t)},[t]),l=a.lockedStakesOf.find(e=>e.kekId===n),d=Math.max(l.endingTimestamp-(0,N.j2)(),0),c=(0,w.BU)(d/86400,0),p=D(c,e.maxLpLockDays-c);return(0,r.jsxs)("div",{className:j().dynamic([["9c0380c950f647cc",[L.Tj.blueHover,L.Tj.blue,L.Tj.backgroundLessLight]]])+" container",children:[(0,r.jsx)(T.A,{onClick:i,size:"small",selected:t,className:t?"open":"",color:"secondary",children:"+"}),t&&(0,r.jsx)("div",{className:j().dynamic([["9c0380c950f647cc",[L.Tj.blueHover,L.Tj.blue,L.Tj.backgroundLessLight]]])+" increase-duration-dropdown",children:(0,r.jsx)("div",{className:j().dynamic([["9c0380c950f647cc",[L.Tj.blueHover,L.Tj.blue,L.Tj.backgroundLessLight]]])+" action-form-container",children:(0,r.jsx)(A.A,{noInput:!0,size:"small",actionType:"extendVaultLockDuration",...p,maxSelectable:Number(e.maxLpLockDays),extraData:{actionPool:e,vault:a,kekId:n,lockInfo:l}})})}),(0,r.jsx)(j(),{id:"9c0380c950f647cc",dynamic:[L.Tj.blueHover,L.Tj.blue,L.Tj.backgroundLessLight],children:`.container.__jsx-style-dynamic-selector{position:relative;width:max-content;display:inline-block;margin-left:10px}.container.__jsx-style-dynamic-selector>.MuiButtonBase-root{min-width:0;font-size:17px;width:21px;height:21px;border-radius:50%;line-height:1}.container.__jsx-style-dynamic-selector .MuiButtonBase-root.open{background-color:${L.Tj.blueHover};color:#fff}.increase-duration-dropdown.__jsx-style-dynamic-selector{position:absolute;right:-20px;top:28px;z-index:6;width:550px;max-width:80vw;padding:20px;background:#fff;transition:none!important;border-radius:10px;border:2px solid ${L.Tj.blue}}.increase-duration-dropdown.__jsx-style-dynamic-selector p.__jsx-style-dynamic-selector{width:max-content;margin-top:0;padding:10px;border-radius:10px;background-color:${L.Tj.backgroundLessLight}}.increase-duration-dropdown.__jsx-style-dynamic-selector .highlight{text-decoration:underline;font-family:monospace;font-weight:bold}.increase-duration-dropdown.__jsx-style-dynamic-selector .help{cursor:help}.increase-duration-dropdown.__jsx-style-dynamic-selector .help:not(.highlight){border-bottom:1px dashed}.increase-duration-dropdown.__jsx-style-dynamic-selector .form-container .container{margin-top:0}.increase-duration-dropdown.__jsx-style-dynamic-selector .form-container.has-children{display:block}.increase-duration-dropdown.__jsx-style-dynamic-selector .form-container .buttons-container.buttons-container{width:100%;margin-top:10px;text-align:right}.container.__jsx-style-dynamic-selector .number{font-family:monospace}`})]})};C.propTypes={pool:i().object.isRequired,vault:i().object.isRequired,kekId:i().string.isRequired};let _=({pool:e,vault:a,lockedStakesOf:n,sortData:o,SortHeader:i,setLockDurationDefaultValue:l,lockDurationSliderValue:d,getExistingLockMatchingSliderDays:c,canAddLiquidityToLock:p})=>(0,r.jsxs)("table",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:[(0,r.jsx)("thead",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:(0,r.jsxs)("tr",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:[(0,r.jsx)("td",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:(0,r.jsx)(i,{sortBy:"usdTotalNumber",inverseDir:!0,className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:"Liquidity locked"})}),(0,r.jsx)("td",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:(0,r.jsx)(i,{sortBy:"lockMultiplier",inverseDir:!0,className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:"Boost"})}),(0,r.jsx)("td",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:(0,r.jsx)(i,{sortBy:"totalDuration",className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:"Lock duration total"})}),(0,r.jsx)("td",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:(0,r.jsx)(i,{sortBy:"endingTimestamp",className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:"Lock duration left"})}),(0,r.jsx)("td",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])})]})}),(0,r.jsx)("tbody",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:o(n).map(n=>{let{kekId:o,startTimestamp:i,endingTimestamp:u,liquidity:x,usdTotal:h,lockMultiplier:m}=n,b=(0,N.j2)(),y=u-b<0,g=e.stakesUnlocked,k=(0,t.A)(y?1:m),A=(0,t.A)(e.veFXSMultiplier),D=e.baseBoost,_=A.plus(k).plus(D),P=!g&&e.active&&Number(a.version)>=3&&("Erc20Baic"===e.vaultType||"Convex"===e.vaultType)&&b-i>604800,q=(0,s.useCallback)(()=>{l((0,N.wT)(u))},[l]),O=o===c(a,e,d)?.kekId;return(0,r.jsxs)("tr",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" "+((O?"is-selected":"")||""),children:[(0,r.jsx)("td",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:(0,r.jsxs)("div",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" td-content",children:[(0,w.sz)(x),(0,r.jsxs)("span",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" amount-usd",children:[" ","≈ ",(0,r.jsx)("span",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" small",children:"$"}),(0,w.sz)(h)]}),p(n,e)&&(0,r.jsx)(v.A,{title:(0,r.jsxs)(r.Fragment,{children:[O?"Add more":"Click to add more"," liquidity to this lock using the form below.",(0,r.jsx)("br",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])}),"This lock’s boost and duration left will remain unchanged."]}),arrow:!0,placement:"right",children:(0,r.jsx)("span",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" add-liquidity-button-container",children:(0,r.jsx)(T.A,{onClick:q,size:"small",color:"primary",className:"add-liquidity-button",disabled:O,children:"+"})})})]})}),(0,r.jsx)("td",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:(0,r.jsxs)("div",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" td-content",children:[D>0&&(0,r.jsxs)(r.Fragment,{children:[D,"x",(0,r.jsx)("span",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" boost-label",children:" (base)"})," + "]}),(0,w.$Z)(A,3),"x",(0,r.jsx)("span",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" boost-label",children:" (veFXS)"})," + ",(0,w.$Z)(k,3),"x",(0,r.jsx)("span",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" boost-label",children:" (time)"})," = ",(0,w.$Z)(_,3),"x"]})}),(0,r.jsx)("td",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:(0,r.jsx)("div",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" td-content",children:(0,N.T9)(u,i)})}),(0,r.jsx)("td",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:(0,r.jsx)("div",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" td-content",children:y?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" expired",children:"Expired"}),P&&(0,r.jsx)(C,{pool:e,vault:a,kekId:o})]}):g?(0,r.jsx)("span",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" expired",children:"Unlocked"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.A,{arrow:!0,placement:"left",title:`Lock ends on ${(0,N.Eb)(u)}`,children:(0,r.jsx)("span",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" end-time",children:(0,N.T9)(86400*Math.trunc(u/86400),86400*Math.trunc(b/86400))})}),P&&(0,r.jsx)(C,{pool:e,vault:a,kekId:o})]})})}),(0,r.jsx)("td",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]]),children:(0,r.jsx)("div",{className:j().dynamic([["9d838b44006d42fb",[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue]]])+" td-content",children:(y||g)&&("convex"===e.type?3===e.id&&a.claimableRewardsUsdTotal.gt(10)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.A,{actionType:"claimAndWithdrawFromConvexVaultAndUnwrapForPoolId3",extraData:{vault:a,kekId:o},size:"small",color:"primary",customCopy:[`Claim and withdraw${y?"":" unlocked"}`]}),a.claimableRewardsUsdTotal.gt(10)]}):(0,r.jsx)(f.A,{actionType:"withdrawFromConvexVaultAndUnwrap",extraData:{vault:a,kekId:o},size:"small",color:"primary",customCopy:[`Withdraw${y?"":" unlocked"}`]}):(0,r.jsx)(f.A,{actionType:"withdrawFromVault",extraData:{vault:a,kekId:o},size:"small",color:"primary",customCopy:[`Withdraw${y?"expired":" unlocked"}`]}))})})]},o)})}),(0,r.jsx)(j(),{id:"9d838b44006d42fb",dynamic:[L.Tj.halfTransparentBlue,L.Tj.red,L.Tj.blue],children:`table.__jsx-style-dynamic-selector{border-collapse:collapse}.is-selected.__jsx-style-dynamic-selector{position:relative}.is-selected.__jsx-style-dynamic-selector .td-content.__jsx-style-dynamic-selector{position:relative}.is-selected.__jsx-style-dynamic-selector td.__jsx-style-dynamic-selector:first-child::before{content:"";position:absolute;
10left:-10px;right:-10px;top:1px;bottom:1px;background-color:${L.Tj.halfTransparentBlue};border-radius:6px}td.__jsx-style-dynamic-selector{padding-right:30px;padding-top:5px;padding-bottom:5px}table.__jsx-style-dynamic-selector thead.__jsx-style-dynamic-selector td.__jsx-style-dynamic-selector .sort-trigger .MuiSvgIcon-root.sort-icon{width:.8em}table.__jsx-style-dynamic-selector .end-time{border-bottom:1px dashed;cursor:help}table.__jsx-style-dynamic-selector .expired{color:${L.Tj.red}}table.__jsx-style-dynamic-selector .amount-usd,table.__jsx-style-dynamic-selector .boost-label{font-size:.8em;opacity:.5}table.__jsx-style-dynamic-selector .small{font-size:.8em}table.__jsx-style-dynamic-selector .add-liquidity-button{margin-left:10px;min-width:0;font-size:17px;width:21px;height:21px;border-radius:50%;line-height:1}table.__jsx-style-dynamic-selector .add-liquidity-button[disabled]{background-color:${L.Tj.blue};color:#fff;opacity:.5}table.__jsx-style-dynamic-selector .add-liquidity-button-container{display:inline-block;height:21px}`})]});_.propTypes={pool:i().object.isRequired,vault:i().object.isRequired,lockedStakesOf:i().array.isRequired,sortData:i().func.isRequired,SortHeader:i().func.isRequired,lockDurationSliderValue:i().number.isRequired,getExistingLockMatchingSliderDays:i().func.isRequired,canAddLiquidityToLock:i().func.isRequired};let P=(0,k.A)(_,{defaultSortBy:"lockMultiplier",defaultSortDir:"desc",sortBy2:"endingTimestamp",sortDir2:"asc"});var q=n(73325),O=n.n(q),S=n(29099),I=n(66629);let B=JSON.parse('{"0":{"type":"erc20","subtype":"vesper","depositInfo":{"poolLinkUrl":"https://app.vesper.finance/eth/pools/0xc14900dFB1Aa54e7674e1eCf9ce02b3b35157ba5"}},"1":{"type":"temple"},"2":{"type":"erc20","subtype":"aave","depositInfo":{"poolLinkUrl":"https://app.aave.com/reserve-overview/?underlyingAsset=0x853d955acef822db058eb8505911ed77f175b99e&marketName=proto_mainnet"}},"3":{"type":"convex"},"4":{"type":"convex"},"5":{"type":"fraxswap","depositInfo":{"poolLinkUrl":"https://app.frax.finance/swap/liquidity?from=0x853d955aCEf822Db058eb8505911ED77F175b99e&to=0x579CEa1889991f68aCc35Ff5c3dd0621fF29b0C9"}},"6":{"type":"fraxswap","depositInfo":{"poolLinkUrl":"https://app.frax.finance/swap/liquidity?from=0x853d955aCEf822Db058eb8505911ED77F175b99e&to=0x11EBe21e9d7BF541A18e1E3aC94939018Ce88F0b"}},"7":{"type":"fraxswap","depositInfo":{"poolLinkUrl":"https://app.frax.finance/swap/liquidity?from=0x853d955aCEf822Db058eb8505911ED77F175b99e&to=0x0f2D719407FdBeFF09D87557AbB7232601FD9F29"}},"9":{"type":"convex"},"10":{"type":"fraxswap","depositInfo":{"poolLinkUrl":"https://app.frax.finance/swap/liquidity?from=0x853d955aCEf822Db058eb8505911ED77F175b99e&to=0xc2544A32872A91F4A553b404C6950e89De901fdb"}},"11":{"type":"fraxswap","depositInfo":{"poolLinkUrl":"https://app.frax.finance/swap/liquidity?from=0x853d955aCEf822Db058eb8505911ED77F175b99e&to=0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0"}},"12":{"type":"fraxswap","depositInfo":{"poolLinkUrl":"https://app.frax.finance/swap/liquidity?from=0x853d955aCEf822Db058eb8505911ED77F175b99e&to=0x64aa3364F17a4D01c6f1751Fd97C2BD3D7e7f1D5"}},"13":{"type":"fraxswap","depositInfo":{"poolLinkUrl":"https://app.frax.finance/swap/liquidity?from=0x853d955aCEf822Db058eb8505911ED77F175b99e&to=0xC91a71A1fFA3d8B22ba615BA1B9c01b2BBBf55ad"}},"14":{"type":"convex"},"15":{"type":"convex"},"16":{"type":"convex"},"17":{"type":"convex"},"18":{"type":"convex"},"19":{"type":"convex"},"20":{"type":"convex"},"21":{"type":"convex"},"22":{"type":"convex"},"23":{"type":"convex"},"24":{"type":"convex"},"25":{"type":"convex"},"26":{"type":"convex"},"27":{"type":"convex"},"28":{"type":"convex"},"29":{"type":"convex"},"30":{"type":"fraxswap","depositInfo":{"poolLinkUrl":"https://app.frax.finance/swap/liquidity?from=0x853d955aCEf822Db058eb8505911ED77F175b99e&to=0x11EBe21e9d7BF541A18e1E3aC94939018Ce88F0b"}},"31":{"type":"fraxswap","depositInfo":{"poolLinkUrl":"https://app.frax.finance/swap/liquidity?from=0x853d955aCEf822Db058eb8505911ED77F175b99e&to=0x0f2D719407FdBeFF09D87557AbB7232601FD9F29"}},"32":{"type":"fraxswap","depositInfo":{"poolLinkUrl":"https://app.frax.finance/swap/liquidity?from=0x853d955aCEf822Db058eb8505911ED77F175b99e&to=0x579CEa1889991f68aCc35Ff5c3dd0621fF29b0C9"}},"33":{"type":"convex"},"34":{"type":"convex"},"35":{"type":"convex"},"36":{"type":"convex"},"37":{"type":"convex"},"38":{"type":"convex"},"40":{"type":"convex"},"41":{"type":"convex"},"42":{"type":"convex"},"43":{"type":"convex"},"44":{"type":"convex"},"45":{"type":"convex"},"46":{"type":"convex"},"47":{"type":"convex"},"48":{"type":"convex"},"49":{"type":"convex"},"50":{"type":"convex"},"51":{"type":"convex"},"52":{"type":"convex"},"53":{"type":"convex"},"54":{"type":"convex"},"55":{"type":"convex"},"56":{"type":"convex"},"57":{"type":"convex"}
10,"58":{"type":"convex"},"59":{"type":"convex"},"60":{"type":"convex"},"61":{"type":"convex"},"62":{"type":"convex"},"63":{"type":"convex"},"64":{"type":"convex"},"65":{"type":"convex"},"66":{"type":"convex"},"67":{"type":"convex"},"68":{"type":"convex"},"69":{"type":"convex"},"70":{"type":"convex"},"71":{"type":"convex"},"72":{"type":"convex"},"73":{"type":"convex"},"74":{"type":"convex"},"75":{"type":"convex"}}');var R=n(31804);let M=["stakingToken","stakingAddress"],F=[{description:"pool must have a valid `type` property",failsIfFn:(e,a)=>!Array.from(Object.keys(a)).includes(e.type)},{description:"pool must have a valid `underlyingToken.contractToQuery` property",failsIfFn:e=>!M.includes(e.underlyingToken?.contractToQuery)},{description:"pool must have either `underlyingToken.addressMethodName` or `underlyingToken.addressesMethodNames` properties",failsIfFn:e=>!e.underlyingToken?.addressMethodName&&!e.underlyingToken?.addressesMethodNames},{description:"pool must have a valid `underlyingToken.addressMethodName` property",failsIfFn:e=>e.underlyingToken?.addressMethodName&&"string"!=typeof e.underlyingToken.addressMethodName},{description:"pool must have a valid `underlyingToken.addressesMethodNames` property",failsIfFn:e=>e.underlyingToken?.addressesMethodNames&&!Array.isArray(e.underlyingToken.addressesMethodNames)},{description:"pool must have a `depositInfo.poolLinkText` property set alongside its `depositInfo.poolLinkUrl`",failsIfFn:e=>e.depositInfo?.poolLinkUrl&&!e.depositInfo?.poolLinkText}],$={erc20:{type:"erc20",underlyingToken:{contractToQuery:"stakingToken",addressesMethodNames:null,addressMethodName:"token"},depositInfo:{text:"Stake your [LP_SYMBOL] tokens here."}},univ3:{type:"univ3",underlyingToken:{contractToQuery:"stakingAddress",addressesMethodNames:["uni_token0","uni_token1"],addressMethodName:null,virtualPriceMethodName:null},depositInfo:{text:"Stake your [LP_SYMBOL] tokens here."}},temple:{type:"temple",underlyingToken:{contractToQuery:"stakingToken",addressesMethodNames:["token0","token1"],addressMethodName:null,virtualPriceMethodName:null},depositInfo:{text:"Add liquidity to the [UNDERLYING_SYMBOLS] [POOL_LINK] pool using the form above, then stake your [LP_SYMBOL] tokens here.",poolLinkUrl:"https://templedao.link/dapp",poolLinkText:"Temple"}},fraxswap:{type:"fraxswap",underlyingToken:{contractToQuery:"stakingToken",addressesMethodNames:["token0","token1"],addressMethodName:null,virtualPriceMethodName:null},depositInfo:{text:"Deposit liquidity into the [POOL_LINK], and then stake your [UNDERLYING_SYMBOLS] tokens here.",poolLinkUrl:"https://app.frax.finance/swap/liquidity",poolLinkText:"Fraxswap [UNDERLYING_SYMBOLS] pool"}},convex:{type:"convex",underlyingToken:{contractToQuery:"stakingToken",addressesMethodNames:null,addressMethodName:"curveToken",virtualPriceMethodName:null},depositInfo:{text:"Deposit liquidity into the [POOL_LINK] (without staking in the Curve gauge), and then stake your [UNDERLYING_SYMBOL] tokens here.",poolLinkUrl:void 0,poolLinkText:"Curve [UNDERLYING_SYMBOLS] pool"}}},U={vesper:{underlyingToken:{addressMethodName:"token",virtualPriceMethodName:"pricePerShare"},depositInfo:{text:"Deposit liquidity into the [POOL_LINK], and then stake your [LP_SYMBOL] tokens here.",poolLinkUrl:"https://app.vesper.finance/eth/pools/",poolLinkText:"Vesper Finance [UNDERLYING_SYMBOL] pool"}},aave:{underlyingToken:{addressMethodName:"UNDERLYING_ASSET_ADDRESS"},depositInfo:{text:"Deposit FRAX into [POOL_LINK], and then stake your aFRAX tokens here.",poolLinkUrl:"https://app.aave.com/",poolLinkText:"Aave"}}},z=(0,I.pl)(Array.from(Object.entries(B)).map(([e,a])=>[e,{...$[a.type],...a.subtype?U[a.subtype]:{},...a,underlyingToken:{...$[a.type].underlyingToken,...a.subtype?U[a.subtype].underlyingToken:{},...a.underlyingToken},depositInfo:{...$[a.type].depositInfo,...a.subtype?U[a.subtype].depositInfo:{},...a.depositInfo}}]));((e,a)=>{if(!R.HL)return;let n=(0,I.ed)(Array.from(Object.entries(e)).map(([e,n])=>F.filter(({failsIfFn:e})=>e(n,a)).map(({description:a})=>`${a} [pool id: ${e}]`)));if(n.length>0)throw Error(`Error${n.length>
101?"s":""} found in FraxPoolsMetaData config:
11
12${n.join("\n")}
13`)})(z,$);let E=({poolData:e})=>{let a=e.id,{depositInfo:{text:n,poolLinkUrl:s,poolLinkText:t}}=z[a],o="convex"===e.type?e.underlyingCurvePool.poolUrl:s,i=(0,S.replaceSymbolsPlaceholders)(n,a),l=O()(i,"[POOL_LINK]",()=>(0,r.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:(0,S.replaceSymbolsPlaceholders)(t,a)}));return(0,r.jsx)("p",{children:l})};E.propTypes={poolData:i().object.isRequired};var V=n(93058),G=n(527),W=n(9472),H=n(64675);let K=({coins:e,wrapperCoin:a,nftPositions:n,onChange:s,selectedTokenId:t=null})=>(0,r.jsxs)("span",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]])+" container",children:[(0,r.jsxs)("table",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]]),children:[(0,r.jsxs)("tr",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]]),children:[(0,r.jsx)("td",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]])}),(0,r.jsx)("td",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]]),children:"Token Id"}),(0,r.jsx)("td",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]]),children:"USD value"}),(0,r.jsx)("td",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]]),children:(0,r.jsx)(T.A,{size:"small",className:"invisible-button-for-sizing-purposes",disabled:!0,children:"Selected"})})]}),0===n.length&&(0,r.jsx)("tr",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]]),children:(0,r.jsx)("td",{colSpan:4,className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]]),children:"None"})}),n.map(({tokenId:n,balanceUsd:o})=>(0,r.jsxs)("tr",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]]),children:[(0,r.jsx)("td",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]]),children:(0,r.jsx)(h.A,{coins:e,wrapperCoin:a})}),(0,r.jsx)("td",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]])+" token-id",children:n}),(0,r.jsxs)("td",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]]),children:["≈ ",(0,r.jsx)("span",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]])+" small",children:"$"}),(0,w.sz)(o)]}),(0,r.jsx)("td",{className:j().dynamic([["bd3a8f319bb13a0e",[L.Tj.backgroundLight]]])+" button-container",children:t===n?(0,r.jsx)(T.A,{size:"small",color:"primary",disabled:!0,children:"Selected"}):(0,r.jsx)(T.A,{size:"small",color:"primary",onClick:()=>s(n),children:"Select"})})]},n))]}),(0,r.jsx)(j(),{id:"bd3a8f319bb13a0e",dynamic:[L.Tj.backgroundLight],children:`table.__jsx-style-dynamic-selector{width:100%;min-width:fit-content;border-collapse:collapse}td.__jsx-style-dynamic-selector{height:40px;padding:0 5px}tr.__jsx-style-dynamic-selector:nth-child(2n) td.__jsx-style-dynamic-selector{background:${L.Tj.backgroundLight}}.button-container.__jsx-style-dynamic-selector:last-child{width:1px;text-align:center}.small.__jsx-style-dynamic-selector{font-size:.8em}.token-id.__jsx-style-dynamic-selector{font-family:monospace}.container.__jsx-style-dynamic-selector .invisible-button-for-sizing-purposes{visibility:hidden}`})]});K.propTypes={coins:i().array.isRequired,wrapperCoin:i().object.isRequired,nftPositions:i().arrayOf(i().shape({tokenId:i().number.isRequired,balanceUsd:i().instanceOf(t.A).isRequired})).isRequired,onChange:i().func.isRequired,selectedTokenId:i().string};var Y=n(37617);let X=({defaultValue:e=null,extraData:a={},onChange:n=()=>{},label:o,actionType:i,FormContainerChildren:l})=>{let{nftPositionsHook:p,...u}=d.kl[i],x=p(a),[h,m]=(0,s.useState)(e);return(0,r.jsxs)("div",{className:"jsx-7d6a831d759cfb80 container",children:[(0,r.jsxs)("div",{className:`jsx-7d6a831d759cfb80 form-container ${void 0!==l?"has-children":""}`,children:[(0,r.jsx)("div",{className:"jsx-7d6a831d759cfb80 input-container",children:(0,r.jsx)("div",{className:"jsx-7d6a831d759cfb80 input-wrapper",children:(0,r.jsx)(K,{coins:a.actionPool.underlyingCoins,wrapperCoin:c.Ay.uni,nftPositions:x.map(({tokenId:e,balance:n})=>({tokenId:e,balanceUsd:(0,t.A)(n).times(a.actionPool.stakingTokenUsdPrice)})),onChange:e=>{m(e),n(e)},selectedTokenId:h})})}),void 0!==l&&(0,r.jsx)("div",{className:"jsx-7d6a831d759cfb80 children-wrapper",children:l}),(0,r.jsx)("div",{className:"jsx-7d6a831d759cfb80 buttons-container",children:(0,r.jsx)(Y.A,{type:"univ3",selectedTokenId:h,actionType:i,extraData:a})})]}),(0,r.jsx)(j(),{id:"7d6a831d759cfb80",children:".form-container.jsx-7d6a831d759cfb80{width:100%;max-width:750px;display:grid;grid-template-columns:auto fit-content(50%)}.form-container.has-children.jsx-7d6a831d759cfb80{row-gap:30px}.form-container.has-children.jsx-7d6a831d759cfb80 .buttons-container.jsx-7d6a831d759cfb80{grid-column:1/3;width:fit-content}.input-container.jsx-7d6a831d759cfb80{flex:1 1 0;align-self:flex-end;margin-right:24px;padding-top:20px}.input-wrapper.jsx-7d6a831d759cfb80{position:relative}.input-container.jsx-7d6a831d759cfb80 .MuiTextField-root{box-sizing:border-box;width:100%}.input-container.jsx-7d6a831d759cfb80 .MuiInputBase-root{border-radius:10px}.input-container.jsx-7d6a831d759cfb80 .MuiInputBase-input{box-sizing:border-box;height:40px;padding:5px 42px 5px 10px;font-size:13px}.input-container.jsx-7d6a831d759cfb80 .MuiInputLabel-formControl{white-space:nowrap;transform:translate(14px,-9px)scale(.75)}.input-container.jsx-7d6a831d759cfb80 legend{visibility:hidden;max-width:none}.input-container.jsx-7d6a831d759cfb80 .MuiInputBase-root.Mui-focused legend{padding:0 4px}.input-container.jsx-7d6a831d759cfb80 .crypto-icon-container.jsx-7d6a831d759cfb80{position:absolute;right:10px;bottom:7px}.available-amount.jsx-7d6a831d759cfb80{position:absolute;right:6px;top:-18px;font-weight:400;font-size:13px}@media screen and (max-width:800px){.form-container.jsx-7d6a831d759cfb80{display:block}.input-container.jsx-7d6a831d759cfb80{align-self:auto;margin-right:0}.buttons-container.jsx-7d6a831d759cfb80{margin-top:14px}.form-container.has-children.jsx-7d6a831d759cfb80 .buttons-container.jsx-7d6a831d759cfb80{width:auto;margin-top:24px}}"})]})};X.propTypes={label:i().string.isRequired,actionType:i().string.isRequired,defaultValue:i().string,extraData:i().shape({actionPool:i().object}),onChange:i().func,FormContainerChildren:i().node};var J=n(91285),Z=n(46357);let Q=({label:e,balanceHook:a,inputCoin:n,defaultValue:s,extraData:t,onChange:o,onUseMaxValueChange:i,availableBalance:l,amount:d,useMaxValue:c})=>(0,r.jsx)("div",{className:"input-container",children:(0,r.jsx)("div",{className:"input-wrapper-wrapper",children:(0,r.jsxs)("div",{className:"input-wrapper",children:[(0,r.jsxs)("span",{className:"available-amount",children:[(0,r.jsx)("span",{children:"Available: "}),void 0===l?"–":(0,r.jsxs)("span",{children:[(0,w.kW)(l,2)," ",n.symbol]})]}),(0,r.jsx)(J.A,{label:e,value:c?l:d,onChange:e=>{o(e.target.value)},useMaxValue:c,onUseMaxValueChange:()=>{i(!c)},maxValue:l}),(0,r.jsx)("span",{className:"crypto-icon-container",children:(0,r.jsx)(Z.A,{coin:n})})]})})}),ee=({label:e,defaultValue:a="0",actionType:n,extraData:o={},onChange:i,FormContainerChildren:l})=>
13{if(void 0!==i)throw Error("ActionUniv2Form does not support onChange property");let{balanceHook:c,...p}=d.kl[n],{underlyingCoins:u,poolBalances:x}=o.actionPool;if(void 0===u||2!==u.length)throw Error("ActionUniv2Form requires its inputCoin to have an underlyingCoins property of length=2");let[h,m]=(0,s.useState)((0,I.j9)(u.length).map(()=>a)),[b,y]=(0,s.useState)((0,I.j9)(u.length).map(()=>!1)),f=u.map((e,a)=>c(o,a)),g=(0,t.A)(x[0]).div(x[1]),k=(e,a)=>{0===a?m([e,(0,t.A)(e).div(g).toFixed(4)]):m([(0,t.A)(e).times(g).toFixed(4),e])};return(0,r.jsxs)("div",{className:j().dynamic([["aff537aaff15afa6",[L.Tj.backgroundLight,L.Tj.backgroundLessLight]]])+" container",children:[(0,r.jsxs)("div",{className:j().dynamic([["aff537aaff15afa6",[L.Tj.backgroundLight,L.Tj.backgroundLessLight]]])+" "+`form-container ${void 0!==l?"has-children":""}`,children:[(0,r.jsx)("p",{className:j().dynamic([["aff537aaff15afa6",[L.Tj.backgroundLight,L.Tj.backgroundLessLight]]]),children:"Add liquidity to the pool:"}),(0,r.jsx)("div",{className:j().dynamic([["aff537aaff15afa6",[L.Tj.backgroundLight,L.Tj.backgroundLessLight]]])+" inputs-container",children:u.map((e,a)=>(0,r.jsx)(Q,{label:e.symbol,balanceHook:c,inputCoin:e,defaultValue:h[a],amount:h[a],useMaxValue:b[a],extraData:o,onChange:e=>k(e,a),onUseMaxValueChange:e=>{0===a?y([e,!0!==e&&b[1]]):y([!0!==e&&b[0],e]),!0===e&&k(f[a],a)},availableBalance:f[a]}))}),(0,r.jsxs)("p",{className:j().dynamic([["aff537aaff15afa6",[L.Tj.backgroundLight,L.Tj.backgroundLessLight]]])+" pool-rate",children:[(0,w.sz)(g)," ",(0,r.jsxs)("span",{className:j().dynamic([["aff537aaff15afa6",[L.Tj.backgroundLight,L.Tj.backgroundLessLight]]])+" small",children:[u[0].symbol," per ",u[1].symbol]}),(0,r.jsx)("br",{className:j().dynamic([["aff537aaff15afa6",[L.Tj.backgroundLight,L.Tj.backgroundLessLight]]])}),(0,w.sz)((0,t.A)(1).div(g))," ",(0,r.jsxs)("span",{className:j().dynamic([["aff537aaff15afa6",[L.Tj.backgroundLight,L.Tj.backgroundLessLight]]])+" small",children:[u[1].symbol," per ",u[0].symbol]})]}),void 0!==l&&(0,r.jsx)("div",{className:j().dynamic([["aff537aaff15afa6",[L.Tj.backgroundLight,L.Tj.backgroundLessLight]]])+" children-wrapper",children:l}),(0,r.jsx)("div",{className:j().dynamic([["aff537aaff15afa6",[L.Tj.backgroundLight,L.Tj.backgroundLessLight]]])+" buttons-container",children:(0,r.jsx)(Y.A,{actionType:n,amounts:h,availableBalances:f,useMaxValues:b,extraData:o})})]}),(0,r.jsx)(j(),{id:"aff537aaff15afa6",dynamic:[L.Tj.backgroundLight,L.Tj.backgroundLessLight],children:`.container.__jsx-style-dynamic-selector{position:relative;margin-top:20px;padding:0 20px 15px;border-radius:10px;background-color:${L.Tj.backgroundLight};border:4px solid ${L.Tj.backgroundLessLight};width:fit-content}.form-container.__jsx-style-dynamic-selector{width:100%;max-width:820px;display:grid;grid-template-columns:auto}.form-container.has-children.__jsx-style-dynamic-selector{row-gap:30px}.form-container.has-children.__jsx-style-dynamic-selector .buttons-container.__jsx-style-dynamic-selector{grid-column:1/3;width:fit-content}.form-container.__jsx-style-dynamic-selector .inputs-container{display:flex}.form-container.__jsx-style-dynamic-selector .input-container{flex:1 1 0;align-self:flex-end;margin-right:24px;padding-top:20px}.form-container.__jsx-style-dynamic-selector .input-container:last-child{margin-right:0}.form-container.__jsx-style-dynamic-selector .input-wrapper{position:relative}.form-container.__jsx-style-dynamic-selector .input-container .MuiTextField-root{box-sizing:border-box;width:100%}.form-container.__jsx-style-dynamic-selector .input-container .MuiInputBase-root{border-radius:10px}.form-container.__jsx-style-dynamic-selector .input-container .MuiInputBase-input{box-sizing:border-box;height:40px;padding:5px 42px 5px 10px;font-size:13px}.form-container.__jsx-style-dynamic-selector .input-container .MuiInputLabel-formControl{white-space:nowrap;transform:translate(14px,-9px)scale(.75)}.form-container.__jsx-style-dynamic-selector .input-container legend{visibility:hidden;max-width:none}.form-container.__jsx-style-dynamic-selector .input-container .Mu
13iInputBase-root.Mui-focused legend{padding:0 4px}.form-container.__jsx-style-dynamic-selector .input-container .crypto-icon-container{position:absolute;right:10px;bottom:7px}.form-container.__jsx-style-dynamic-selector .available-amount{position:absolute;right:6px;top:-18px;font-weight:400;font-size:13px}.pool-rate.__jsx-style-dynamic-selector{text-align:center}.small.__jsx-style-dynamic-selector{font-size:.8em}@media screen and (max-width:800px){.form-container.__jsx-style-dynamic-selector{display:block}.form-container.__jsx-style-dynamic-selector .input-container{align-self:auto;margin-right:0}.buttons-container.__jsx-style-dynamic-selector{margin-top:14px}.form-container.has-children.__jsx-style-dynamic-selector .buttons-container.__jsx-style-dynamic-selector{width:auto;margin-top:24px}}`})]})};ee.propTypes={label:i().string.isRequired,actionType:i().string.isRequired,defaultValue:i().string,extraData:i().shape({actionPool:i().object}),onChange:i().func,FormContainerChildren:i().node};var ea=n(64904);let en=(e,a,n)=>{let r=e?.lockedStakesOf?.filter(e=>er(e,a)&&(0,N.wT)(e.endingTimestamp)===n);if(r?.length>0)return r.sort(({lockMultiplier:e},{lockMultiplier:a})=>e>a?-1:+(e<a))[0]},er=(e,a)=>{let n=(0,N.j2)(),r=e.endingTimestamp-n<0,s=a.stakesUnlocked;return!r&&!s&&a.active},es=y()((e,a,n,s,o,i,l,d,c)=>({min:e,max:a,valueLabelDisplay:"off",sliderValueDisplay:e=>{let l,p,u,x,h;return p=void 0!==(l=en(d,c,e)),u=(0,N.T9)(86400*e,0),x=p?l.lockMultiplier:(0,t.A)(s<5?1+(n-1)*e/a:n*e/a),h=(0,t.A)(o).plus(x).plus(i),(0,r.jsxs)(r.Fragment,{children:[p?(0,r.jsxs)(r.Fragment,{children:["Adding to ",(0,r.jsx)("span",{className:"existing-lock-decorator",children:"existing lock"}),": ",(0,r.jsx)(v.A,{arrow:!0,placement:"right",title:`= ${e} days`,children:(0,r.jsx)("span",{className:"highlight help",children:u})})," left"]}):(0,r.jsxs)(r.Fragment,{children:["Deposit and lock tokens for ",(0,r.jsx)(v.A,{arrow:!0,placement:"right",title:`= ${e} days`,children:(0,r.jsx)("span",{className:"highlight help",children:u})})]}),(0,r.jsx)("br",{}),"Boost:"," ",i>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:"number",children:[i,"x"]}),(0,r.jsx)("span",{className:"boost-label",children:" (base)"})," + "]}),(0,r.jsxs)("span",{className:"number",children:[(0,w.$Z)((0,t.A)(o),3),"x"]}),(0,r.jsx)("span",{className:"boost-label",children:" (veFXS)"})," + ",(0,r.jsxs)("span",{className:"number",children:[(0,w.BU)(x,3),"x"]}),(0,r.jsx)("span",{className:"boost-label",children:" (time)"})," = ",(0,r.jsxs)("span",{className:"highlight",children:[(0,w.BU)(h,3),"x"]})]})},marks:[{value:e,label:`${e} ${e>1?"days":"day"}`},a>1&&a<365?{value:a,label:`${a} days`}:null,a>=365?{value:365,label:"1 year"}:null,a>365&&a<730?{value:a,label:`${a/365} years`}:null,a>=730?{value:730,label:"2 years"}:null,a>730?{value:a,label:`${a/365} years`}:null,...d?.lockedStakesOf?.filter(e=>er(e,c)).map(({endingTimestamp:e})=>({value:(0,N.wT)(e)}))??[]].filter(e=>null!==e).sort(({value:e},{value:a})=>e<a?-1:+(e>a)),dynamicDefaultValue:l,defaultValue:e}),{max:2}),et=({poolData:e,vault:a,hasUnstakedConvexWrappedTokens:n,hasUnwrappedConvexWrappedTokens:t})=>
13{let[o,i]=(0,s.useState)(n),[l,d]=(0,s.useState)(t),[c,p]=(0,s.useState)(),[u,x]=(0,s.useState)(),h=(0,s.useCallback)(e=>{void 0!==c&&p(void 0),x(e)},[c,p,x]),m=es(e.minLpLockDays,e.maxLpLockDays,e.lockMaxMultiplier,e.id,e.veFXSMultiplier,e.baseBoost,c,a,e);(0,s.useEffect)(()=>{void 0===o&&n&&i(!0)},[o,n]),(0,s.useEffect)(()=>{if(a?.lockedStakesOf?.length>0){let n=a.lockedStakesOf.filter(a=>er(a,e)).sort(({lockMultiplier:e,endingTimestamp:a},{lockMultiplier:n,endingTimestamp:r})=>e>n?-1:e<n?1:a<r?-1:+(a>r))?.[0];n&&p((0,N.wT)(n.endingTimestamp))}},[a?.lockedStakesOf?.length>0,e?.id]);let b=(0,s.useCallback)(()=>i(!o),[o]),y=(0,s.useCallback)(()=>d(!l),[l]),k=en(a,e,u);return(0,r.jsxs)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" container",children:[void 0!==a&&(0,ea.zE)()?null===a&&e.active?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" pre-form-container",children:(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" text-container",children:(0,r.jsx)(V.A,{severity:"info",children:"In order to deposit liquidity into this Frax pool, you’ll need to create a personal vault for that pool. This vault will manage your personal positions and locks within this Frax pool, you’ll be able to interact with Frax through your vault, and benefit from Convex’s added veFXS boost."})})}),(0,r.jsxs)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" flex-hor",children:[(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" action-form-container no-vault",children:(0,r.jsx)(f.A,{actionType:"createVault",extraData:{actionPool:e},customCopy:[`Create personal vault for “${e.name}”`]})}),"convex"===e.type&&(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" switch-container-convex-wrapper",children:(0,r.jsx)(W.A,{control:(0,r.jsx)(H.A,{size:"small",checked:l,color:"primary",onChange:y}),label:"Advanced"})})]}),"convex"===e.type&&l&&(0,r.jsxs)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" action-form-container no-vault",children:[(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" pre-form-container",children:(0,r.jsxs)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" text-container",children:[(0,r.jsxs)(V.A,{severity:"info",className:"neutral",children:["Creating a vault allows you, in one go, to (1) wrap your Curve LPs on Convex, and (2) stake these wrapped tokens in your vault in order to stake them on Frax while benefiting from Convex’s boost.",(0,r.jsx)("br",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])}),"If you only want to do step (1), and possibly stake your wrapped tokens elsewhere, you can wrap ",e.underlyingCoin.symbol," with the form below."]}),(0,r.jsx)("br",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])}),(0,r.jsx)(V.A,{severity:"warning",className:"neutral",children:"Note: Most people will NOT want to use the form below. If you want to stake on Frax while benef
13iting from Convex’s boost, then you need to create a personal vault using the button above."})]})}),(0,r.jsx)(G.A,{label:`Amount of ${e.underlyingCoin.symbol} tokens to wrap`,actionType:"wrapForConvexFarmVault",extraData:{actionPool:e,vault:a}})]})]}):null!==a||e.active?(0,r.jsxs)(r.Fragment,{children:["temple"===e.type&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" switch-container no-margin",children:(0,r.jsx)(W.A,{control:(0,r.jsx)(H.A,{size:"small",checked:o,color:"primary",onChange:b}),label:"Show Temple “Add Liquidity” form"})}),o&&(0,r.jsx)(ee,{actionType:"addLiquidityToUniv2Interface",extraData:{actionPool:e,vault:a}})]}),a.lockedStakesOf.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]]),children:a.lockedStakesOf.length>1?"Your existing locks":"Your existing lock"}),(0,r.jsx)(P,{lockedStakesOf:a.lockedStakesOf,vault:a,pool:e,setLockDurationDefaultValue:p,lockDurationSliderValue:u,getExistingLockMatchingSliderDays:en,canAddLiquidityToLock:er})]}),e.active?(0,r.jsx)(r.Fragment,{children:"convex"===e.type?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" pre-form-container",children:[(0,r.jsx)("h3",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]]),children:"Deposit and lock"}),(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" switch-container",children:(0,r.jsx)(W.A,{control:(0,r.jsx)(H.A,{size:"small",checked:o,color:"primary",onChange:b}),label:"Advanced"})})]}),(0,r.jsx)(E,{poolData:e}),o?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" action-form-container",children:[(0,r.jsxs)("p",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]]),children:["Wrap ",e.underlyingCoin.symbol," with this first form:"]}),(0,r.jsx)(G.A,{label:`Amount of ${e.underlyingCoin.symbol} tokens to wrap`,actionType:"wrapForConvexFarmVault",extraData:{actionPool:e,vault:a}}),(0,r.jsx)("br",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])}),(0,r.jsx)("p",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]]),children:"And stake the wrapped deposit token with this second form:"}),(0,r.jsx)(A.A,{size:"small",actionType:void 0===k?"stakeInVault":"stakeInConvexVaultLockAlreadyWrapped",...m,maxSelectable:Number(e.maxLpLockDays),onSliderChange:h,extraData:{actionPool:e,vault:a,kekId:k?.kekId}})]})}):(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" action-form-container",children:(0,r.jsx)(A.A,{size:"small",actionType:void 0===k?"wrapForConvexFarmAndStakeInVault":"stakeInConvexVaultLock",...m,maxSelectable:Number(e.maxLpLockDays),onSliderChange:h,extraData:{actionPool:e,vault:a,kekId:k?.kekId}})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h3",{className:j().dynamic([["24291953385360ae",[
13L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]]),children:"Deposit and lock"}),(0,r.jsx)(E,{poolData:e}),(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" action-form-container",children:(0,r.jsx)(A.A,{size:"small",ActionFormComponent:"univ3"===e.type?X:void 0,actionType:void 0===k?"stakeInVault":"stakeInVaultLock",...m,maxSelectable:Number(e.maxLpLockDays),onSliderChange:h,extraData:{actionPool:e,vault:a,kekId:k?.kekId}})})]})}):(0,r.jsx)(V.A,{severity:"info",children:"This pool isn’t active anymore: your deposits are still earning all rewards from the Frax farm, but you’re not able to deposit more liquidity. You’ll be able to withdraw once your locks are expired."})]}):(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" pre-form-container",children:(0,r.jsx)("div",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]])+" text-container",children:(0,r.jsx)(V.A,{severity:"info",children:"This pool isn’t active anymore."})})}):(0,r.jsx)(g.A,{children:(0,r.jsx)("p",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]]),children:(0,r.jsx)("i",{className:j().dynamic([["24291953385360ae",[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue]]]),children:"Loading vault information…"})})}),(0,r.jsx)(j(),{id:"24291953385360ae",dynamic:[L.Tj.backgroundLighterDarkLessOpaque,L.Tj.dark,L.Tj.backgroundGrey,L.Tj.backgroundLighterDarkLessOpaque,L.Tj.halfTransparentBlue],children:`.pre-form-container.__jsx-style-dynamic-selector{display:flex}.text-container.__jsx-style-dynamic-selector>p.__jsx-style-dynamic-selector:first-child{margin-top:0}.text-container.__jsx-style-dynamic-selector>p.__jsx-style-dynamic-selector:last-child{margin-bottom:0}.text-container.__jsx-style-dynamic-selector .MuiAlert-root{margin:0}.switch-container.__jsx-style-dynamic-selector{margin-left:40px;display:flex}.switch-container.no-margin.__jsx-style-dynamic-selector{margin-left:5px}.switch-container.__jsx-style-dynamic-selector .MuiFormControlLabel-label{margin-left:5px;font-size:13px;font-weight:700;line-height:24px}.action-form-container.__jsx-style-dynamic-selector{margin-top:-20px}.action-form-container.no-vault.__jsx-style-dynamic-selector{margin-top:20px}.action-form-container.__jsx-style-dynamic-selector>p.__jsx-style-dynamic-selector:first-child{margin-top:28px}.action-form-container.__jsx-style-dynamic-selector>.container{margin-top:14px}.flex-hor.__jsx-style-dynamic-selector{display:flex;justify-content:space-between}.switch-container-convex-wrapper.__jsx-style-dynamic-selector{display:flex;margin:20px 0 0 20px}.container.__jsx-style-dynamic-selector .MuiAlert-standardInfo.neutral{border-color:${L.Tj.backgroundLighterDarkLessOpaque};color:${L.Tj.dark};background-color:${L.Tj.backgroundGrey}}.container.__jsx-style-dynamic-selector .MuiAlert-standardInfo.neutral .MuiAlert-icon{color:${L.Tj.backgroundLighterDarkLessOpaque}}.container.__jsx-style-dynamic-selector .boost-label{font-size:.8em;opacity:.5}.container.__jsx-style-dynamic-selector .number{font-family:monospace}.container.__jsx-style-dynamic-selector .MuiSlider-mark{width:4px;height:4px;margin-top:0;border-radius:2px}.container.__jsx-style-dynamic-selector .MuiSlider-markLabel{margin-top:-5px}.container.__jsx-style-dynamic-selector .existing-lock-decorator{padding:1px 6px;background-color:${L.Tj.halfTransparentBlue};border-radius:6px}`})]})};et.propTypes={poolData:i().object.isRequired,hasUnstakedConvexWrappedTokens:i().bool.isRequired,hasUnwrappedConvexWrappedTokens:i().bool.isRequired,vault:i().shape({address:i().string.isRequired,lockedStakesOf:i().array.isRequired})};var eo=n(33965),ei=n(99978),el=n.n(ei);let ed=({poolData:e})=>{let{depositInfo:{poolLinkUrl:a,poolLinkText:n}}=z[e.id],s="convex"===e.type?e.underlyingCurvePool.poolUrl:a,t=new Map([["LP token address",e.stakingTokenAddress],..."convex"===e.type?[["Curve LP token address",e.underlyingCoin.address]]:[],["Staking address",e.stakingAddress],...e.vault?[["Your vault address",e.vault.address]]:[],[`Underlying ${(0,S.replaceSymbolsPlaceholders)(n,e.id)}`,s]]);return(0,r.jsx)(eo.A,{addressesMap:t,network:e.blockchainId,appendedContent:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Convex pool id"}),(0,r.jsx)("td",{children:e.id})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Convex pool url"}),(0,r.jsx)("td",{children:(0,r.jsx)(el(),{href:e.convexUrl,children:e.convexUrl})})]})]})})};ed.propTypes={poolData:i().object.isRequired};let ec=({poolData:e,vault:a})=>(0,r.jsxs)("div",{className:"jsx-d7bc49d09109aa6 container",children:[(0,r.jsx)("div",{className:"jsx-d7bc49d09109aa6 pre-form-container",children:(0,r.jsx)("div",{className:"jsx-d7bc49d09109aa6 text-container",children:(0,r.jsxs)(V.A,{severity:"info",children:["You have wrapped Curve LP tokens and deposited them into this Convex wrapper, but these wrapped tokens aren’t staked on Frax yet.",(0,r.jsx)("br",{className:"jsx-d7bc49d09109aa6"}),"If you want to stake them, head to the tab “Deposit and withdraw”, and use the last form to lock them for the desired period of time; you will earn more rewards the longer they’re locked.",(0,r.jsx)("br",{className:"jsx-d7bc49d09109aa6"}),"If you want to withdraw your Curve LP tokens, you can use the form below to withdraw and unwrap them."]})})}),(0,r.jsx)("div",{className:"jsx-d7bc49d09109aa6 action-form-container",children:(0,r.jsx)(G.A,{label:`Amount of w${e.underlyingCoin.symbol} tokens to withdraw and unwrap`,actionType:"unwrapForConvexFarmVault",extraData:{actionPool:e,vault:a}})}),(0,r.jsx)(j(),{id:"d7bc49d09109aa6",children:".pre-form-container.jsx-d7bc49d09109aa6{display:flex}.text-container.jsx-d7bc49d09109aa6>p.jsx-d7bc49d09109aa6:first-child{margin-top:0}.text-container.jsx-d7bc49d09109aa6>p.jsx-d7bc49d09109aa6:last-child{margin-bottom:0}.text-container.jsx-d7bc49d09109aa6 .MuiAlert-root{margin:0}.switch-container.jsx-d7bc49d09109aa6{margin-left:40px;
13display:flex}.switch-container.jsx-d7bc49d09109aa6 .MuiFormControlLabel-label{margin-left:5px;font-size:13px;font-weight:700;line-height:24px}.action-form-container.jsx-d7bc49d09109aa6{margin-top:20px}"})]});ec.propTypes={poolData:i().object.isRequired,vault:i().shape({address:i().string.isRequired,lockedStakesOf:i().array.isRequired})};var ep=n(44182),eu=n(7797),ex=n(55537);let eh=({poolData:e,id:a,name:n,vault:o,userVaultApr:i,aggregateVaultsData:m,stakableBalance:j,expanded:b,isInsideStandaloneStakePage:y=!1})=>{let f=o?.usdTotal?.gt(0),g="convex"===e.type?e.underlyingCoin.symbol:e.stakingTokenSymbol,k=!!("convex"===e.type&&d.kl.stakeInVault.balanceHook({actionPool:e})?.gt(0)),T=!!("convex"===e.type&&d.kl.wrapForConvexFarmVault.balanceHook({actionPool:e})?.gt(0)),v="convex"===e.type?[...e.curveAprData.isPendingHarvest?[c.Ay.crv.address]:[],...e.curveAprData.additionalRewards.filter(({isPendingHarvest:e})=>e).map(({coinAddress:e})=>e)]:void 0,A=(0,s.useMemo)(()=>["Deposit and withdraw",...k?["Unwrap"]:[],"Info"],[k]),L=(0,s.useMemo)(()=>[(0,r.jsx)(et,{poolData:e,vault:o,hasUnstakedConvexWrappedTokens:k,hasUnwrappedConvexWrappedTokens:T}),...k?[(0,r.jsx)(ec,{poolData:e,vault:o})]:[],(0,r.jsx)(ed,{poolData:e,vault:o})],[e,o,k,T]);return(0,r.jsx)(l.Ay,{expanded:b,Header:(0,r.jsxs)(l.d6,{className:e.active?"":"faded",children:[(0,r.jsxs)(l.eB,{orientation:"horizontal",children:["convex"===e.type?(0,r.jsx)(h.A,{coins:e.underlyingCurvePool.coins,customWrapperExternalId:e.subtype||e.type,className:"icon"}):e.underlyingCoins?(0,r.jsx)(h.A,{coins:e.underlyingCoins,customWrapperExternalId:e.subtype||e.type,className:"icon"}):e.underlyingCoin?(0,r.jsx)(h.A,{coin:e.underlyingCoin,customWrapperExternalId:e.subtype||e.type,className:"icon"}):(0,r.jsx)(x.A,{className:"icon"}),(0,r.jsx)(l.hE,{children:y?(0,r.jsxs)(r.Fragment,{children:[n,!e.active&&" (deprecated)"]}):(0,r.jsxs)(el(),{href:e.convexUrl,children:[n,!e.active&&" (deprecated)"]})})]}),(0,r.jsx)(l.eB,{children:(0,r.jsxs)(l.UC,{children:[(0,r.jsx)("span",{className:"small",children:"$"}),void 0===o?.claimableRewardsUsdTotal?"–":(0,r.jsx)(r.Fragment,{children:(0,w.sz)(o.claimableRewardsUsdTotal)})]})}),(0,r.jsx)(l.eB,{className:"vapr-column",children:(0,r.jsx)(l.UC,{children:void 0===e?"–":(0,r.jsxs)("span",{children:[(0,t.A)(e.totalRewardAprs.min).eq((0,t.A)(e.totalRewardAprs.max))?(0,r.jsxs)(r.Fragment,{children:[(0,w.o)((0,t.A)(e.totalRewardAprs.min)),(0,r.jsx)("span",{className:"small",children:"%"})]}):(0,t.A)(e.totalRewardAprs.max).gt(0)?(0,r.jsxs)(r.Fragment,{children:[(0,w.o)((0,t.A)(e.totalRewardAprs.min)),(0,r.jsx)("span",{className:"small",children:"%"}),"→",(0,w.o)((0,t.A)(e.totalRewardAprs.max)),(0,r.jsx)("span",{className:"small",children:"%"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,w.o)((0,t.A)(0)),(0,r.jsx)("span",{className:"small",children:"%"})]}),f&&void 0!==i&&(0,r.jsxs)("span",{children:[" ",(0,r.jsx)("span",{className:"small no-wrap",children:"(my: "}),(0,w.o)(i),(0,r.jsx)("span",{className:"small",children:"%)"})]}),(0,r.jsx)(u.A,{pool:e,vault:o,curveRewardsPendingHarvest:v}),"convex"===e.type&&v.length>0?(0,r.jsx)(ep.A,{}):e.farmNeedsSyncing?(0,r.jsx)(ex.A,{}):void 0,(0,r.jsxs)("span",{className:"small",children:[(0,r.jsx)("br",{}),"veFXS boost: ",(0,w.kW)((0,t.A)(e.veFXSMultiplier)),"x"]})]})})}),(0,r.jsx)(l.eB,{children:(0,r.jsxs)(l.UC,{children:[null==o?"–":(0,r.jsx)(r.Fragment,{children:(0,w.kW)(o.liquidityTotal,2)})," ",(0,r.jsx)("span",{className:"small",children:g}),null!=o&&(0,r.jsxs)(l.UC,{discreet:!0,children:[" ≈ ",(0,r.jsx)("span",{className:"small",children:"$"}),(0,w.sz)(o.usdTotal,2)]}),j?.gt(0)&&(0,r.jsx)(eu.A,{stakableBalance:j})]})}),(0,r.jsx)(l.eB,{children:(0,r.jsxs)(l.UC,{children:[(0,r.jsx)("span",{className:"small",children:"$"}),void 0===m?"–":(0,r.jsx)(r.Fragment,{children:(0,w.sz)((0,t.A)(m.usdTotal),2)})]})})]}),Content:(0,r.jsx)(l.Bo,{children:(0,r.jsx)(p.A,{labels:A,panels:L})})},a)};eh.propTypes={id:i().number.isRequired,name:i().string.isRequired,aggregateVaultsData:i().object.isRequired,expanded:i().bool,isInsideStandaloneStakePage:i().bool};let em=s.memo(eh)},29561:(e,a,n)=>{"use strict";n.r(a),n.d(a,{arePoolsLoaded:()=>c,default:()=>u,getPoolByConvexPoolId:()=>p,getPoolById:()=>d});var r=n(31804),s=n(81403),t=n(48491),o=n(41732),i=n(8998);let l=[];setTimeout(async()=>
13{if("fxp"===r.yl){let[e]=await Promise.all([(0,i.A)(),(0,o.Kc)(t.arePoolsLoaded)]),a=e.map(e=>({...e,get gaugeContractKey(){return`${e.id}Staking`},get stakingTokenContractKey(){return`${e.id}StakingToken`},get underlyingTokenContractKey(){return e.stakingTokenAddress?`${e.id}UnderlyingToken`:null},get underlyingCurvePool(){return"Erc20Basic"!==e.vaultType||s.yV.includes(e.id)?void 0:(0,t.findPoolForLpTokenAddress)(e.stakingTokenAddress)}}));l.push(...a)}},0);let d=e=>l.find(a=>e===a.id),c=()=>l?.length>0,p=(e,a="ethereum")=>l.find(a=>e===a.id),u=l},33120:(e,a,n)=>{"use strict";n.d(a,{A:()=>D});var r=n(66305),s=n(67141),t=n(99284),o=n(45969),i=n(66671),l=n(12553),d=n(96295),c=n.n(d),p=n(5018),u=n(22271),x=n(71377),h=n(99978),m=n.n(h),j=n(69025),b=n(31804);let y=({pool:e,poolName:a,baseApy:n,prismaApy:s,crvApy:t,crvBoost:o,cvxApy:i,totalApy:l})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.Ay,{children:[(0,r.jsxs)(p.Td,{children:[(0,r.jsx)(x.A,{coins:e.curvePool.coins,className:"icon"}),(0,r.jsx)("span",{className:"jsx-55176acf5d0f3588 highlight",children:a}),(0,r.jsx)("span",{className:"jsx-55176acf5d0f3588",children:"\xa0pool rewards"})]}),(0,r.jsxs)(p.bx,{children:[(0,r.jsxs)("div",{className:"jsx-55176acf5d0f3588",children:["vAPR",(0,r.jsxs)("span",{className:"jsx-55176acf5d0f3588",children:[void 0!==l?(0,j.o)(l):"–","%"]})]}),(0,r.jsxs)("div",{className:"jsx-55176acf5d0f3588",children:[(0,r.jsx)("span",{className:"jsx-55176acf5d0f3588 label",children:"Breakdown"}),(0,r.jsx)("table",{className:"jsx-55176acf5d0f3588",children:(0,r.jsxs)("tbody",{className:"jsx-55176acf5d0f3588",children:[(0,r.jsxs)("tr",{className:"jsx-55176acf5d0f3588",children:[(0,r.jsx)("td",{className:"jsx-55176acf5d0f3588",children:"Base Curve vAPR"}),(0,r.jsxs)("td",{className:"jsx-55176acf5d0f3588",children:[void 0!==n?(0,j.o)(n):"–","%"]})]}),(0,r.jsxs)("tr",{className:"jsx-55176acf5d0f3588",children:[(0,r.jsxs)("td",{className:"jsx-55176acf5d0f3588",children:["CRV vAPR",void 0!==o?` (incl ${(0,j.kW)(o)}x boost)`:""]}),(0,r.jsxs)("td",{className:"jsx-55176acf5d0f3588",children:[void 0!==t?(0,j.o)(t):"–","%"]})]}),(0,r.jsxs)("tr",{className:"jsx-55176acf5d0f3588",children:[(0,r.jsx)("td",{className:"jsx-55176acf5d0f3588",children:"CVX vAPR"}),(0,r.jsxs)("td",{className:"jsx-55176acf5d0f3588",children:[void 0!==i?(0,j.o)(i):"–","%"]})]}),(0,r.jsxs)("tr",{className:"jsx-55176acf5d0f3588",children:[(0,r.jsx)("td",{className:"jsx-55176acf5d0f3588",children:"PRISMA vAPR (boost applied on claim)"}),(0,r.jsxs)("td",{className:"jsx-55176acf5d0f3588",children:[void 0!==s?(0,j.o)(s):"–","%"]})]})]})})]})]}),(0,r.jsxs)(u.A,{severity:"info",children:[(0,r.jsx)(u.X,{children:"Where do rewards accrue?"}),(0,r.jsx)("p",{className:"jsx-55176acf5d0f3588",children:"“Base Curve vAPR” accrues inside the Curve pool: the more you earn, the more assets you’ll be able to withdraw from the Curve pool."}),(0,r.jsxs)("p",{className:"jsx-55176acf5d0f3588",children:["All other rewards (CRV, CVX, PRISMA) are distributed separately and can be claimed from the ",(0,r.jsx)(m(),{href:"/claim",children:"Claim page"}),", under “Prisma Rewards”."]})]}),(0,r.jsxs)(u.A,{severity:"info",color:"discreet",children:[(0,r.jsx)(u.X,{children:"Fees"}),(0,r.jsx)("p",{className:"jsx-55176acf5d0f3588",children:"Staking Curve LP tokens on Prisma doesn’t incur additional fees."}),(0,r.jsxs)("p",{className:"jsx-55176acf5d0f3588",children:["The underlying Convex pool does incur some fees, which are already deducted from the figures above (the vAPR you see is the vAPR you get). Feel free to ",(0,r.jsx)("a",{href:`${b.Rh.curve}/stake/${e.curvePool.blockchainId}/${e.curvePool.convexPoolData.id}`,target:"_blank",rel:"noopener noreferrer",className:"jsx-55176acf5d0f3588",children:"visit the underlying pool’s page"})," to learn more about the fees that apply to it."]})]}),(0,r.jsxs)(u.A,{severity:"info",color:"discreet",children:[(0,r.jsx)(u.X,{children:"What does vAPR stand for?"}),(0,r.jsx)("p",{className:"jsx-55176acf5d0f3588",children:"vAPR stands for “Variable Annual Percentage Rate”: it is the interest you’d earn on your deposits for a 
13whole year, and it’s variable because it depends on today’s trading activity in this pool, the price of the assets you deposit, the price of the assets you’re rewarded with, and the current rewards rates."})]})]}),(0,r.jsx)(c(),{id:"55176acf5d0f3588",children:".pool-harvest-tooltip-container.jsx-55176acf5d0f3588,.curve-gauge-status-tooltip-container.jsx-55176acf5d0f3588{position:relative;padding-right:14px}.pool-harvest-tooltip-container.jsx-55176acf5d0f3588 .harvest-pending-tooltip .MuiSvgIcon-root,.curve-gauge-status-tooltip-container.jsx-55176acf5d0f3588 .curve-gauge-status-tooltip .MuiSvgIcon-root{position:absolute;right:0;bottom:2px;font-size:12px}"})]});var f=n(7797),g=n(58511),k=n.n(g),T=n(527),v=n(33027);let A=({convexPoolId:e,networkChoice:a})=>{let n=(0,o.getPoolByConvexPoolId)(e,a);return(0,r.jsxs)("div",{className:"jsx-2bcfc9c42399f351 container",children:[(0,r.jsx)("div",{className:"jsx-2bcfc9c42399f351 action-form-container",children:(0,r.jsx)(T.A,{label:`Amount of ${n.curvePool.lpTokenInfo.symbol} tokens to unstake and withdraw`,actionType:"unstakeLpToken",extraData:{actionPool:n}})}),(0,r.jsx)(c(),{id:"2bcfc9c42399f351",children:".action-form-container.jsx-2bcfc9c42399f351{margin-top:14px}.action-form-container.jsx-2bcfc9c42399f351>p.jsx-2bcfc9c42399f351:first-child{margin-top:28px}.action-form-container.jsx-2bcfc9c42399f351>.container{margin-top:14px}"})]})};A.propTypes={convexPoolId:k().number.isRequired,networkChoice:k().oneOf(v.Ki).isRequired};var L=n(33965);let w=({convexPoolId:e,networkChoice:a})=>{let n=(0,o.getPoolByConvexPoolId)(e,a),s=new Map([["LP token address",n.curvePool.lpTokenAddress||n.curvePool.address],["Deposit contract address",n.address]]);return(0,r.jsx)(L.A,{addressesMap:s,network:n.blockchainId,appendedContent:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Underlying Convex pool id"}),(0,r.jsx)("td",{children:n.curvePool.convexPoolData.id})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Convex pool staking url"}),(0,r.jsx)("td",{children:(0,r.jsx)(m(),{href:n.convexUrl,children:n.convexUrl})})]})]})})};w.propTypes={networkChoice:k().oneOf(v.Ki).isRequired,convexPoolId:k().number.isRequired};let N=["Withdraw","Info"],D=s.memo(({networkChoice:e,convexPoolId:a,name:n,lpTokenSymbol:d,stakedBalance:c,stakedBalanceUsdValue:p,stakableBalance:u,poolEarnedUsdValue:h,totalLockedUsdValue:b,totalApy:g,baseApy:k,prismaApy:T,crvApy:v,crvBoost:L,cvxApy:D,expanded:C,isInsideStandaloneStakePage:_})=>{let P=(0,o.getPoolByConvexPoolId)(a,e),q=void 0===g,O=(0,s.useMemo)(()=>[(0,r.jsx)(A,{convexPoolId:a,networkChoice:e}),(0,r.jsx)(w,{convexPoolId:a,networkChoice:e})],[a,e]);return(0,r.jsx)(i.Ay,{expanded:C,Header:(0,r.jsxs)(i.d6,{children:[(0,r.jsxs)(i.eB,{orientation:"horizontal",larger:!0,children:[(0,r.jsx)(x.A,{coins:P.curvePool.coins,className:"icon"}),(0,r.jsx)(i.hE,{children:_?n:(0,r.jsx)(m(),{href:P.convexUrl,children:n})})]}),(0,r.jsx)(i.eB,{children:(0,r.jsxs)(i.UC,{children:[(0,r.jsx)("span",{className:"small",children:"$"}),void 0===h?"–":(0,r.jsx)(r.Fragment,{children:(0,j.sz)(h)})]})}),(0,r.jsx)(i.eB,{children:(0,r.jsxs)(i.UC,{children:[q?"–":(0,r.jsxs)("span",{children:[(0,j.o)(g),(0,r.jsx)("span",{className:"small",children:"%"}),(0,r.jsx)(y,{pool:P,poolName:n,baseApy:k,prismaApy:T,crvApy:v,crvBoost:L,cvxApy:D,totalApy:g})]}),(0,r.jsx)(t.A,{className:"vecrv-boost-chip",size:"small",variant:"outlined",label:(0,r.jsx)(r.Fragment,{children:"Boost applied on claim"})})]})}),(0,r.jsx)(i.eB,{children:(0,r.jsxs)(i.UC,{children:[void 0===c?"–":(0,r.jsx)(r.Fragment,{children:(0,j.kW)(c,2)})," ",(0,r.jsx)("span",{className:"small",children:d}),void 0!==p&&(0,r.jsxs)(i.UC,{discreet:!0,children:[" ≈ ",(0,r.jsx)("span",{className:"small",children:"$"}),(0,j.sz)(p,2)]}),u?.gt(0)&&(0,r.jsx)(f.A,{stakableBalance:u})]})}),(0,r.jsx)(i.eB,{children:(0,r.jsxs)(i.UC,{children:[(0,r.jsx)("span",{className:"small",children:"$"}),void 0===b?"–":(0,r.jsx)(r.Fragment,{children:(0,j.sz)(b,2)})]})})]}),Content:(0,r.jsx)(i.Bo,{children:(0,r.jsx)(l.A,{labels:N,panels:O})})},a)})},33965:(e,a,n)=>{"use strict";n.d(a,{A:()=>p});var r=n(66305),s=n(96295),t=n.n(s);n(67141);var o=n(58511),i=n.n(o),l=n(33027),d=n(5901);let c=({addressesMap:e,appendedContent:a,network:n="ethereum",displayShortAddresses:s=!1})=>(0,r.jsxs)("table",{className:"jsx-751b431d6e3e5e44",children:[(0,r.jsxs)("tbody",{className:"jsx-751b431d6e3e5e44",children:[Array.from(e.entries()).map(([e,a])=>{let t=a.startsWith("0x");return(0,r.jsx)("tr",{className:"jsx-751b431d6e3e5e44",children:t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("td",{className:"jsx-751b431d6e3e5e44 label",children:e}),(0,r.jsx)("td",{className:"jsx-751b431d6e3e5e44 address",children:(0,r.jsx)("a",{href:`${l.Sb[n]}${a}`,target:"_blank",rel:"noopener noreferrer",className:"jsx-751b431d6e3e5e44",children:s?(0,d.Dc)(a):a})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("td",{className:"jsx-751b431d6e3e5e44 label",children:(0,r.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"jsx-751b431d6e3e5e44",children:e})}),(0,r.jsx)("td",{className:"jsx-751b431d6e3e5e44"})]})},e)}),void 0!==a&&a]}),(0,r.jsx)(t(),{id:"751b431d6e3e5e44",children:"table.jsx-751b431d6e3e5e44 td:last-child{padding-left:40px;font-family:monospace}table.jsx-751b431d6e3e5e44 td:last-child a{font-weight:500}"})]});c.propTypes={addressesMap:i().instanceOf(Map).isRequired,network:i().string,appendedContent:i().node,displayShortAddresses:i().bool};let p=c},39406:(e,a,n)=>{"use strict";n.d(a,{A:()=>z});var r=n(66305),s=n(96295),t=n.n(s),o=n(67141),i=n(37851),l=n(58511),d=n.n(l),c=n(66671),p=n(12553),u=n(66471),x=n(42426),h=n(52387),m=n(29674),j=n(93058),b=n(11256),y=n(527),f=n(64904),g=n(80543),k=n(32220),T=n(69025),v=n(95589),A=n(81403),L=n(74320),w=n(39842);let N=e=>"FxusdRebalancePool"===e.vaultSubtype?"fxUSD":"RusdRebalancePool"===e.vaultSubtype?"rUSD":"BtcusdRebalancePool"===e.vaultSubtype?"btcUSD":"CvxusdRebalancePool"===e.vaultSubtype?"cvxUSD":A.yV.includes(e.id)?"fxBASE":e.stakingTokenSymbol,D=({maxDepositSizeBN:e,symbol
13:a})=>(0,r.jsxs)(j.A,{severity:"warning",className:"max-deposit-size-warning",children:["This ",a," Stability Pool can only accept deposits up to ",(0,T.sz)(e)," ",a," at this time (see ",(0,r.jsxs)("a",{href:"https://docs.aladdin.club/f-x-protocol/introduction-of-fxusd/fxusd-reserve-and-risk-management#the-fxusd-reserve",target:"_blank",rel:"noopener noreferrer",children:["how the ",a," reserve works"]}),")"]}),C=({poolData:e,vault:a})=>{let[n,s]=(0,o.useState)(0),i=k.ACTIONS.migrateToVault.balanceHook({actionPool:e}),l="RebalancePool"!==e.vaultType&&i?.gt(0),d="FxusdRebalancePool"===e.vaultSubtype?(0,w.A)(e.stakingTokenContractKey,"balanceOf",v.Ay.fxusd.address):"RusdRebalancePool"===e.vaultSubtype?(0,w.A)(e.stakingTokenContractKey,"balanceOf",v.Ay.rusd.address):"BtcusdRebalancePool"===e.vaultSubtype?(0,w.A)(e.stakingTokenContractKey,"balanceOf",v.Ay.btcusd.address):"CvxusdRebalancePool"===e.vaultSubtype?(0,w.A)(e.stakingTokenContractKey,"balanceOf",v.Ay.cvxusd.address):null,c=null==d?null:(0,L.wt)(d,e.stakingTokenDecimals),p=null!==c&&c.lt(n),u=null!==c&&c.lt(A.b$);return A.yV.includes(e.id),(0,r.jsxs)("div",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" container",children:[void 0!==a&&(0,f.zE)()?null===a&&e.active?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" pre-form-container",children:(0,r.jsxs)("div",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" text-container",children:[u&&(0,r.jsx)(D,{maxDepositSizeBN:c,symbol:e.name.split(" ")[0]}),(0,r.jsx)(j.A,{severity:"info",children:"In order to deposit liquidity into this boosted f(x) gauge, you’ll need to create a personal vault for that pool. This vault will manage your personal positions within this gauge, you’ll be able to interact with f(x) through your vault, and benefit from Convex’s added veFXN boost."})]})}),(0,r.jsx)("div",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" flex-hor",children:(0,r.jsx)("div",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" action-form-container no-vault",children:(0,r.jsx)(h.A,{actionType:"createVault",extraData:{actionPool:e},customCopy:[`Create personal vault for “${e.name}”`]})})})]}):null!==a||e.active?(0,r.jsx)(r.Fragment,{children:e.active?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" pre-form-container",children:"Erc20Basic"!==e.vaultType||A.yV.includes(e.id)?A.yV.includes(e.id)?(0,r.jsxs)("p",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:["Deposit ",N(e)," into this f(x) Stability Pool. The goal of Stability Pools is to maintain healthy collateral ratios within the system.",(0,r.jsx)("br",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])}),(0,r.jsx)("br",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])}),"Need ",N(e),"? Using either fxUSD or USDC, head to ",(0,r.jsx)("a",{href:"https://fx.aladdin.club/v2/earn/",target:"_blank",rel:"noopener noreferrer",className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:"f(x) Protocol's ”Stake fxUSD“ page"}),", click on the ”fxUSD Stability Pool Gauge“, then the ”Deposit“ button. Here, fill the form, ",(0,r.jsx)("strong",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:"and toggle OFF the ”Stake“ control"}),": you’ll receive fxBASE, that you can then deposit here on Convex to benefit from Convex’s boost.",(0,r.jsx)("br",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])}),(0,r.jsx)("br",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])}),(0,r.jsx)("i",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:"Note: we’ll make this process easier in the near future"})]}):(0,r.jsxs)("p",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:["Deposit ",N(e)," into this f(x) Stability Pool. The goal of Stability Pools is to maintain healthy collateral ratios within the system, and each RP works with a single market. This Stability Pool acts as a safeguard for the collateral ratio of $",e.stakingTokenSymbol,", and if it kicks in, the redeemed asset is $",e.redeemingTokenSymbol,".",(0,r.jsx)("br",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])}),(0,r.jsx)("br",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])}),"Need ",N(e),"? You can ",(0,r.jsx)("a",{href:`https://fx.aladdin.club/assets/${N(e)}`,target:"_blank",rel:"noopener noreferrer",className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:"mint some"}),"!"]}):(0,r.jsxs)("p",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:["Deposit liquidity into the ",(0,r.jsxs)("a",{href:e.underlyingCurvePool.poolUrl,target:"_blank",rel:"noopener noreferrer",className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:["Curve ",e.underlyingCurvePool.name," pool"]})," (without staking in the Curve gauge), and then stake your ",e.underlyingCurvePool.lpTokenInfo.symbol," tokens here to earn CVX on top of Curve’s native rewards."]})}),(0,r.jsx)("div",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" action-form-container",children:(0,r.jsx)(y.A,{actionType:"stakeInVault",extraData:{actionPool:e,vault:a},onChange:s,...p?{stepperDisabled:!0}:{}})}),p&&(0,r.jsx)("div",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" post-form-container",children:(0,r.jsx)(D,{maxDepositSizeBN:c,symbol:e.name.split(" ")[0]})}),l&&(0,r.jsxs)(j.A,{severity:"info",className:"migrate-cta",children:[(0,r.jsxs)(b.A,{children:["You have ",(0,T.sz)(i)," LP tokens staked directly on f(x). Stake them through Convex with this one-click migration button!"]}),(0,r.jsx)(h.A,{actionType:"migrateToVault",extraData:{actionPool:e,vault:a,gaugeTokensBalance:i},customCopy:[`Migrate ${(0,T.sz)(i)} LP tokens`]})]})]}):(0,r.jsx)(j.A,{severity:"info",children:"This pool isn’t active anymore: 
13your deposits are still earning all rewards from the f(x) gauge, but you’re not able to deposit more liquidity."})}):(0,r.jsx)("div",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" pre-form-container",children:(0,r.jsx)("div",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" text-container",children:(0,r.jsx)(j.A,{severity:"info",children:"This pool isn’t active anymore."})})}):(0,r.jsx)(m.A,{children:(0,r.jsx)("p",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:(0,r.jsx)("i",{className:t().dynamic([["d70420cb7a5e9f65",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:"Loading vault information…"})})}),(0,r.jsx)(t(),{id:"d70420cb7a5e9f65",dynamic:[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque],children:`.pre-form-container.__jsx-style-dynamic-selector{display:flex}.text-container.__jsx-style-dynamic-selector>p.__jsx-style-dynamic-selector:first-child{margin-top:0}.text-container.__jsx-style-dynamic-selector>p.__jsx-style-dynamic-selector:last-child{margin-bottom:0}.text-container.__jsx-style-dynamic-selector .MuiAlert-root{margin:0}.container.__jsx-style-dynamic-selector .MuiAlert-root.max-deposit-size-warning{margin:0 0 20px}.post-form-container.__jsx-style-dynamic-selector .MuiAlert-root.max-deposit-size-warning{margin:20px 0 0}.switch-container.__jsx-style-dynamic-selector{margin-left:40px;display:flex}.switch-container.no-margin.__jsx-style-dynamic-selector{margin-left:5px}.switch-container.__jsx-style-dynamic-selector .MuiFormControlLabel-label{margin-left:5px;font-size:13px;font-weight:700;line-height:24px}.action-form-container.__jsx-style-dynamic-selector{margin-top:-20px}.action-form-container.no-vault.__jsx-style-dynamic-selector{margin-top:20px}.action-form-container.__jsx-style-dynamic-selector>p.__jsx-style-dynamic-selector:first-child{margin-top:28px}.action-form-container.__jsx-style-dynamic-selector>.container{margin-top:14px}.flex-hor.__jsx-style-dynamic-selector{display:flex;justify-content:space-between}.container.__jsx-style-dynamic-selector .MuiAlert-standardInfo.neutral{border-color:${g.Tj.backgroundLighterDarkLessOpaque};color:${g.Tj.dark};background-color:${g.Tj.backgroundGrey}}.container.__jsx-style-dynamic-selector .MuiAlert-standardInfo.neutral .MuiAlert-icon{color:${g.Tj.backgroundLighterDarkLessOpaque}}.container.__jsx-style-dynamic-selector .MuiAlert-root.migrate-cta{margin-bottom:0}.container.__jsx-style-dynamic-selector .boost-label{font-size:.8em;opacity:.5}.container.__jsx-style-dynamic-selector .number{font-family:monospace}`})]})};C.propTypes={poolData:d().object.isRequired,vault:d().shape({address:d().string.isRequired})};var _=n(4303),P=n(16019);let q=({amount:e,poolData:a,renderActionButton:n,handleClose:s})=>{let o="FxusdRebalancePool"===a.vaultSubtype,l="RusdRebalancePool"===a.vaultSubtype,d="CvxusdRebalancePool"===a.vaultSubtype,c=o?"fxUSD":l?"rUSD":d?"cvxUSD":"btcUSD";return(0,r.jsxs)("div",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]]),children:[(0,r.jsx)(_.A,{open:!0,onClose:s,fullWidth:!0,children:(0,r.jsxs)("div",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]])+" content-container",children:[(0,r.jsxs)("div",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]])+" header",children:["Important: you’re withdrawing ",(0,r.jsx)("span",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]])+" highlight blue",children:(0,r.jsx)("span",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]])+" small",children:c})})," but you will receive ",(0,r.jsx)("span",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]])+" highlight orange",children:a.baseTokenSymbol})," instead"]}),(0,r.jsxs)("p",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]]),children:[!1===a.isBaseTokenPriceValid?(0,r.jsxs)(r.Fragment,{children:["This Stability Pool’s base token (",a.baseTokenSymbol,") is currently depegged. Until the peg is met again, ",c," cannot be withdrawn: instead, you can only withdraw ",a.baseTokenSymbol," from this Stability Pool."]}):(0,r.jsxs)(r.Fragment,{children:[c," is currently undercollateralized in this Stability Pool. When the system is undercollateralized, ",c," cannot be withdrawn: instead, you can only withdraw this Stability Pool’s base token (",a.baseTokenSymbol,")."]})," ",(0,r.jsx)("a",{href:"https://docs.aladdin.club/f-x-protocol/introduction-of-fxusd/fxusd-reserve-and-risk-management#risk-management",target:"_blank",rel:"noopener noreferrer",className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]]),children:"Read more in the f(x) Protocol documentation"}),"."]}),(0,r.jsx)("p",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]]),children:"Please be aware that if you withdraw:"}),(0,r.jsxs)("ul",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]]),children:[(0,r.jsxs)("li",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]]),children:["You will ",(0,r.jsx)("strong",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]]),children:"NOT"})," receive ",(0,r.jsxs)("span",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]])+" highlight dotted",children:[(0,T.sz)((0,i.A)(e))," ",(0,r.jsx)("span",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]])+" small",children:c})]})]}),(0,r.jsxs)("li",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]]),children:["Instead, you ",(0,r.jsx)("strong",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]]),children:"WILL"})," receive ",(0,r.jsx)("span",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]])+" highlight orange",children:a.baseTokenSymbol})," tokens, the amount being determined by current f(x) redeeming rates"]})]}),(0,r.jsxs)("div",{className:t().dynamic([["9c773e429edc3978",[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange]]])+" buttons-container",children:[(0,r.jsx)(P.A,{color:"primary",size:"large",onClick:s,children:"Don’t withdraw"}),n({customModalCopy:[`Withdraw ${c} and receive ${a.baseTokenSymbol} instead`],customColor:"default"})]})]})}),(0,r.jsx)(t(),{id:"9c773e429edc3978",dynamic:[g.Tj.backgroundTransparentGrey,g.Tj.blue,g.Tj.orange],children:`.content-container.__jsx-style-dynamic-selector{padding:25px;position:relative;background-color:#f4bb3b62;font-size:16px}.header.__jsx-style-dynamic-selector{font-size:18px;line-height:1.2em;font-weight:600}.content-container.__jsx-style-dynamic-selector>ul.__jsx-style-dynamic-selector>li.__jsx-style-dynamic-selector:last-child:not(:first-child){margin-top:1em}.buttons-container.__jsx-style-dynamic-selector{display:flex;margin:0 -5px}.buttons-container.__jsx-style-dynamic-selector button{flex:1 1 0;margin:0 5px}.highlight.__jsx-style-dynamic-selector{border-radius:8px;padding:1px 5px;background-color:${g.Tj.backgroundTransparentGrey};white-space:nowrap}.highlight.blue.__jsx-style-dynamic-selector{background-color:${g.Tj.blue};color:#fff}.highlight.orange.__jsx-style-dynamic-selector{background-color:${g.Tj.orange};color:#fff}.highlight.dotted.__jsx-style-dynamic-selector{background-color:transparent;border:1px dotted;padding:0 4px}`})]})},O=({poolData:e,vault:a})=>{let n=void 0===a||!(0,f.zE)(),s=!n&&("FxusdRebalancePool"===e.vaultSubtype||"RusdRebalancePool"===e.vaultSubtype||"BtcusdRebalancePool"===e.vaultSubtype||"CvxusdRebalancePool"===e.vaultSubtype)&&!0===e.isUnderCollateral||!1===e.isBaseTokenPriceValid,i="FxusdRebalancePool"===e.vaultSubtype,l="RusdRebalancePool"===e.vaultSubtype,d="BtcusdRebalancePool"===e.vaultSubtype,c="CvxusdRebalancePool"===e.vaultSubtype,p=i?"fxUSD":l?"rUSD":d?"btcUSD":c?"cvxUSD":null,u=(0,o.useMemo)(()=>s?a=>(0,r.jsx)(q,{poolData:e,...a}):void 0,[s]);return(0,r.jsxs)("div",{className:t().dynamic([["3cd75b529aa4b3ee",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" container",children:[n?(0,r.jsx)(m.A,{children:(0,r.jsx)("p",{className:t().dynamic([["3cd75b529aa4b3ee",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:(0,r.jsx)("i",{className:t().dynamic([["3cd75b529aa4b3ee",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:"Loading vault information…"})})}):s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(j.A,{severity:"warning",className:"fxusd-cr",children:[(0,r.jsxs)(b.A,{children:[p," cannot be withdrawn at this time"]}),(0,r.jsxs)("p",{className:t().dynamic([["3cd75b529aa4b3ee",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:[!1===e.isBaseTokenPriceValid?(0,r.jsxs)(r.Fragment,{children:["This Stability Pool’s base token (",e.baseTokenSymbol,") is currently depegged. Until the peg is met again, ",p," cannot be withdrawn: instead, you can only withdraw ",e.baseTokenSymbol," from this Stability Pool."]}):(0,r.jsxs)(r.Fragment,{children:[p," is currently undercollateralized in this Stability Pool. When the system is undercollateralized, ",p," cannot be withdrawn: instead, you can only withdraw this Stability Pool’s base token (",e.baseTokenSymbol,")."]})," ",(0,r.jsx)("a",{href:"https://docs.aladdin.club/f-x-protocol/introduction-of-fxusd/fxusd-reserve-and-risk-management",target:"_blank",rel:"noopener noreferrer",className:t().dynamic([["3cd75b529aa4b3ee",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]]),children:"Read more in the f(x) Protocol documentation"}),"."]})]}),(0,r.jsx)("div",{className:t().dynamic([["3cd75b529aa4b3ee",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" action-form-container",children:(0,r.jsx)(y.A,{actionType:"unstakeBaseTokenFromFxusdRpVault",label:`Withdraw ${p} as ${e.baseTokenSymbol}`,customButtonCopy:[[`Withdraw ${p} as ${e.baseTokenSymbol}`]],ConfirmationModal:u,extraData:{actionPool:e,vault:a}})})]}):(0,r.jsx)("div",{className:t().dynamic([["3cd75b529aa4b3ee",[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque]]])+" action-form-container",children:(0,r.jsx)(y.A,{actionType:"unstakeFromVault",extraData:{actionPool:e,vault:a}})}),(0,r.jsx)(t(),{id:"3cd75b529aa4b3ee",dynamic:[g.Tj.backgroundLighterDarkLessOpaque,g.Tj.dark,g.Tj.backgroundGrey,g.Tj.backgroundLighterDarkLessOpaque],children:`.pre-form-container.__jsx-style-dynamic-selector{display:flex}.text-container.__jsx-style-dynamic-selector>p.__jsx-style-dynamic-selector:first-child{margin-top:0}.text-container.__jsx-style-dynamic-selector>p.__jsx-style-dynamic-selector:last-child{margin-bottom:0}.container.__jsx-style-dynamic-selector .MuiAlert-root{margin:0}.container.__jsx-style-dynamic-selector .MuiAlert-root.fxusd-cr{margin-bottom:40px}.container.__jsx-style-dynamic-selector .MuiAlert-root.fxusd-cr p:last-child{margin-bottom:0}.switch-container.__jsx-style-dynamic-selector{margin-left:40px;
13display:flex}.switch-container.no-margin.__jsx-style-dynamic-selector{margin-left:5px}.switch-container.__jsx-style-dynamic-selector .MuiFormControlLabel-label{margin-left:5px;font-size:13px;font-weight:700;line-height:24px}.action-form-container.__jsx-style-dynamic-selector{margin-top:-20px}.action-form-container.no-vault.__jsx-style-dynamic-selector{margin-top:20px}.action-form-container.__jsx-style-dynamic-selector>p.__jsx-style-dynamic-selector:first-child{margin-top:28px}.action-form-container.__jsx-style-dynamic-selector>.container{margin-top:14px}.flex-hor.__jsx-style-dynamic-selector{display:flex;justify-content:space-between}.container.__jsx-style-dynamic-selector .MuiAlert-standardInfo.neutral{border-color:${g.Tj.backgroundLighterDarkLessOpaque};color:${g.Tj.dark};background-color:${g.Tj.backgroundGrey}}.container.__jsx-style-dynamic-selector .MuiAlert-standardInfo.neutral .MuiAlert-icon{color:${g.Tj.backgroundLighterDarkLessOpaque}}.container.__jsx-style-dynamic-selector .boost-label{font-size:.8em;opacity:.5}.container.__jsx-style-dynamic-selector .number{font-family:monospace}`})]})};O.propTypes={poolData:d().object.isRequired,vault:d().shape({address:d().string.isRequired})};var S=n(33965),I=n(31804),B=n(99978),R=n.n(B);let M=({poolData:e,vault:a})=>{let n=new Map([["RebalancePool"===e.vaultType?"F(x) Stability Pool address":"F(x) gauge address",e.stakingAddress],..."Erc20Basic"===e.vaultType&&!A.yV.includes(e.id)?[["Curve LP token address",e.stakingTokenAddress],["Curve pool link",e.underlyingCurvePool.poolUrl]]:A.yV.includes(e.id)?[["fxUSD address",v.Ay.fxusd.address],["fxBASE address",v.Ay.fxbase.address]]:[["F(x) staked token address",e.stakingTokenAddress],["Base token address",e.baseTokenAddress],..."FxusdRebalancePool"===e.vaultSubtype?[["fxUSD address",v.Ay.fxusd.address]]:[],..."RusdRebalancePool"===e.vaultSubtype?[["rUSD address",v.Ay.rusd.address]]:[],..."BtcusdRebalancePool"===e.vaultSubtype?[["btcUSD address",v.Ay.btcusd.address]]:[],..."CvxusdRebalancePool"===e.vaultSubtype?[["cvxUSD address",v.Ay.cvxusd.address]]:[]],...a?[["Your vault address",a.address]]:[]]);return(0,r.jsx)(S.A,{addressesMap:n,network:e.blockchainId,appendedContent:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Convex pool id"}),(0,r.jsx)("td",{children:e.id})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Convex pool url"}),(0,r.jsx)("td",{children:(0,r.jsxs)(R(),{href:`${I.C1}/stake/ethereum/${e.id}`,children:[I.C1,"/stake/ethereum/",e.id]})})]})]})})};M.propTypes={poolData:d().object.isRequired};var F=n(7797),$=n(66629);let U=({poolData:e,id:a,name:n,vault:s,aggregateVaultsData:l,stakableBalance:d,expanded:h,isInsideStandaloneStakePage:m=!1})=>{let j=(0,o.useMemo)(()=>(0,$.FC)(["Deposit",null!=s?"Withdraw":null,"Info"]),[s]),b=(0,o.useMemo)(()=>(0,$.FC)([(0,r.jsx)(C,{poolData:e,vault:s}),null!=s?(0,r.jsx)(O,{poolData:e,vault:s}):null,(0,r.jsx)(M,{poolData:e,vault:s})]),[e,s]);return(0,r.jsxs)("div",{className:t().dynamic([["7d51e190622d2109",[g.Tj.backgroundTransparentGrey]]])+" container",children:[(0,r.jsx)(c.Ay,{expanded:h,Header:(0,r.jsxs)(c.d6,{className:e.active?"":"faded",children:[(0,r.jsx)(x.A,{poolData:e,name:n,nameLinkTo:m?void 0:`${I.C1}/stake/ethereum/${e.id}`}),(0,r.jsx)(c.eB,{children:(0,r.jsxs)(c.UC,{children:[(0,r.jsx)("span",{className:t().dynamic([["7d51e190622d2109",[g.Tj.backgroundTransparentGrey]]])+" small",children:"$"}),void 0===s?.claimableRewardsUsdTotal?"–":(0,r.jsx)(r.Fragment,{children:(0,T.sz)(s.claimableRewardsUsdTotal)})]})}),(0,r.jsx)(c.eB,{className:"vapr-column",children:(0,r.jsx)(c.UC,{children:void 0===e?"–":(0,r.jsxs)("span",{className:t().dynamic([["7d51e190622d2109",[g.Tj.backgroundTransparentGrey]]]),children:[(0,T.o)((0,i.A)(e.totalRewardAprs).plus(e.curveAprData?.baseApy??0)),(0,r.jsx)("span",{className:t().dynamic([["7d51e190622d2109",[g.Tj.backgroundTransparentGrey]]])+" small",children:"%"}),(0,r.jsx)(u.A,{pool:e}),(0,r.jsxs)("span",{className:t().dynamic([["7d51e190622d2109",[g.Tj.backgroundTransparentGrey]]])+" small",children:[(0,r.jsx)("br",{className:t().dynamic([["7d51e190622d2109",[g.Tj.backgroundTransparentGrey]]])}),"veFXN boost: ",(0,T.kW)((0,i.A)(e.gaugeBoost)),"x"]})]})})}),(0,r.jsx)(c.eB,{children:(0,r.jsxs)(c.UC,{children:[null==s?"–":(0,r.jsx)(r.Fragment,{children:(0,T.kW)(s.liquidityTotal,2)})," ",(0,r.jsx)("span",{className:t().dynamic([["7d51e190622d2109",[g.Tj.backgroundTransparentGrey]]])+" small",children:"LP"}),null!=s&&(0,r.jsxs)(c.UC,{discreet:!0,children:[" ≈ ",(0,r.jsx)("span",{className:t().dynamic([["7d51e190622d2109",[g.Tj.backgroundTransparentGrey]]])+" small",children:"$"}),(0,T.sz)(s.usdTotal,2)]}),d?.gt(0)&&(0,r.jsx)(F.A,{stakableBalance:d,lpTokenSymbol:"FxusdRebalancePool"===e.vaultSubtype?"fxUSD":"RusdRebalancePool"===e.vaultSubtype?"rUSD":"BtcusdRebalancePool"===e.vaultSubtype?"btcUSD":"CvxusdRebalancePool"===e.vaultSubtype?"cvxUSD":A.yV.includes(e.id)?"fxBASE":"FtokenRebalancePool"===e.vaultSubtype?e.stakingTokenSymbol:void 0})]})}),(0,r.jsx)(c.eB,{children:(0,r.jsxs)(c.UC,{children:[(0,r.jsx)("span",{className:t().dynamic([["7d51e190622d2109",[g.Tj.backgroundTransparentGrey]]])+" small",children:"$"}),void 0===l?"–":(0,r.jsx)(r.Fragment,{children:(0,T.sz)((0,i.A)(l.usdTotal),2)})]})})]}),Content:(0,r.jsx)(c.Bo,{children:(0,r.jsx)(p.A,{labels:j,panels:b})})}),(0,r.jsx)(t(),{id:"7d51e190622d2109",dynamic:[g.Tj.backgroundTransparentGrey],children:`.container.__jsx-style-dynamic-selector .icon-container{display:flex;justify-content:center;min-width:45px}.container.__jsx-style-dynamic-selector .icon-container.rebalance-pool .crypto-icon{width:30px;height:30px}.container.__jsx-style-dynamic-selector .title .pool-name{white-space:nowrap}.container.__jsx-style-dynamic-selector .title .labels-container{margin:-2px}.container.__jsx-style-dynamic-selector .title .label{display:flex;align-items:center;height:20px;width:fit-content;margin:2px;padding:0 5px;border-radius:10px;background-color:${g.Tj.backgroundTransparentGrey};font-size:12px;font-weight:400;white-space:nowrap}.container.__jsx-style-dynamic-selector .title .label .crypto-icon{min-width:0;width:16px;height:16px;margin-left:3px}`})]},a)};U.propTypes={id:d().number.isRequired,name:d().string.isRequired,aggregateVaultsData:d().object.isRequired,expanded:d().bool,isInsideStandaloneStakePage:d().bool};let z=o.memo(U)},42426:(e,a,n)=>{"use strict";n.d(a,{A:()=>f});var r=n(66305);n(67141);var s=n(37851),t=n(58511),o=n.n(t),i=n(99978),l=n.n(i),d=n(66671),c=n(56474),p=n(46357),u=n(71377),x=n(66629),h=n(5901),m=n(95589),j=n(81403),b=n(12881);let y=({poolData:e,name:a,nameHref:n,nameLinkTo:t,isVotePage:o=!1,larger:i=!1})=>{let y=(0,x.FC)([void 0!==e.curveAprData?.baseApy?(0,s.A)(e.curveAprData.baseApy):null,...e.rewardAprs||[]]),[f,g]=(e.rewardCoins||[]).reduce((e,a,n)=>{let[r,t]=e,o=r.findIndex(({address:e})=>void 0!==a.address&&((0,h.lc)(e)===(0,h.lc)(a.address)||(0,m.XI)(m.Ay.fxp_wbtc_wrapper,a)&&(0,m.XI)(e,m.Ay.wbtc)));return o>-1?t[o]=t[o].plus(y[n]):(r=[...r,a],t=[...t,(0,s.A)(y[n])]),[r,t]},[[],[]]),k=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"pool-name",children:a}
13),!1===e.active&&!o&&" (deprecated)"]}),T=o?(0,r.jsx)(c.A,{title:k,arrow:!0,placement:"right",enterDelay:500,children:(0,r.jsx)("a",{href:"https://fx.aladdin.club/v2/earn",target:"_blank",rel:"noopener noreferrer",className:"pool-name",children:a})}):n?(0,r.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:k}):t?(0,r.jsx)(l(),{href:t,children:k}):k;return(0,r.jsxs)(d.eB,{orientation:"horizontal",larger:i,children:[(0,r.jsx)("div",{className:`icon-container ${"RebalancePool"===e.vaultType?"rebalance-pool":"lp-token"}`,children:"FxusdRebalancePool"===e.vaultSubtype||j.yV.includes(e.id)?(0,r.jsx)(p.A,{coin:{address:m.Ay.fxusd.address,blockchainId:"ethereum"},className:"icon"}):"RusdRebalancePool"===e.vaultSubtype?(0,r.jsx)(p.A,{coin:{address:m.Ay.rusd.address,blockchainId:"ethereum"},className:"icon"}):"BtcusdRebalancePool"===e.vaultSubtype?(0,r.jsx)(p.A,{coin:{address:m.Ay.btcusd.address,blockchainId:"ethereum"},className:"icon"}):"CvxusdRebalancePool"===e.vaultSubtype?(0,r.jsx)(p.A,{coin:{address:m.Ay.cvxusd.address,blockchainId:"ethereum"},className:"icon"}):"FtokenRebalancePool"===e.vaultSubtype?(0,r.jsx)(p.A,{coin:{address:e.stakingTokenAddress,blockchainId:"ethereum"},className:"icon"}):e.coins?.length===1?(0,r.jsx)(p.A,{coin:e.coins[0],className:"icon"}):(0,r.jsx)(u.A,{coins:e.underlyingCurvePool?.coins||[],className:"icon"})}),(0,r.jsxs)(d.hE,{children:[T,o&&(0,r.jsxs)("div",{style:{marginBottom:12},children:[(0,r.jsxs)(d.tK,{children:["Pool: ",(0,r.jsx)(b.A,{address:e.address,blockchainId:"ethereum"})]}),(0,r.jsxs)(d.tK,{children:["Gauge: ",(0,r.jsx)(b.A,{address:e.gaugeAddress,blockchainId:"ethereum"})]})]}),(0,r.jsx)("div",{className:"labels-container",children:"RebalancePool"===e.vaultType||j.yV.includes(e.id)?(0,r.jsxs)(r.Fragment,{children:[g.some(e=>(e??0)>0)&&!o&&(0,r.jsxs)("span",{className:"label",children:["Earns",f.filter((e,a)=>(g[a]??0)>0).map(e=>(0,r.jsx)(c.A,{title:e.symbol,arrow:!0,placement:"right",children:(0,r.jsx)("span",{children:(0,r.jsx)(p.A,{coin:e,className:"small-icon"},e.address)})},e.address))]}),!j.yV.includes(e.id)&&(0,r.jsxs)("span",{className:"label",children:["Redeems to ",e.redeemingTokenSymbol]})]}):e.underlyingCurvePool?(0,r.jsx)("span",{className:"label",children:"Curve pool"}):null})]})]})};y.propTypes={poolData:o().object.isRequired,name:o().string,nameHref:o().string,nameLinkTo:o().string,isVotePage:o().bool,larger:o().bool};let f=y},44385:(e,a,n)=>{"use strict";n.d(a,{x:()=>d});var r=n(17654),s=n.n(r),t=n(37851),o=n(79931),i=n(5901),l=n(66629);let d=s()((e,a,n,r,s,d)=>e.map(e=>{let a,c,p,u,x,h=n?.[e.stakingTokenContractKey],m=r?.get(e.curvePool.address,e.curvePool.blockchainId),j=void 0!==h&&void 0!==m?h.times(m):void 0;if(void 0!==d&&void 0!==j){let a=d.rewardUsdRates[(0,i.lc)(e.address)],n=a.find(([e])=>e===o.A.prisma),r=a.find(([e])=>e===o.A.crv),s=a.find(([e])=>e===o.A.cvx);p=void 0===n||n[2].eq(0)?(0,t.A)(0):j.eq(0)?(0,t.A)(501):n[2].div(j).times(100),u=void 0===r||r[2].eq(0)?(0,t.A)(0):j.eq(0)?(0,t.A)(501):r[2].div(j).times(100),x=void 0===s||s[2].eq(0)?(0,t.A)(0):j.eq(0)?(0,t.A)(501):s[2].div(j).times(100)}if(void 0!==s){let n=s[e.curvePool.id];a=(0,t.A)(Math.max(n.baseApy,0)),c=(0,t.A)(n.crvBoost)}let b=void 0!==p&&void 0!==u&&void 0!==x&&void 0!==a?(0,l.EJ)([a,p,u,x]):void 0;return{...e,totalLockedUsdValue:j,totalLockedUsdValueNumber:j?.toNumber(),totalApy:b,totalApyNumber:b?.toNumber(),baseApy:a,prismaApy:p,crvApy:u,crvBoost:c,cvxApy:x}}),{normalizer:([e,a,n,r,s,t])=>`
14    ${e.length}|
15    ${a}|
16    ${Object.keys(n).length}|
17    ${typeof r}|
18    ${void 0!==s?Object.keys(s).length:0}|
19    ${t?.cacheKey}
20  `,maxAge:6e4})},45969:(e,a,n)=>{"use strict";n.r(a),n.d(a,{arePoolsLoaded:()=>m,default:()=>j,findPoolForLpTokenAddress:()=>h,getPoolByConvexPoolId:()=>u,getPoolById:()=>p,getPoolByStakingTokenContractKey:()=>x});var r=n(31804),s=n(17654),t=n.n(s),o=n(67896);let i=t()(async()=>(await (0,o.A)(`${r.Rh.prisma}/api/prisma/convex-pools`)).pools,{promise:!0,maxAge:6e5});var l=n(55969);let d=[];setTimeout(async()=>{if("prisma"===r.yl||"root"===r.yl){let e=(await i()).map(e=>({...e,curvePool:{...e.curvePool,...(0,l.kU)(e.curvePool)},get stakingTokenContractKey(){return`Prisma${e.curvePool.convexPoolData.id}StakingToken`},get underlyingTokenContractKey(){return`Prisma${e.curvePool.convexPoolData.id}UnderlyingToken`},get underlyingCurvePool(){return e.curvePool},get underlyingConvexPool(){return e.curvePool.convexPoolData},get convexUrl(){return`${r.Rh.prisma}/stake/${e.curvePool.blockchainId}/${e.curvePool.convexPoolData.id}`}}));d.push(...e)}},0);var c=n(5901);let p=e=>d.find(a=>e===a.id),u=(e,a="ethereum")=>d.find(n=>e===n.curvePool.convexPoolData.id&&n.curvePool.blockchainId===a),x=(e,a="ethereum")=>d.find(n=>e===n.stakingTokenContractKey&&n.curvePool.blockchainId===a),h=t()((e,a="ethereum")=>{let n=(0,c.lc)(e),r=d.find(({address:e,curvePool:r})=>(0,c.lc)(e)===n&&r.blockchainId===a);if(!r)throw Error(`Prisma pool couldn’t be found for lp token "${e}", likely due to Prisma pools data not being loaded yet.`);return r},{length:2,max:20}),m=()=>d?.length>0,j=d},46183:(e,a,n)=>{"use strict";var r=n(58773);a.A=void 0;var s=r(n(10541)),t=n(66305);a.A=(0,s.default)((0,t.jsx)("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"}),"HourglassEmpty")},59735:(e,a,n)=>{"use strict";n.d(a,{A:()=>en});var r=n(66305),s=n(67141),t=n(37851),o=n(58511),i=n.n(o),l=n(99284),d=n(95589),c=n(48491),p=n(33027),u=n(66671),x=n(12553),h=n(89028),m=n(7797),j=n(47936),b=n(96295),y=n.n(b),f=n(527),g=n(9472),k=n(64675),T=n(10908),v=n(93
20058),A=n(11256),L=n(57443),w=n(56474),N=n(46357),D=n(69025),C=n(81403);let _=(0,r.jsx)(r.Fragment,{children:"Max theoretical net vAPR using maximum leverage on Resupply. More information on the Resupply website."}),P=({size:e="small",textPrefix:a,marketUrl:n,maxApr:t})=>{let o=(0,s.useCallback)(e=>e.stopPropagation(),[]);return(0,r.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:o,children:(0,r.jsx)(l.A,{size:e,variant:"outlined",label:(0,r.jsxs)(r.Fragment,{children:[a,"max ",(0,r.jsxs)("strong",{children:[(0,D.o)(t,0),"%"]})," on Resupply",(0,r.jsx)(N.A,{customId:"resupply",noShadow:!0}),(0,r.jsx)("span",{className:"external-link-icon",children:(0,r.jsx)(L.A,{fontSize:"small"})})]})})})},q=({currentAprData:e,resupplyMarket:{maxApr:a,url:n},size:s="small"})=>{let o=(0,t.A)(a);return void 0!==e?.cumulativeApy&&o.minus(C.rA).gt(e.cumulativeApy)?(0,r.jsxs)("div",{className:`jsx-1b487f3450fca558 container ${s}`,children:[(0,r.jsx)(w.A,{arrow:!0,title:_,children:(0,r.jsx)("span",{className:"jsx-1b487f3450fca558",children:(0,r.jsx)(P,{size:s,maxApr:o,textPrefix:"medium"===s?"":"Or ",marketUrl:n})})}),(0,r.jsx)(y(),{id:"1b487f3450fca558",children:".container.jsx-1b487f3450fca558{display:block;margin-left:-2px;margin-top:2px}.container.jsx-1b487f3450fca558 .MuiChip-root{font-size:12px;height:18px;border-style:dashed;border-color:#999;font-weight:400;cursor:pointer}.container.jsx-1b487f3450fca558 .MuiChip-root:hover{border-style:solid}.container.medium.jsx-1b487f3450fca558 .MuiChip-root{font-size:14px;height:21px;border-color:#555}.container.jsx-1b487f3450fca558 .MuiChip-root .MuiChip-label{padding-left:5px;padding-right:5px}.container.jsx-1b487f3450fca558 .MuiChip-root .MuiChip-label::first-letter{text-transform:uppercase}.container.medium.jsx-1b487f3450fca558 .MuiChip-root .MuiChip-label{padding-right:6px}.container.jsx-1b487f3450fca558 .MuiChip-root .external-link-icon .MuiSvgIcon-root{position:relative;top:1px;margin-left:4px;font-size:11px}.container.medium.jsx-1b487f3450fca558 .MuiChip-root .external-link-icon .MuiSvgIcon-root{top:2px;font-size:13px}.container.jsx-1b487f3450fca558 .MuiChip-root .crypto-icon{display:inline-block;width:13px;height:13px;position:relative;top:2px;left:2px;margin-left:1px}.container.medium.jsx-1b487f3450fca558 .MuiChip-root .crypto-icon{width:14px;height:14px;top:2px}.container.jsx-1b487f3450fca558 .MuiChip-root strong{font-weight:500}"})]}):null};q.propTypes={currentAprData:i().shape({cumulativeApy:i().instanceOf(t.A)}),resupplyMarket:i().shape({maxApr:i().number.isRequired,url:i().string.isRequired}).isRequired,size:i().string};let O=({resupplyMarket:e,currentAprData:a})=>{let{maxApr:n,url:s}=e;return void 0!==a?.cumulativeApy&&(0,t.A)(n).minus(C.rA).gt(a.cumulativeApy)?(0,r.jsxs)("div",{className:"jsx-10e9ecc906f5e49d container",children:[(0,r.jsxs)(v.A,{severity:"info",children:[(0,r.jsxs)(A.A,{children:["Earn more! ",(0,r.jsx)(q,{resupplyMarket:e,size:"medium",currentAprData:a})]}),"This Curve lending vault is also used as collateral on Resupply, where borrowing reUSD against it can earn more than what you’d get here for simple lending. The maximum APR can be reached by using leverage: Resupply leverage works quite differently than simple lending through Convex and carries different risks. To earn this higher APR, deposit your tokens on ",(0,r.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"jsx-10e9ecc906f5e49d",children:"this Resupply market"})," and use leverage!"]}),(0,r.jsx)(y(),{id:"10e9ecc906f5e49d",children:".container.jsx-10e9ecc906f5e49d .MuiAlert-root{margin-top:0}.container.jsx-10e9ecc906f5e49d .MuiAlert-root .container{display:inline-block;margin-left:3px;position:relative;top:-2px}"})]}):null},S=({convexPoolId:e,networkChoice:a,currentAprData:n,correspondingResupplyMarket:t})=>{let o,i,l,d=(0,c.getLendingVaultByConvexPoolId)(e,a);if(d.usesDepositToken){let e=T.kl.stakeWrappedLpToken.balanceHook({actionPool:d})?.gt(0);[i,l]=(0,s.useState)(e),(0,s.useEffect)(()=>{void 0===i&&e&&l(!0)},[i,e]),o=(0,s.useCallback)(()=>l(!i),[i])}return(0,r.jsxs)("div",{className:"jsx-54d8e7d2ca2f91d8 container",children:[t&&(0,r.jsx)(O,{resupplyMarket:t,currentAprData:n}),(0,r.jsxs)("div",{className:"jsx-54d8e7d2ca2f91d8 pre-form-container",children:[(0,r.jsx)("div",{className:"jsx-54d8e7d2ca2f91d8 text-container",children:(0,r.jsxs)("p",{className:"jsx-54d8e7d2ca2f91d8",children:["Deposit ",d.assets.borrowed.symbol," into ",(0,r.jsx)("a",{href:d.lendingVaultUrl,target:"_blank",rel:"noopener noreferrer",className:"jsx-54d8e7d2ca2f91d8",children:"this Curve lending vault"})," (without staking in the Curve gauge), and then stake your Lending Vault tokens here to earn CVX on top of Curve’s native rewards."]})}
20),d.usesDepositToken&&(0,r.jsx)("div",{className:"jsx-54d8e7d2ca2f91d8 switch-container",children:(0,r.jsx)(g.A,{control:(0,r.jsx)(k.A,{size:"small",checked:i,color:"primary",onChange:o}),label:"Advanced"})})]}),i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"jsx-54d8e7d2ca2f91d8 action-form-container",children:[(0,r.jsxs)("p",{className:"jsx-54d8e7d2ca2f91d8",children:["Convert and stake ",d.lpTokenInfo.symbol," in one go:"]}),(0,r.jsx)(f.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to deposit and stake`,actionType:"depositAndStakeLpToken",extraData:{actionPool:d}})]}),(0,r.jsxs)("div",{className:"jsx-54d8e7d2ca2f91d8 action-form-container",children:[(0,r.jsxs)("p",{className:"jsx-54d8e7d2ca2f91d8",children:["Or separately deposit ",d.lpTokenInfo.symbol," with this first form, and stake the wrapped deposit token with this second form:"]}),(0,r.jsx)(f.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to deposit`,actionType:"depositLpToken",extraData:{actionPool:d}}),(0,r.jsx)(f.A,{label:`Amount of wrapped ${d.lpTokenInfo.symbol} tokens to stake`,actionType:"stakeWrappedLpToken",extraData:{actionPool:d}})]})]}):(0,r.jsx)("div",{className:"jsx-54d8e7d2ca2f91d8 action-form-container",children:(0,r.jsx)(f.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to deposit and stake`,actionType:"depositAndStakeLpToken",extraData:{actionPool:d}})}),(0,r.jsx)(y(),{id:"54d8e7d2ca2f91d8",children:".pre-form-container.jsx-54d8e7d2ca2f91d8{display:flex}.text-container.jsx-54d8e7d2ca2f91d8>p.jsx-54d8e7d2ca2f91d8:first-child{margin-top:0}.text-container.jsx-54d8e7d2ca2f91d8>p.jsx-54d8e7d2ca2f91d8:last-child{margin-bottom:0}.switch-container.jsx-54d8e7d2ca2f91d8{margin-left:40px;display:flex;align-items:flex-end}.switch-container.jsx-54d8e7d2ca2f91d8 .MuiFormControlLabel-label{margin-left:5px;font-size:13px;font-weight:700;line-height:24px}.action-form-container.jsx-54d8e7d2ca2f91d8{margin-top:14px}.action-form-container.jsx-54d8e7d2ca2f91d8>p.jsx-54d8e7d2ca2f91d8:first-child{margin-top:28px}.action-form-container.jsx-54d8e7d2ca2f91d8>.container{margin-top:14px}"})]})};S.propTypes={networkChoice:i().oneOf(p.Ki).isRequired,convexPoolId:i().number.isRequired};var I=n(15406),B=n(27083);let R=({convexPoolId:e,networkChoice:a})=>{let n,t,o,i,{ethereumWeb3:{account:l}}=(0,s.useContext)(I.A),d=(0,c.getLendingVaultByConvexPoolId)(e,a);if(d.usesDepositToken){let e=T.kl.stakeWrappedLpToken.balanceHook({actionPool:d})?.gt(0);
20[t,o]=(0,s.useState)(e),(0,s.useEffect)(()=>{void 0===t&&e&&o(!0)},[t,e]),n=(0,s.useCallback)(()=>o(!t),[t])}return(i=d.lpTokenAddress||d.address,B.some(({user:e,lpToken:a})=>e.toLowerCase()===l?.toLowerCase()&&a.toLowerCase()===i?.toLowerCase()))?(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)(v.A,{severity:"warning",children:["We have detected that your address has approved a malicious contract as a possible spender for your currently-staked lp tokens. Your ",d.lpTokenInfo.symbol," lp tokens aren’t currently at risk because they’re currently deposited on Convex, BUT if you withdrew them from Convex, they could be siphoned by the attacker. We’ve hidden the Withdraw button for you so you don’t fall prey to this attack; please reach out to us (see our various contact info at the bottom of the page) so we can guide you through revoking this approval, and then make this Withdraw button appear again for you!"]})}):(0,r.jsxs)("div",{className:"jsx-8fb34dae2afda2b3 container",children:[(0,r.jsxs)("div",{className:"jsx-8fb34dae2afda2b3 pre-form-container",children:[(0,r.jsx)("div",{className:"jsx-8fb34dae2afda2b3",children:(0,r.jsx)("span",{className:"jsx-8fb34dae2afda2b3"})}),d.usesDepositToken&&(0,r.jsx)("div",{className:"jsx-8fb34dae2afda2b3 switch-container",children:(0,r.jsx)(g.A,{control:(0,r.jsx)(k.A,{size:"small",checked:t,color:"primary",onChange:n}),label:"Advanced"})})]}),d.isKilled&&!d.isImpactedByVyperBug&&(0,r.jsx)("div",{className:"jsx-8fb34dae2afda2b3 container-shutdown-pool",children:(0,r.jsx)(v.A,{severity:"info",children:"This pool has been shutdown, and is not accruing rewards anymore."})}),d.isKilled&&d.isImpactedByVyperBug&&(0,r.jsx)("div",{className:"jsx-8fb34dae2afda2b3 container-shutdown-pool",children:(0,r.jsxs)(v.A,{severity:"info",children:["arbitrum"===d.blockchainId?"You are invited to exit this pool, out of caution related to a small number of old Curve pools being targeted after the discovery of a vulnerability in a previous version of the Vyper compiler. This pool has NOT been exploited, however it uses an old Vyper version that was found to be vulnerable, so you’re encouraged to withdraw from this pool, and a new improved one will be released soon enough to take its place.":"This pool’s underlying Curve pool was affected by a vulnerability in a previous version of the Vyper compiler that was exploited. Four Curve pools have been exploited in total (alETH/ETH, msETH/ETH, pETH/ETH and CRV/ETH), and funds in ALL other pools are SAFE and not affected by this bug.",(0,r.jsx)("br",{className:"jsx-8fb34dae2afda2b3"}),(0,r.jsx)("br",{className:"jsx-8fb34dae2afda2b3"}),"Please find more context here: ",(0,r.jsx)("a",{href:"https://t.me/curvefi/572482",target:"_blank",rel:"noopener noreferrer",className:"jsx-8fb34dae2afda2b3",children:"Announcement from Curve"}),(0,r.jsx)("br",{className:"jsx-8fb34dae2afda2b3"}),"And feel free to follow Curve on ",(0,r.jsx)("a",{href:"https://t.me/curvefi",target:"_blank",rel:"noopener noreferrer",className:"jsx-8fb34dae2afda2b3",children:"Telegram"}),", ",(0,r.jsx)("a",{href:"https://discord.gg/rgrfS7W",target:"_blank",rel:"noopener noreferrer",className:"jsx-8fb34dae2afda2b3",children:"Discord"})," or ",(0,r.jsx)("a",{href:"https://twitter.com/curvefinance",target:"_blank",rel:"noopener noreferrer",className:"jsx-8fb34dae2afda2b3",children:"Twitter"})," for updates on this situation."]})}),t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"jsx-8fb34dae2afda2b3 action-form-container",children:[(0,r.jsxs)("p",{className:"jsx-8fb34dae2afda2b3",children:["Unstake and withdraw ",d.lpTokenInfo.symbol," in one go:"]}),(0,r.jsx)(f.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to unstake and withdraw`,actionType:"unstakeAndWithdrawLpToken",extraData:{actionPool:d}})]}),(0,r.jsxs)("div",{className:"jsx-8fb34dae2afda2b3 action-form-container",children:[(0,r.jsxs)("p",{className:"jsx-8fb34dae2afda2b3",children:["Or separately unstake ",d.lpTokenInfo.symbol," with this first form, and unwrap the wrapped deposit token with this second form:"]}),(0,r.jsx)(f.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to unstake`,actionType:"unstakeLpToken",extraData:{actionPool:d}}),(0,r.jsx)(f.A,{label:`Amount of wrapped ${d.lpTokenInfo.symbol} tokens to unwrap`,actionType:"withdrawWrappedLpToken",extraData:{actionPool:d}})]})]}):(0,r.jsx)("div",{className:"jsx-8fb34dae2afda2b3 action-form-container",children:(0,r.jsx)(f.A,{label:`Amount of ${d.lpTokenInfo.symbol} tokens to unstake and withdraw`,actionType:"unstakeAndWithdrawLpToken",extraData:{actionPool:d}})}),(0,r.jsx)(y(),{id:"8fb34dae2afda2b3",children:".pre-form-container.jsx-8fb34dae2afda2b3{display:flex;justify-content:end}.text-container.jsx-8fb34dae2afda2b3>p.jsx-8fb34dae2afda2b3:first-child{margin-top:0}.text-container.jsx-8fb34dae2afda2b3>p.jsx-8fb34dae2afda2b3:last-child{margin-bottom:0}.switch-container.jsx-8fb34dae2afda2b3{margin-left:40px;
20display:flex;align-items:flex-end}.switch-container.jsx-8fb34dae2afda2b3 .MuiFormControlLabel-label{margin-left:5px;font-size:13px;font-weight:700;line-height:24px}.action-form-container.jsx-8fb34dae2afda2b3{margin-top:14px}.action-form-container.jsx-8fb34dae2afda2b3>p.jsx-8fb34dae2afda2b3:first-child{margin-top:28px}.action-form-container.jsx-8fb34dae2afda2b3>.container{margin-top:14px}.container-shutdown-pool.jsx-8fb34dae2afda2b3 .MuiAlert-root{margin:0}"})]})};R.propTypes={convexPoolId:i().number.isRequired,networkChoice:i().oneOf(p.Ki).isRequired};var M=n(33965),F=n(31804),$=n(64904),U=n(99978),z=n.n(U);let E=({convexPoolId:e,networkChoice:a})=>{let n=(0,c.getLendingVaultByConvexPoolId)(e,a),s=n.usesDepositToken?$.Ay:$.Ay[n.blockchainId],t=new Map([[n.isLendingVault?"Lending Vault token address":"LP token address",n.lpTokenAddress||n.address],["Deposit contract address",s.Booster.address],["Rewards contract address",s[n.rewardContractKey].address]]);return(0,r.jsx)(M.A,{addressesMap:t,network:n.blockchainId,appendedContent:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Convex pool id"}),(0,r.jsx)("td",{children:n.convexPoolData.id})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Convex pool url"}),(0,r.jsx)("td",{children:(0,r.jsxs)(z(),{href:`${F.Rh.curve}/stake/${n.blockchainId}/${n.convexPoolData.id}`,children:[F.Rh.curve,"/stake/",n.blockchainId,"/",n.convexPoolData.id]})})]})]})})};E.propTypes={networkChoice:i().oneOf(p.Ki).isRequired,convexPoolId:i().number.isRequired};var V=n(3380),G=n(44182),W=n(88648),H=n(26642),K=n(80646),Y=n(17654),X=n.n(Y),J=n(67896);let Z=X()(async()=>(await (0,J.A)(`${F.Rh.curve}/api/resupply/markets`)).markets,{promise:!0,maxAge:3e5});var Q=n(5901);let ee=["Deposit","Withdraw","Info"],ea=({networkChoice:e,convexPoolId:a,name:n,lpTokenSymbol:o,stakedBalance:i,stakedBalanceUsdValue:p,stakableBalance:b,poolEarnedUsdValue:y,totalLockedUsdValue:f,currentAprData:g,cumulativeApy:k,isPendingHarvest:T=!1,crvBoost:v,baseApy:A,crvApy:L,cvxApy:w,additionalRewards:N,expanded:C,isInsideStandaloneStakePage:_=!1})=>{let P=(0,c.getLendingVaultByConvexPoolId)(a,e),O=P.isKilled,I=P.isKilled,B=void 0===g?.cumulativeApy||P.usesHarvester&&void 0===k,M=P.usesHarvester?[...T?[d.Ay.crv.address]:[],...N.filter(({isPendingHarvest:e})=>e).map(({coinAddress:e})=>e)]:[],$=(()=>{let[e,a]=(0,K.A)([]);return(0,s.useEffect)(()=>{Z().then(e=>{a(e)})},[]),{markets:e,find:a=>e?.filter(e=>(0,Q.lc)(e.collateralAddress)===(0,Q.lc)(a)).sort((e,a)=>a.maxApr-e.maxApr)[0]}})().find(P.address),U=!!$,Y=(0,s.useMemo)(()=>[(0,r.jsx)(S,{convexPoolId:a,networkChoice:e,currentAprData:g,correspondingResupplyMarket:$}),(0,r.jsx)(R,{convexPoolId:a,networkChoice:e}),(0,r.jsx)(E,{convexPoolId:a,networkChoice:e})],[a,e,g,$]);return(0,V.c)({isKilled:P.isKilled,poolEarnedUsdValue:y,stakedBalance:i})?(0,r.jsx)(u.Ay,{expanded:C,Header:(0,r.jsxs)(u.d6,{className:P.isKilled?"faded":"",children:[(0,r.jsxs)(u.eB,{orientation:"horizontal",larger:!0,children:[(0,r.jsx)(j.A,{assets:P.assets,className:"icon"}),(0,r.jsx)(u.hE,{children:_?n:(0,r.jsx)(z(),{href:`${F.Rh.curve}/stake/${P.blockchainId}/${P.convexPoolData.id}`,children:n})})]}),(0,r.jsx)(u.eB,{children:(0,r.jsxs)(u.UC,{children:[(0,r.jsx)("span",{className:"small",children:"$"}),void 0===y?"–":(0,r.jsx)(r.Fragment,{children:(0,D.sz)(y)})]})}),(0,r.jsx)(u.eB,{children:(0,r.jsxs)(u.UC,{children:[B||I?"–":(0,r.jsxs)("span",{children:[(0,D.o)(g.cumulativeApy),(0,r.jsxs)("span",{className:"small",children:["%",P.usesHarvester&&(0,r.jsxs)(r.Fragment,{children:[" ","(proj. ",(0,D.o)(k),"%)"]})]}),(0,r.jsx)(h.A,{pool:P,poolName:n,baseApy:A,crvApy:L,crvBoost:v,additionalRewards:N,cvxApy:w,cumulativeApy:k,currentAprData:g,rewardsPendingHarvest:M}),P.usesHarvester&&M.length>0&&(0,r.jsx)(G.A,{}),(P.gaugeStatus?.rewardsNeedNudging||P.gaugeStatus?.areCrvRewardsStuckInBridge)&&(0,r.jsx)(W.A,{pool:P})]}),null!=v&&!I&&(0,r.jsx)(l.A,{className:"vecrv-boost-chip",size:"small",variant:"outlined",label:(0,r.jsxs)(r.Fragment,{children:["veCRV boost: ",(0,D.kW)((0,t.A)(v)),"x"]})}),void 0!==P.pointsData&&(0,r.jsx)("span",{className:"points-campaigns",children:P.pointsData.map(e=>(0,r.jsx)(H.A,{pointsData:e},e.platform))}),U&&(0,r.jsx)(q,{resupplyMarket:$,currentAprData:g})]})}),(0,r.jsx)(u.eB,{children:(0,r.jsxs)(u.UC,{children:[void 0===i?"–":(0,r.jsx)(r.Fragment,{children:(0,D.kW)(i,2)})," ",(0,r.jsx)("span",{className:"small",children:o}),void 0!==p&&(0,r.jsxs)(u.UC,{discreet:!0,children:[" ≈ ",(0,r.jsx)("span",{className:"small",children:"$"}),(0,D.sz)(p,2)]}),b?.gt(0)&&(0,r.jsx)(m.A,{stakableBalance:b})]})}),(0,r.jsx)(u.eB,{children:(0,r.jsxs)(u.UC,{children:[(0,r.jsx)("span",{className:"small",children:"$"}),void 0===f?"–":(0,r.jsx)(r.Fragment,{children:(0,D.sz)(f,2)})]})})]}),Content:(0,r.jsx)(u.Bo,{children:(0,r.jsx)(x.A,{labels:O?ee.slice(1):ee,panels:O?Y.slice(1):Y})})},a):null};ea.propTypes={networkChoice:i().oneOf(p.Ki).isRequired,convexPoolId:i().number.isRequired,name:i().string.isRequired,lpTokenSymbol:i().string.isRequired,stakedBalance:i().instanceOf(t.A),stakedBalanceUsdValue:i().instanceOf(t.A),poolEarnedUsdValue:i().instanceOf(t.A),totalLockedUsdValue:i().instanceOf(t.A),currentAprData:i().shape({cumulativeApy:i().instanceOf(t.A),isPendingHarvest:i().bool,baseApy:i().oneOfType([i().string,i().number]),crvApy:i().instanceOf(t.A),cvxApy:i().instanceOf(t.A),additionalRewards:i().array}),cumulativeApy:i().instanceOf(t.A),isPendingHarvest:i().bool,expanded:i().bool,isInsideStandaloneStakePage:i().bool};let en=s.memo(ea)},73325:e=>{var a=function(e){var a=/[\\^$.*+?()[\]{}|]/g,n=RegExp(a.source);return e&&n.test(e)?e.replace(a,"\\$&"):e},n=function(e){return"string"==typeof e},r=function(e){var a=[];return e.forEach(function(e){Array.isArray(e)?a=a.concat(e):a.push(e)}),a};e.exports=function(e,s,t){return Array.isArray(e)||(e=[e]),r(e.map(function(e){return n(e)?function(e,r,s){var t=0,o=0;if(""===e)return e;if(!e||!n(e))throw TypeError("First argument to react-string-replace#replaceString must be a string");var i=r;i instanceof RegExp||(i=RegExp("("+a(i)+")","gi"));for(var l=e.split(i),d=1,c=l.length;d<c;d+=2){if(void 0===l[d]||void 0===l[d-1]){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}o=l[d].length,t+=l[d-1].length,l[d]=s(l[d],d,t),t+=o}return l}(e,s,t):e}))}},73828:(e,a,n)=>{"use strict";n.d(a,{A:()=>d});var r=n(37851),s=n(17654),t=n.n(s),o=n(5901),i=n(13835);let l=t()((e,a,n)=>{let s=e.map(e=>{let a=n?.withConvexBoost.earned[(0,o.lc)(e.address)],s=a?.every(([,,e])=>void 0!==e)?a?.reduce((e,[,,a])=>e.plus(a),(0,r.A)(0)):void 0;return{...e,receiverType:n?.receiverTypes[(0,o.lc)(e.address)],earnings:a,poolEarnedUsdValue:s,poolEarnedUsdValueNumber:s?.toNumber()}});return{appendedDataCacheIdentifier:`
21      ${s.map(({poolEarnedUsdValueNumber:e})=>e).join(";")}
22      |${a}
23    `,poolsWithDepositsAndRewards:s}}
23,{normalizer:([e,a,n])=>`
24    ${e.length}-${e?.[0]?.blockchainId}-${e?.[0]?.isLendingVault}|
25    ${a}|
26    ${n?.cacheKey}
27  `,maxAge:6e4}),d=(e,a)=>{let{poolsWithDeposits:n,appendedDataCacheIdentifier:r}=(0,i.A)(e);return l(n,r,a)}},95822:(e,a,n)=>{"use strict";var r=n(58773);a.A=void 0;var s=r(n(10541)),t=n(66305);a.A=(0,s.default)((0,t.jsx)("path",{d:"M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12m8 5h2v-2h-2zM21 4h-6v6l2.24-2.24C18.32 8.85 19 10.34 19 12c0 2.61-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74 0-2.21-.91-4.2-2.36-5.64zm-10 9h2V7h-2z"}),"SyncProblem")}}]);

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.