diff --git a/404/index.html b/404/index.html index 225afc4..653956a 100644 --- a/404/index.html +++ b/404/index.html @@ -1 +1 @@ -YieldLend - YieldLend
404 - Page not found

Page not found

Sorry, we couldn't find the page you were looking for.
We suggest you go back to the Dashboard.

Back to Dashboard
\ No newline at end of file +YieldLend - YieldLend
404 - Page not found

Page not found

Sorry, we couldn't find the page you were looking for.
We suggest you go back to the Dashboard.

Back to Dashboard
\ No newline at end of file diff --git a/500/index.html b/500/index.html index 913d264..64913aa 100644 --- a/500/index.html +++ b/500/index.html @@ -1 +1 @@ -YieldLend - YieldLend

Something went wrong

Sorry, an unexpected error happened. In the meantime you may try reloading the page, or come back later.

If the error continues to happen,
you may report it to this Discord channel.

\ No newline at end of file +YieldLend - YieldLend

Something went wrong

Sorry, an unexpected error happened. In the meantime you may try reloading the page, or come back later.

If the error continues to happen,
you may report it to this Discord channel.

\ No newline at end of file diff --git a/_next/static/L-vDAujnvOggiekG6tVje/_buildManifest.js b/_next/static/UI8meQ5TaRNuzslu4PZH_/_buildManifest.js similarity index 61% rename from _next/static/L-vDAujnvOggiekG6tVje/_buildManifest.js rename to _next/static/UI8meQ5TaRNuzslu4PZH_/_buildManifest.js index 5fa100c..a9926ed 100644 --- a/_next/static/L-vDAujnvOggiekG6tVje/_buildManifest.js +++ b/_next/static/UI8meQ5TaRNuzslu4PZH_/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,c,a,e,t,i,n,k,d,u){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[c,a,t,"static/chunks/4017-7c111128aad1e10d.js","static/chunks/543-c97dfc83bce811f8.js",e,s,"static/chunks/3127-fb8129a2f17416e0.js",i,"static/chunks/8-9db73a7e4c539167.js","static/chunks/7573-ec6e6e99ff2bc795.js","static/chunks/pages/index-552fa5b4c8787cdc.js"],"/404":["static/chunks/pages/404-26923f780a8c6844.js"],"/500":["static/chunks/pages/500-b25eaf62508b333e.js"],"/_error":["static/chunks/pages/_error-f7c9e698edebedd1.js"],"/faucet":[c,"static/chunks/4718-91c54d3f1dd6b3cf.js",s,"static/chunks/pages/faucet-ef1b381e0a8ac389.js"],"/history":[c,n,"static/chunks/4459-616411d2569b6c3e.js",s,"static/chunks/pages/history-9811f28dec774694.js"],"/markets":[n,e,i,"static/chunks/pages/markets-a14561e101107327.js"],"/reserve-overview":[c,k,"static/chunks/8705-15ace87e89ffc8b9.js",e,d,"static/chunks/pages/reserve-overview-96c11f6f2615df3a.js"],"/sale":["static/chunks/4b358913-8dd581dad2a58403.js",a,u,"static/chunks/5887-f83fbdd714d141e0.js",s,"static/chunks/pages/sale-56107359ed3b9780.js"],"/staking":[a,u,"static/chunks/4600-50f6157209898d2a.js",s,"static/chunks/pages/staking-deb10b4cd38580ed.js"],"/v3-migration":[t,k,s,d,"static/chunks/pages/v3-migration-50a880c560e32b15.js"],"/vesting":[s,"static/chunks/pages/vesting-5d3d003480c3a9cf.js"],sortedPages:["/","/404","/500","/_app","/_error","/faucet","/history","/markets","/reserve-overview","/sale","/staking","/v3-migration","/vesting"]}}("static/chunks/3299-866d2a8e9cdeec23.js","static/chunks/3327-4a0bef7d19cf38e2.js","static/chunks/6147-9c39c182596c99e2.js","static/chunks/3629-04591dd789f55f60.js","static/chunks/9463-bd11f80e0aead5e9.js","static/chunks/2935-b3cd8d3cda3fd4cb.js","static/chunks/6740-7d3c143753a1f634.js","static/chunks/9057-884f9a2071fc541d.js","static/chunks/7324-f62eb8498b63859d.js","static/chunks/7603-58cb27010e0a12d8.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,c,e,a,t,i,n,d,k,f){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[c,e,t,"static/chunks/4017-7c111128aad1e10d.js","static/chunks/543-c97dfc83bce811f8.js",a,s,"static/chunks/3127-fb8129a2f17416e0.js",i,"static/chunks/8-9db73a7e4c539167.js","static/chunks/7573-ec6e6e99ff2bc795.js","static/chunks/pages/index-552fa5b4c8787cdc.js"],"/404":["static/chunks/pages/404-514192c874dcbe1d.js"],"/500":["static/chunks/pages/500-cc20ba494a5bc7b9.js"],"/_error":["static/chunks/pages/_error-f7c9e698edebedd1.js"],"/faucet":[c,"static/chunks/4718-91c54d3f1dd6b3cf.js",s,"static/chunks/pages/faucet-ef1b381e0a8ac389.js"],"/history":[c,n,"static/chunks/4459-616411d2569b6c3e.js",s,"static/chunks/pages/history-9811f28dec774694.js"],"/markets":[n,a,i,"static/chunks/pages/markets-0564736e21660ec8.js"],"/reserve-overview":[c,d,"static/chunks/8705-15ace87e89ffc8b9.js",a,k,"static/chunks/pages/reserve-overview-e8f7c849a8c1f935.js"],"/sale":["static/chunks/4b358913-8dd581dad2a58403.js",e,f,"static/chunks/5887-f83fbdd714d141e0.js",s,"static/chunks/pages/sale-56107359ed3b9780.js"],"/staking":[e,f,"static/chunks/4600-50f6157209898d2a.js",s,"static/chunks/pages/staking-deb10b4cd38580ed.js"],"/v3-migration":[t,d,s,k,"static/chunks/pages/v3-migration-50a880c560e32b15.js"],"/vesting":[s,"static/chunks/pages/vesting-5d3d003480c3a9cf.js"],sortedPages:["/","/404","/500","/_app","/_error","/faucet","/history","/markets","/reserve-overview","/sale","/staking","/v3-migration","/vesting"]}}("static/chunks/3299-5235099303c17db6.js","static/chunks/3327-4a0bef7d19cf38e2.js","static/chunks/6147-9c39c182596c99e2.js","static/chunks/3629-04591dd789f55f60.js","static/chunks/9463-bd11f80e0aead5e9.js","static/chunks/2935-b3cd8d3cda3fd4cb.js","static/chunks/6740-7d3c143753a1f634.js","static/chunks/9057-884f9a2071fc541d.js","static/chunks/7324-f62eb8498b63859d.js","static/chunks/7603-58cb27010e0a12d8.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/L-vDAujnvOggiekG6tVje/_middlewareManifest.js b/_next/static/UI8meQ5TaRNuzslu4PZH_/_middlewareManifest.js similarity index 100% rename from _next/static/L-vDAujnvOggiekG6tVje/_middlewareManifest.js rename to _next/static/UI8meQ5TaRNuzslu4PZH_/_middlewareManifest.js diff --git a/_next/static/L-vDAujnvOggiekG6tVje/_ssgManifest.js b/_next/static/UI8meQ5TaRNuzslu4PZH_/_ssgManifest.js similarity index 100% rename from _next/static/L-vDAujnvOggiekG6tVje/_ssgManifest.js rename to _next/static/UI8meQ5TaRNuzslu4PZH_/_ssgManifest.js diff --git a/_next/static/chunks/3299-5235099303c17db6.js b/_next/static/chunks/3299-5235099303c17db6.js new file mode 100644 index 0000000..e1505e5 --- /dev/null +++ b/_next/static/chunks/3299-5235099303c17db6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3299],{45745:function(e,t,r){r.d(t,{w:function(){return b}});var n=r(59499),o=r(4730),s=r(49501),i=r(70918),a=r(90149),l=r(29630),c=r(3765),p=r(85893),u=["loading","description","sx"];function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t1||c||"USD"===r?2:7);var v=Math.pow(10,-y),j=0!==h&&Math.abs(h)99999);return b&&!g&&(w=Math.trunc(Number(w)*Math.pow(10,y))/Math.pow(10,y)),(0,a.jsxs)(i.Z,p(p({},m),{},{sx:p({display:"inline-flex",flexDirection:"row",alignItems:"center",position:"relative"},m.sx),noWrap:!0,children:[j&&(0,a.jsx)(i.Z,{component:"span",sx:{mr:.5},variant:u||m.variant,color:x||"text.secondary",children:"<"}),"usd"===(null===r||void 0===r?void 0:r.toLowerCase())&&!c&&(0,a.jsx)(i.Z,{component:"span",sx:{mr:.5},variant:u||m.variant,color:x||"text.secondary",children:"$"}),g?(0,a.jsx)(d,{value:w,visibleDecimals:y,roundDown:b,compactThreshold:f}):new Intl.NumberFormat("en-US",{maximumFractionDigits:y,minimumFractionDigits:y}).format(w),c&&(0,a.jsx)(i.Z,{component:"span",sx:{ml:.5},variant:u||m.variant,color:x||"text.secondary",children:"%"}),"usd"!==(null===r||void 0===r?void 0:r.toLowerCase())&&"undefined"!==typeof r&&(0,a.jsx)(i.Z,{component:"span",sx:{ml:.5},variant:u||m.variant,color:x||"text.secondary",children:r})]}))}},92381:function(e,t,r){r.d(t,{e:function(){return n}});var n=function(e,t,r){e?(localStorage.setItem(r,"false"),t(!1)):(localStorage.setItem(r,"true"),t(!0))}}}]); \ No newline at end of file diff --git a/_next/static/chunks/3299-866d2a8e9cdeec23.js b/_next/static/chunks/3299-866d2a8e9cdeec23.js deleted file mode 100644 index 1394338..0000000 --- a/_next/static/chunks/3299-866d2a8e9cdeec23.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3299],{45745:function(e,t,r){r.d(t,{w:function(){return b}});var n=r(59499),s=r(4730),o=r(49501),i=r(70918),a=r(90149),l=r(29630),c=r(3765),p=r(85893),u=["loading","description","sx"];function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t1||c||"USD"===r?2:7);var j=Math.pow(10,-y),v=0!==h&&Math.abs(h)99999);return b&&!g&&(w=Math.trunc(Number(w)*Math.pow(10,y))/Math.pow(10,y)),(0,a.jsxs)(i.Z,p(p({},m),{},{sx:p({display:"inline-flex",flexDirection:"row",alignItems:"center",position:"relative"},m.sx),noWrap:!0,children:[v&&(0,a.jsx)(i.Z,{component:"span",sx:{mr:.5},variant:u||m.variant,color:x||"text.secondary",children:"<"}),"usd"===(null===r||void 0===r?void 0:r.toLowerCase())&&!c&&(0,a.jsx)(i.Z,{component:"span",sx:{mr:.5},variant:u||m.variant,color:x||"text.secondary",children:"$"}),g?(0,a.jsx)(d,{value:w,visibleDecimals:y,roundDown:b,compactThreshold:f}):new Intl.NumberFormat("en-US",{maximumFractionDigits:y,minimumFractionDigits:y}).format(w),c&&(0,a.jsx)(i.Z,{component:"span",sx:{ml:.5},variant:u||m.variant,color:x||"text.secondary",children:"%"}),"usd"!==(null===r||void 0===r?void 0:r.toLowerCase())&&"undefined"!==typeof r&&(0,a.jsx)(i.Z,{component:"span",sx:{ml:.5},variant:u||m.variant,color:x||"text.secondary",children:r})]}))}},92381:function(e,t,r){r.d(t,{e:function(){return n}});var n=function(e,t,r){e?(localStorage.setItem(r,"false"),t(!1)):(localStorage.setItem(r,"true"),t(!0))}}}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/404-26923f780a8c6844.js b/_next/static/chunks/pages/404-26923f780a8c6844.js deleted file mode 100644 index 8a51013..0000000 --- a/_next/static/chunks/pages/404-26923f780a8c6844.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2197],{64288:function(t,e,r){"use strict";r.d(e,{Z:function(){return v}});var n=r(63366),i=r(87462),s=r(67294),a=r(86010),o=r(28320),c=r(34867),x=r(94780),d=r(29628),l=r(13264),u=r(66500),p=r(85893);const m=["className","component","disableGutters","fixed","maxWidth","classes"],f=(0,u.Z)(),h=(0,l.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`maxWidth${(0,o.Z)(String(r.maxWidth))}`],r.fixed&&e.fixed,r.disableGutters&&e.disableGutters]}}),g=t=>(0,d.Z)({props:t,name:"MuiContainer",defaultTheme:f});var b=r(36622),j=r(81719),Z=r(78884);const w=function(t={}){const{createStyledComponent:e=h,useThemeProps:r=g,componentName:d="MuiContainer"}=t,l=e((({theme:t,ownerState:e})=>(0,i.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!e.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})),(({theme:t,ownerState:e})=>e.fixed&&Object.keys(t.breakpoints.values).reduce(((e,r)=>{const n=r,i=t.breakpoints.values[n];return 0!==i&&(e[t.breakpoints.up(n)]={maxWidth:`${i}${t.breakpoints.unit}`}),e}),{})),(({theme:t,ownerState:e})=>(0,i.Z)({},"xs"===e.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},e.maxWidth&&"xs"!==e.maxWidth&&{[t.breakpoints.up(e.maxWidth)]:{maxWidth:`${t.breakpoints.values[e.maxWidth]}${t.breakpoints.unit}`}}))),u=s.forwardRef((function(t,e){const s=r(t),{className:u,component:f="div",disableGutters:h=!1,fixed:g=!1,maxWidth:b="lg"}=s,j=(0,n.Z)(s,m),Z=(0,i.Z)({},s,{component:f,disableGutters:h,fixed:g,maxWidth:b}),w=((t,e)=>{const{classes:r,fixed:n,disableGutters:i,maxWidth:s}=t,a={root:["root",s&&`maxWidth${(0,o.Z)(String(s))}`,n&&"fixed",i&&"disableGutters"]};return(0,x.Z)(a,(t=>(0,c.Z)(e,t)),r)})(Z,d);return(0,p.jsx)(l,(0,i.Z)({as:f,ownerState:Z,className:(0,a.default)(w.root,u),ref:e},j))}));return u}({createStyledComponent:(0,j.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`maxWidth${(0,b.Z)(String(r.maxWidth))}`],r.fixed&&e.fixed,r.disableGutters&&e.disableGutters]}}),useThemeProps:t=>(0,Z.Z)({props:t,name:"MuiContainer"})});var v=w},13264:function(t,e,r){"use strict";const n=(0,r(70182).ZP)();e.Z=n},49858:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});var n=r(49501),i=r(62097),s=r(70918),a=r(30120),o=r(29630),c=r(75084),x=r(41664),d=r(67294),l=r(15446),u=r(74815),p=r(83550),m=r(16376),f=r(85893);function h(){var t=(0,i.Z)(),e=(0,m.Yh)((function(t){return t.trackEvent}));return(0,d.useEffect)((function(){e("Page Viewed",{"Page Name":"404 Error"})}),[e]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.f,{}),(0,f.jsx)(l.O,{children:(0,f.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",p:4,flex:1,backgroundColor:"dark"===t.palette.mode?"transparent":""},children:[(0,f.jsx)(a.Z,{sx:{maxWidth:444,m:"0 auto"},children:(0,f.jsx)("img",{width:"100%",height:"auto",src:"/404/404.svg",alt:"404 - Page not found"})}),(0,f.jsx)(o.Z,{variant:"display1",sx:{mt:2},children:(0,f.jsx)(n.cC,{id:"Page not found"})}),(0,f.jsxs)(o.Z,{sx:{mt:3,mb:5,maxWidth:480},children:[(0,f.jsx)(n.cC,{id:"Sorry, we couldn't find the page you were looking for."}),(0,f.jsx)("br",{}),(0,f.jsx)(n.cC,{id:"We suggest you go back to the Dashboard."})]}),(0,f.jsx)(x.default,{href:"/",passHref:!0,children:(0,f.jsx)(c.Z,{variant:"outlined",color:"primary",children:(0,f.jsx)(n.cC,{id:"Back to Dashboard"})})})]})})]})}h.getLayout=function(t){return(0,f.jsx)(p.Z,{children:t})}},15446:function(t,e,r){"use strict";r.d(e,{O:function(){return a}});var n=r(30120),i=r(64288),s=r(85893),a=function(t){var e=t.children;return(0,s.jsx)(n.Z,{sx:{display:"flex",flexDirection:"column",flex:1,mt:{xs:"-32px",lg:"-46px",xl:"-44px",xxl:"-48px"}},children:(0,s.jsx)(i.Z,{children:e})})}},40535:function(t,e,r){"use strict";r.d(e,{V:function(){return p}});var n=r(49501),i=r(62097),s=r(61225),a=r(30120),o=r(29630),c=r(75084),x=r(16376),d=r(67728),l=r(68861),u=r(85893),p=function(t){var e=t.pageTitle,r=t.withMigrateButton,p=(0,x.Yh)((function(t){return(0,d.lY)(t)})),m=(0,i.Z)(),f=(0,s.Z)(m.breakpoints.up("lg")),h=(0,s.Z)(m.breakpoints.down("xsm"));return(0,u.jsxs)(a.Z,{sx:{display:"flex",alignItems:{xs:"flex-start",xsm:"center"},mb:e?4:0,flexDirection:{xs:"column",xsm:"row"}},children:[e&&(0,u.jsx)(a.Z,{sx:{display:"flex",alignItems:"flex-start"},children:(0,u.jsx)(o.Z,{variant:h?"h2":f?"display1":"h1",sx:{color:"text.white",mr:{xs:5,xsm:3},mb:{xs:1,xsm:0}},children:e})}),(0,u.jsx)(a.Z,{sx:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",mb:e?0:4},children:p&&r&&(0,u.jsx)(l.rU,{href:l.Z6.migrationTool,sx:{mt:{xs:2,xsm:0}},children:(0,u.jsx)(c.Z,{variant:"gradient",size:"small",children:(0,u.jsx)(n.cC,{id:"Migrate to V3"})})})})]})}},74815:function(t,e,r){"use strict";r.d(e,{f:function(){return p}});var n=r(59499),i=r(62097),s=r(61225),a=r(30120),o=r(64288),c=r(29630),x=r(40535),d=r(85893);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,o.Z)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),b=e=>(0,x.Z)({props:e,name:"MuiContainer",defaultTheme:m});var g=r(36622),j=r(81719),Z=r(78884);const v=function(e={}){const{createStyledComponent:t=h,useThemeProps:r=b,componentName:x="MuiContainer"}=e,l=t((({theme:e,ownerState:t})=>(0,i.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,r)=>{const n=r,i=e.breakpoints.values[n];return 0!==i&&(t[e.breakpoints.up(n)]={maxWidth:`${i}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>(0,i.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),u=s.forwardRef((function(e,t){const s=r(e),{className:u,component:m="div",disableGutters:h=!1,fixed:b=!1,maxWidth:g="lg"}=s,j=(0,n.Z)(s,f),Z=(0,i.Z)({},s,{component:m,disableGutters:h,fixed:b,maxWidth:g}),v=((e,t)=>{const{classes:r,fixed:n,disableGutters:i,maxWidth:s}=e,a={root:["root",s&&`maxWidth${(0,o.Z)(String(s))}`,n&&"fixed",i&&"disableGutters"]};return(0,d.Z)(a,(e=>(0,c.Z)(t,e)),r)})(Z,x);return(0,p.jsx)(l,(0,i.Z)({as:m,ownerState:Z,className:(0,a.default)(v.root,u),ref:t},j))}));return u}({createStyledComponent:(0,j.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,g.Z)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,Z.Z)({props:e,name:"MuiContainer"})});var w=v},13264:function(e,t,r){"use strict";const n=(0,r(70182).ZP)();t.Z=n},49858:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return h}});var n=r(49501),i=r(62097),s=r(70918),a=r(30120),o=r(29630),c=r(75084),d=r(41664),x=r(67294),l=r(15446),u=r(74815),p=r(83550),f=r(16376),m=r(85893);function h(){var e=(0,i.Z)(),t=(0,f.Yh)((function(e){return e.trackEvent}));return(0,x.useEffect)((function(){t("Page Viewed",{"Page Name":"404 Error"})}),[t]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(u.f,{}),(0,m.jsx)(l.O,{children:(0,m.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",p:4,flex:1,backgroundColor:"dark"===e.palette.mode?"transparent":""},children:[(0,m.jsx)(a.Z,{sx:{maxWidth:444,m:"0 auto"},children:(0,m.jsx)("img",{width:"100%",height:"auto",src:"/404/404.svg",alt:"404 - Page not found"})}),(0,m.jsx)(o.Z,{variant:"display1",sx:{mt:2},children:(0,m.jsx)(n.cC,{id:"Page not found"})}),(0,m.jsxs)(o.Z,{sx:{mt:3,mb:5,maxWidth:480},children:[(0,m.jsx)(n.cC,{id:"Sorry, we couldn't find the page you were looking for."}),(0,m.jsx)("br",{}),(0,m.jsx)(n.cC,{id:"We suggest you go back to the Dashboard."})]}),(0,m.jsx)(d.default,{href:"/",passHref:!0,children:(0,m.jsx)(c.Z,{variant:"outlined",color:"primary",children:(0,m.jsx)(n.cC,{id:"Back to Dashboard"})})})]})})]})}h.getLayout=function(e){return(0,m.jsx)(p.Z,{children:e})}},15446:function(e,t,r){"use strict";r.d(t,{O:function(){return a}});var n=r(30120),i=r(64288),s=r(85893),a=function(e){var t=e.children;return(0,s.jsx)(n.Z,{sx:{display:"flex",flexDirection:"column",flex:1,mt:{xs:"-32px",lg:"-46px",xl:"-44px",xxl:"-48px"}},children:(0,s.jsx)(i.Z,{children:t})})}},40535:function(e,t,r){"use strict";r.d(t,{V:function(){return a}});var n=r(30120),i=r(29630),s=r(85893),a=function(e){var t=e.pageTitle;return(0,s.jsxs)(n.Z,{sx:{display:"flex",alignItems:{xs:"flex-start",xsm:"center"},mb:t?4:0,flexDirection:{xs:"column",xsm:"row"}},children:[t&&(0,s.jsx)(n.Z,{sx:{display:"flex",alignItems:"flex-start"},children:(0,s.jsx)(i.Z,{variant:"h1",sx:{color:"text.white",mr:{xs:5,xsm:3},mb:{xs:1,xsm:0}},children:t})}),(0,s.jsx)(n.Z,{sx:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",mb:t?0:4}})]})}},74815:function(e,t,r){"use strict";r.d(t,{f:function(){return p}});var n=r(59499),i=r(62097),s=r(61225),a=r(30120),o=r(64288),c=r(29630),d=r(40535),x=r(85893);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,a.Z)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),g=e=>(0,d.Z)({props:e,name:"MuiContainer",defaultTheme:h});var b=r(36622),j=r(81719),Z=r(78884);const w=function(e={}){const{createStyledComponent:t=f,useThemeProps:r=g,componentName:d="MuiContainer"}=e,x=t((({theme:e,ownerState:t})=>(0,i.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,r)=>{const n=r,i=e.breakpoints.values[n];return 0!==i&&(t[e.breakpoints.up(n)]={maxWidth:`${i}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>(0,i.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),u=s.forwardRef((function(e,t){const s=r(e),{className:u,component:h="div",disableGutters:f=!1,fixed:g=!1,maxWidth:b="lg"}=s,j=(0,n.Z)(s,m),Z=(0,i.Z)({},s,{component:h,disableGutters:f,fixed:g,maxWidth:b}),w=((e,t)=>{const{classes:r,fixed:n,disableGutters:i,maxWidth:s}=e,o={root:["root",s&&`maxWidth${(0,a.Z)(String(s))}`,n&&"fixed",i&&"disableGutters"]};return(0,l.Z)(o,(e=>(0,c.Z)(t,e)),r)})(Z,d);return(0,p.jsx)(x,(0,i.Z)({as:h,ownerState:Z,className:(0,o.default)(w.root,u),ref:t},j))}));return u}({createStyledComponent:(0,j.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,b.Z)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,Z.Z)({props:e,name:"MuiContainer"})});var v=w},13264:function(e,t,r){"use strict";const n=(0,r(70182).ZP)();t.Z=n},27163:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return j}});var n=r(49501),i=r(67294);var s=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))})),o=r(52758),a=r(62097),c=r(70918),l=r(29630),d=r(75084),x=r(81645),u=r(30120),p=r(68346),m=r(15446),h=r(74815),f=r(83550),g=r(16376),b=r(85893);function j(){var e=(0,a.Z)(),t=(0,g.Yh)((function(e){return e.trackEvent}));return(0,i.useEffect)((function(){t("Page Viewed",{"Page Name":"500 Error"})}),[t]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.f,{}),(0,b.jsx)(m.O,{children:(0,b.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",p:4,flex:1,backgroundColor:"dark"===e.palette.mode?"transparent":""},children:[(0,b.jsx)(l.Z,{variant:"display1",sx:{mt:8,mb:3},children:(0,b.jsx)(n.cC,{id:"Something went wrong"})}),(0,b.jsx)(l.Z,{sx:{mt:2,mb:5,maxWidth:480},children:(0,b.jsx)(n.cC,{id:"Sorry, an unexpected error happened. In the meantime you may try reloading the page, or come back later."})}),(0,b.jsx)(d.Z,{variant:"outlined",color:"primary",startIcon:(0,b.jsx)(x.Z,{children:(0,b.jsx)(s,{})}),onClick:function(){return window.location.reload()},sx:{mb:10},children:(0,b.jsx)(n.cC,{id:"Reload the page"})}),(0,b.jsxs)(u.Z,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",mt:10,children:[(0,b.jsxs)(l.Z,{sx:{mb:4},children:[(0,b.jsx)(n.cC,{id:"If the error continues to happen,<0/> you may report it to this",components:{0:(0,b.jsx)("br",{})}})," ",(0,b.jsx)(p.Z,{href:"https://discord.yieldlend.xyz",color:"inherit",target:"_blank",children:(0,b.jsx)(n.cC,{id:"Discord channel"})}),"."]}),(0,b.jsx)(d.Z,{color:"primary",startIcon:(0,b.jsx)(x.Z,{children:(0,b.jsx)(o.Z,{})}),onClick:function(){console.log("copying error to clipboard")},children:(0,b.jsx)(n.cC,{id:"Copy error message"})})]})]})})]})}j.getLayout=function(e){return(0,b.jsx)(f.Z,{children:e})}},15446:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=r(30120),i=r(64288),s=r(85893),o=function(e){var t=e.children;return(0,s.jsx)(n.Z,{sx:{display:"flex",flexDirection:"column",flex:1,mt:{xs:"-32px",lg:"-46px",xl:"-44px",xxl:"-48px"}},children:(0,s.jsx)(i.Z,{children:t})})}},40535:function(e,t,r){"use strict";r.d(t,{V:function(){return p}});var n=r(49501),i=r(62097),s=r(61225),o=r(30120),a=r(29630),c=r(75084),l=r(16376),d=r(67728),x=r(68861),u=r(85893),p=function(e){var t=e.pageTitle,r=e.withMigrateButton,p=(0,l.Yh)((function(e){return(0,d.lY)(e)})),m=(0,i.Z)(),h=(0,s.Z)(m.breakpoints.up("lg")),f=(0,s.Z)(m.breakpoints.down("xsm"));return(0,u.jsxs)(o.Z,{sx:{display:"flex",alignItems:{xs:"flex-start",xsm:"center"},mb:t?4:0,flexDirection:{xs:"column",xsm:"row"}},children:[t&&(0,u.jsx)(o.Z,{sx:{display:"flex",alignItems:"flex-start"},children:(0,u.jsx)(a.Z,{variant:f?"h2":h?"display1":"h1",sx:{color:"text.white",mr:{xs:5,xsm:3},mb:{xs:1,xsm:0}},children:t})}),(0,u.jsx)(o.Z,{sx:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",mb:t?0:4},children:p&&r&&(0,u.jsx)(x.rU,{href:x.Z6.migrationTool,sx:{mt:{xs:2,xsm:0}},children:(0,u.jsx)(c.Z,{variant:"gradient",size:"small",children:(0,u.jsx)(n.cC,{id:"Migrate to V3"})})})})]})}},74815:function(e,t,r){"use strict";r.d(t,{f:function(){return p}});var n=r(59499),i=r(62097),s=r(61225),o=r(30120),a=r(64288),c=r(29630),l=r(40535),d=r(85893);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,a.Z)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),b=e=>(0,l.Z)({props:e,name:"MuiContainer",defaultTheme:f});var g=r(36622),j=r(81719),Z=r(78884);const w=function(e={}){const{createStyledComponent:t=h,useThemeProps:r=b,componentName:l="MuiContainer"}=e,x=t((({theme:e,ownerState:t})=>(0,i.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,r)=>{const n=r,i=e.breakpoints.values[n];return 0!==i&&(t[e.breakpoints.up(n)]={maxWidth:`${i}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>(0,i.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),u=s.forwardRef((function(e,t){const s=r(e),{className:u,component:f="div",disableGutters:h=!1,fixed:b=!1,maxWidth:g="lg"}=s,j=(0,n.Z)(s,m),Z=(0,i.Z)({},s,{component:f,disableGutters:h,fixed:b,maxWidth:g}),w=((e,t)=>{const{classes:r,fixed:n,disableGutters:i,maxWidth:s}=e,o={root:["root",s&&`maxWidth${(0,a.Z)(String(s))}`,n&&"fixed",i&&"disableGutters"]};return(0,d.Z)(o,(e=>(0,c.Z)(t,e)),r)})(Z,l);return(0,p.jsx)(x,(0,i.Z)({as:f,ownerState:Z,className:(0,o.default)(w.root,u),ref:t},j))}));return u}({createStyledComponent:(0,j.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,g.Z)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,Z.Z)({props:e,name:"MuiContainer"})});var v=w},13264:function(e,t,r){"use strict";const n=(0,r(70182).ZP)();t.Z=n},27163:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return j}});var n=r(49501),i=r(67294);var s=i.forwardRef((function(e,t){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))})),o=r(52758),a=r(62097),c=r(70918),d=r(29630),l=r(75084),x=r(81645),u=r(30120),p=r(68346),m=r(15446),f=r(74815),h=r(83550),b=r(16376),g=r(85893);function j(){var e=(0,a.Z)(),t=(0,b.Yh)((function(e){return e.trackEvent}));return(0,i.useEffect)((function(){t("Page Viewed",{"Page Name":"500 Error"})}),[t]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(f.f,{}),(0,g.jsx)(m.O,{children:(0,g.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",p:4,flex:1,backgroundColor:"dark"===e.palette.mode?"transparent":""},children:[(0,g.jsx)(d.Z,{variant:"display1",sx:{mt:8,mb:3},children:(0,g.jsx)(n.cC,{id:"Something went wrong"})}),(0,g.jsx)(d.Z,{sx:{mt:2,mb:5,maxWidth:480},children:(0,g.jsx)(n.cC,{id:"Sorry, an unexpected error happened. In the meantime you may try reloading the page, or come back later."})}),(0,g.jsx)(l.Z,{variant:"outlined",color:"primary",startIcon:(0,g.jsx)(x.Z,{children:(0,g.jsx)(s,{})}),onClick:function(){return window.location.reload()},sx:{mb:10},children:(0,g.jsx)(n.cC,{id:"Reload the page"})}),(0,g.jsxs)(u.Z,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",mt:10,children:[(0,g.jsxs)(d.Z,{sx:{mb:4},children:[(0,g.jsx)(n.cC,{id:"If the error continues to happen,<0/> you may report it to this",components:{0:(0,g.jsx)("br",{})}})," ",(0,g.jsx)(p.Z,{href:"https://discord.yieldlend.xyz",color:"inherit",target:"_blank",children:(0,g.jsx)(n.cC,{id:"Discord channel"})}),"."]}),(0,g.jsx)(l.Z,{color:"primary",startIcon:(0,g.jsx)(x.Z,{children:(0,g.jsx)(o.Z,{})}),onClick:function(){console.log("copying error to clipboard")},children:(0,g.jsx)(n.cC,{id:"Copy error message"})})]})]})})]})}j.getLayout=function(e){return(0,g.jsx)(h.Z,{children:e})}},15446:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=r(30120),i=r(64288),s=r(85893),o=function(e){var t=e.children;return(0,s.jsx)(n.Z,{sx:{display:"flex",flexDirection:"column",flex:1,mt:{xs:"-32px",lg:"-46px",xl:"-44px",xxl:"-48px"}},children:(0,s.jsx)(i.Z,{children:t})})}},40535:function(e,t,r){"use strict";r.d(t,{V:function(){return o}});var n=r(30120),i=r(29630),s=r(85893),o=function(e){var t=e.pageTitle;return(0,s.jsxs)(n.Z,{sx:{display:"flex",alignItems:{xs:"flex-start",xsm:"center"},mb:t?4:0,flexDirection:{xs:"column",xsm:"row"}},children:[t&&(0,s.jsx)(n.Z,{sx:{display:"flex",alignItems:"flex-start"},children:(0,s.jsx)(i.Z,{variant:"h1",sx:{color:"text.white",mr:{xs:5,xsm:3},mb:{xs:1,xsm:0}},children:t})}),(0,s.jsx)(n.Z,{sx:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",mb:t?0:4}})]})}},74815:function(e,t,r){"use strict";r.d(t,{f:function(){return p}});var n=r(59499),i=r(62097),s=r(61225),o=r(30120),a=r(64288),c=r(29630),d=r(40535),l=r(85893);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t(e.push(n),i[t.root]})((({ownerState:e,theme:t})=>{let r=(0,i.Z)({display:"flex",flexDirection:"column"},(0,o.k9)({theme:t},(0,o.P$)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,a.hB)(t),i=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"===typeof e.spacing&&null!=e.spacing[r]||"object"===typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),s=(0,o.P$)({values:e.direction,base:i}),c=(0,o.P$)({values:e.spacing,base:i});"object"===typeof s&&Object.keys(s).forEach(((e,t,r)=>{if(!s[e]){const n=t>0?s[r[t-1]]:"column";s[e]=n}}));const d=(t,r)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${i=r?s[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,a.NA)(n,t)}};var i};r=(0,l.Z)(r,(0,o.k9)({theme:t},c,d))}return r=(0,o.dt)(t.breakpoints,r),r})),b=s.forwardRef((function(e,t){const r=(0,x.Z)({props:e,name:"MuiStack"}),s=(0,c.Z)(r),{component:o="div",direction:a="column",spacing:l=0,divider:d,children:b}=s,f=(0,n.Z)(s,p),j={direction:a,spacing:l};return(0,u.jsx)(m,(0,i.Z)({as:o,ownerState:j,ref:t},f,{children:d?h(b,d):b}))}));t.Z=b},70981:function(e,t,r){"use strict";r.r(t),r.d(t,{MarketContainer:function(){return we},default:function(){return Ze},marketContainerProps:function(){return ge}});var n=r(59499),i=r(64288),s=r(30120),o=r(67294),a=r(83550),c=r(49501),l=r(80854),d=r(62097),x=r(61225),u=r(29630),p=r(54181),h=r(45556),m=r(6022),b=r(85893),f=function(e){var t=e.searchTerm,r=e.subtitle,n=(0,d.Z)().breakpoints,i=(0,x.Z)(n.down("sm"));return(0,b.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1,pt:15,pb:32,px:4},children:[i?(0,b.jsxs)(s.Z,{sx:{textAlign:"center",maxWidth:"300px"},children:[(0,b.jsx)(u.Z,{variant:"h2",children:m.ag._("No search results{0}",{0:t&&" for"})}),t&&(0,b.jsxs)(u.Z,{sx:{overflowWrap:"anywhere"},variant:"h2",children:["'",t,"'"]})]}):(0,b.jsx)(u.Z,{sx:{textAlign:"center",maxWidth:"480px",overflowWrap:"anywhere"},variant:"h2",children:m.ag._("No search results{0}",{0:t&&" for '".concat(t,"'")})}),r&&(0,b.jsx)(u.Z,{sx:{width:"280px",textAlign:"center"},variant:"description",color:"text.secondary",children:r})]})},j=r(68861),y=r(69331);var v=o.forwardRef((function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))})),g=r(80562),w=r(81645),Z=r(75084),O=r(8403);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t0?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(X.B,{compact:!0,value:r.totalDebt,variant:"main16"})," ",(0,b.jsx)(R.i,{value:r.totalDebtUSD})]}):(0,b.jsx)(F.J,{variant:"secondary14",color:"text.secondary"})}),(0,b.jsxs)(T.h,{children:[(0,b.jsx)(Y.J,{value:Number(r.totalVariableDebtUSD)>0?r.variableBorrowAPY:"-1",incentives:r.vIncentivesData||[],symbol:r.symbol,variant:"main16",symbolsVariant:"secondary16"}),!r.borrowingEnabled&&Number(r.totalVariableDebt)>0&&!r.isFrozen&&(0,b.jsx)(R.i,{value:"Disabled"})]}),(0,b.jsx)(T.h,{minWidth:95,maxWidth:95,align:"right",children:(0,b.jsx)(Z.Z,{variant:"outlined",component:j.rU,href:j.Z6.reserveOverview(r.underlyingAsset,i),onClick:function(){return o(q.uZ.DETAILS_NAVIGATION,{type:"Button",assetName:r.name,asset:r.underlyingAsset,market:i})},children:(0,b.jsx)(c.cC,{id:"Details"})})})]})},J=r(91655),$=function(){return(0,b.jsxs)(H.H,{px:6,minHeight:76,children:[(0,b.jsxs)(T.h,{isRow:!0,maxWidth:280,children:[(0,b.jsx)(J.Z,{variant:"circular",width:32,height:32}),(0,b.jsx)(s.Z,{sx:{pl:3.5,overflow:"hidden"},children:(0,b.jsx)(J.Z,{width:75,height:24})})]}),(0,b.jsx)(T.h,{children:(0,b.jsx)(J.Z,{width:70,height:24})}),(0,b.jsx)(T.h,{children:(0,b.jsx)(J.Z,{width:70,height:24})}),(0,b.jsx)(T.h,{children:(0,b.jsx)(J.Z,{width:70,height:24})}),(0,b.jsx)(T.h,{children:(0,b.jsx)(J.Z,{width:70,height:24})}),(0,b.jsx)(T.h,{children:(0,b.jsx)(J.Z,{width:70,height:24})}),(0,b.jsx)(T.h,{maxWidth:95,minWidth:95,align:"right",children:(0,b.jsx)(J.Z,{width:74,height:38})})]})},Q=r(44373),ee=r(92391),te=r(15880),re=function(e){var t=(0,B.Z)({},e),r=(0,A.f)().currentMarket,n=(0,U.Yh)((function(e){return e.trackEvent}));return(0,b.jsxs)(te.o,{symbol:t.symbol,iconSymbol:t.iconSymbol,name:t.name,underlyingAsset:t.underlyingAsset,currentMarket:r,isIsolated:t.isIsolated,children:[(0,b.jsx)(ee.X,{caption:(0,b.jsx)(c.cC,{id:"Total supplied"}),captionVariant:"description",mb:3,children:(0,b.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column",alignItems:{xs:"flex-end"},justifyContent:"center",textAlign:"center"},children:[(0,b.jsx)(X.B,{compact:!0,value:t.totalLiquidity,variant:"secondary14"}),(0,b.jsx)(R.i,{value:t.totalLiquidityUSD,rightAlign:!0})]})}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(c.cC,{id:"Supply APY"}),captionVariant:"description",mb:3,align:"flex-start",children:(0,b.jsx)(Y.J,{align:"flex-end",value:t.supplyAPY,incentives:t.aIncentivesData||[],symbol:t.symbol,variant:"secondary14"})}),(0,b.jsx)(Q.Z,{sx:{mb:3}}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(c.cC,{id:"Total borrowed"}),captionVariant:"description",mb:3,children:(0,b.jsx)(s.Z,{sx:{display:"flex",flexDirection:"column",alignItems:{xs:"flex-end"},justifyContent:"center",textAlign:"center"},children:Number(t.totalDebt)>0?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(X.B,{compact:!0,value:t.totalDebt,variant:"secondary14"}),(0,b.jsx)(R.i,{value:t.totalDebtUSD,rightAlign:!0})]}):(0,b.jsx)(F.J,{variant:"secondary14",color:"text.secondary"})})}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(I.B,{text:(0,b.jsx)(c.cC,{id:"Borrow APY, variable"}),variant:"description"},"APY_list_mob_variable_type"),captionVariant:"description",mb:3,align:"flex-start",children:(0,b.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,b.jsx)(Y.J,{align:"flex-end",value:Number(t.totalVariableDebtUSD)>0?t.variableBorrowAPY:"-1",incentives:t.vIncentivesData||[],symbol:t.symbol,variant:"secondary14"}),!t.borrowingEnabled&&Number(t.totalVariableDebt)>0&&!t.isFrozen&&(0,b.jsx)(R.i,{value:"Disabled"})]})}),(0,b.jsx)(Z.Z,{variant:"outlined",component:j.rU,href:j.Z6.reserveOverview(t.underlyingAsset,r),fullWidth:!0,onClick:function(){n(q.uZ.DETAILS_NAVIGATION,{type:"button",asset:t.underlyingAsset,market:r,assetName:t.name})},children:(0,b.jsx)(c.cC,{id:"View details"})})]})},ne=function(){return(0,b.jsxs)(te.o,{loading:!0,children:[(0,b.jsx)(ee.X,{caption:(0,b.jsx)(J.Z,{width:100,height:20}),captionVariant:"description",mb:3,children:(0,b.jsx)(J.Z,{width:45,height:20})}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(J.Z,{width:100,height:20}),captionVariant:"description",mb:3,align:"flex-start",children:(0,b.jsx)(J.Z,{width:45,height:20})}),(0,b.jsx)(Q.Z,{sx:{mb:3}}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(J.Z,{width:100,height:20}),captionVariant:"description",mb:3,children:(0,b.jsx)(J.Z,{width:45,height:20})}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(J.Z,{width:100,height:20}),captionVariant:"description",mb:3,align:"flex-start",children:(0,b.jsx)(J.Z,{width:45,height:20})}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(J.Z,{width:100,height:20}),captionVariant:"description",mb:4,align:"flex-start",children:(0,b.jsx)(J.Z,{width:45,height:20})}),(0,b.jsx)(J.Z,{width:"100%",height:38})]})};function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t0&&(0,b.jsxs)(s.Z,{sx:{mt:10,px:{xs:4,xsm:6}},children:[(0,b.jsxs)(u.Z,{variant:"h4",mb:4,children:[(0,b.jsx)(c.cC,{id:"Show Frozen or paused assets"}),(0,b.jsx)(p.Z,{checked:B,onChange:function(){M((function(e){return!e}))},inputProps:{"aria-label":"controlled"}})]}),B&&(0,b.jsx)(y.v,{severity:"info",children:(0,b.jsx)(c.cC,{id:"These assets are temporarily frozen or paused by YieldLend community decisions, meaning that further supply / borrow, or rate swap of these assets are unavailable. Withdrawals and debt repayments are allowed. Follow the <0>YieldLend governance forum for further updates.",components:{0:(0,b.jsx)(j.rU,{onClick:function(){D(q.vh.EXTERNAL_LINK,{link:"Frozen Market Markets Page",frozenMarket:m.name})},href:"https://governance.aave.com",underline:"always"})}})})]}),B&&(0,b.jsx)(ae,{reserves:V,loading:r}),!r&&0===I.length&&!N&&(0,b.jsx)(f,{searchTerm:g,subtitle:(0,b.jsx)(c.cC,{id:"We couldn't find any assets related to your search. Try again with a different asset name, symbol, or address."})})]})},me=r(1279),be=r(74815),fe=r(87369),je=function(){var e=(0,k.HT)(),t=e.reserves,r=e.loading,n=(0,d.Z)(),i=(0,x.Z)(n.breakpoints.down("sm")),s=t.reduce((function(e,t){return{totalLiquidity:e.totalLiquidity.plus(t.totalLiquidityUSD),totalDebt:e.totalDebt.plus(t.totalDebtUSD)}}),{totalLiquidity:(0,me.hE)(0),totalDebt:(0,me.hE)(0)}),o=i?"main16":"main21",a=i?"secondary16":"secondary21";return(0,b.jsxs)(be.f,{containerProps:ge,pageTitle:(0,b.jsx)(c.cC,{id:"Markets"}),withMarketSwitcher:!0,children:[(0,b.jsx)(fe.d,{hideIcon:!0,title:(0,b.jsx)(c.cC,{id:"Total market size"}),loading:r,children:(0,b.jsx)(X.B,{value:s.totalLiquidity.toString(),symbol:"USD",variant:o,visibleDecimals:2,compact:!0,symbolsColor:"#A5A8B6",symbolsVariant:a})}),(0,b.jsx)(fe.d,{hideIcon:!0,title:(0,b.jsx)(c.cC,{id:"Total available"}),loading:r,children:(0,b.jsx)(X.B,{value:s.totalLiquidity.minus(s.totalDebt).toString(),symbol:"USD",variant:o,visibleDecimals:2,compact:!0,symbolsColor:"#A5A8B6",symbolsVariant:a})}),(0,b.jsx)(fe.d,{hideIcon:!0,title:(0,b.jsx)(c.cC,{id:"Total borrows"}),loading:r,children:(0,b.jsx)(X.B,{value:s.totalDebt.toString(),symbol:"USD",variant:o,visibleDecimals:2,compact:!0,symbolsColor:"#A5A8B6",symbolsVariant:a})})]})};function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t1?2:0},children:[(0,b.jsx)(p.T1,{symbol:e.rewardTokenSymbol,sx:{fontSize:"20px",mr:1}}),(0,b.jsx)(o.Z,{variant:i,children:e.rewardTokenSymbol})]}),width:"100%",children:(0,b.jsx)(a,{incentiveAPR:e.incentiveAPR})},e.rewardTokenAddress)})),t.length>1&&(0,b.jsx)(s.Z,{sx:function(e){return{pt:1,mt:1,border:"1px solid ".concat(e.palette.divider)}},children:(0,b.jsx)(m.X,{caption:(0,b.jsx)(h.cC,{id:"Net APR"}),height:32,children:(0,b.jsx)(a,{incentiveAPR:r})})})]})]})},j=function(){return(0,b.jsx)(s.Z,{sx:{p:{xs:"0 4px",xsm:"3.625px 4px"},display:"flex",alignItems:"center",justifyContent:"center"},children:(0,b.jsx)(o.Z,{variant:"main12",color:"text.secondary",children:"\xa0"})})},y=function(e){var t=e.incentives,r=e.symbol,h=e.displayBlank,m=(0,c.useState)(!1),y=m[0],v=m[1],g=(0,l.Yh)((function(e){return e.trackEvent}));if(!(t&&t.length>0))return h?(0,b.jsx)(j,{}):null;var w=t.some((function(e){return"Infinity"===e.incentiveAPR})),Z=w?"Infinity":t.reduce((function(e,t){return e+ +t.incentiveAPR}),0),O=w?"Infinity":"Infinity"!==Z?(0,n.hE)(Z||0).toNumber():"Infinity";if(0===O)return h?(0,b.jsx)(j,{}):null;return(0,b.jsx)(x.a,{tooltipContent:(0,b.jsx)(f,{incentives:t,incentivesNetAPR:O,symbol:r}),withoutHover:!0,setOpen:v,open:y,children:(0,b.jsxs)(s.Z,{sx:function(e){return{p:{xs:"0 4px",xsm:"2px 4px"},border:"1px solid ".concat(y?e.palette.action.disabled:e.palette.divider),borderRadius:"4px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s ease",bgcolor:y?"action.hover":"transparent","&:hover":{bgcolor:"action.hover",borderColor:"action.disabled"}}},onClick:function(){g(d.h1.VIEW_LM_DETAILS_DASHBOARD,{}),v(!y)},children:[(0,b.jsx)(s.Z,{sx:{mr:2},children:"Infinity"!==O&&O<1e4?(0,b.jsx)(u.B,{value:O,percent:!0,variant:"secondary12",color:"text.secondary"}):"Infinity"!==O&&O>9999?(0,b.jsx)(u.B,{value:O,percent:!0,compact:!0,variant:"secondary12",color:"text.secondary"}):"Infinity"===O?(0,b.jsx)(o.Z,{variant:"main12",color:"text.secondary",children:"\u221e"}):void 0}),(0,b.jsx)(s.Z,{sx:{display:"inline-flex"},children:(0,b.jsx)(b.Fragment,{children:t.length<5?(0,b.jsx)(b.Fragment,{children:t.map((function(e){return(0,b.jsx)(p.T1,{symbol:e.rewardTokenSymbol,sx:{fontSize:"".concat(12,"px"),ml:-1}},e.rewardTokenSymbol)}))}):(0,b.jsxs)(b.Fragment,{children:[t.slice(0,3).map((function(e){return(0,b.jsx)(p.T1,{symbol:e.rewardTokenSymbol,sx:{fontSize:"".concat(12,"px"),ml:-1}},e.rewardTokenSymbol)})),(0,b.jsx)(a.Z,{sx:{fontSize:"".concat(12,"px"),borderRadius:"50%",bgcolor:"common.white",color:"common.black",ml:-1,zIndex:5},children:(0,b.jsx)(i.Z,{})})]})})})]})})}},44749:function(e,t,r){"use strict";r.d(t,{Ch:function(){return b},r$:function(){return f},a9:function(){return j}});var n=r(59499),i=r(49501),s=r(38264),o=r(81645),a=r(62097),c=r(30120),l=r(29630),d=r(97563),x=r(85893);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t1||l||"USD"===r?2:7);var y=Math.pow(10,-j),v=0!==f&&Math.abs(f)99999);return h&&!w&&(g=Math.trunc(Number(g)*Math.pow(10,j))/Math.pow(10,j)),(0,a.jsxs)(o.Z,d(d({},b),{},{sx:d({display:"inline-flex",flexDirection:"row",alignItems:"center",position:"relative"},b.sx),noWrap:!0,children:[v&&(0,a.jsx)(o.Z,{component:"span",sx:{mr:.5},variant:x||b.variant,color:u||"text.secondary",children:"<"}),"usd"===(null===r||void 0===r?void 0:r.toLowerCase())&&!l&&(0,a.jsx)(o.Z,{component:"span",sx:{mr:.5},variant:x||b.variant,color:u||"text.secondary",children:"$"}),w?(0,a.jsx)(p,{value:g,visibleDecimals:j,roundDown:h,compactThreshold:m}):new Intl.NumberFormat("en-US",{maximumFractionDigits:j,minimumFractionDigits:j}).format(g),l&&(0,a.jsx)(o.Z,{component:"span",sx:{ml:.5},variant:x||b.variant,color:u||"text.secondary",children:"%"}),"usd"!==(null===r||void 0===r?void 0:r.toLowerCase())&&"undefined"!==typeof r&&(0,a.jsx)(o.Z,{component:"span",sx:{ml:.5},variant:x||b.variant,color:u||"text.secondary",children:r})]}))}},92391:function(e,t,r){"use strict";r.d(t,{X:function(){return x}});var n=r(59499),i=r(4730),s=r(30120),o=r(29630),a=r(85893),c=["caption","children","captionVariant","captionColor","align"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t1){var o=(0,n.Z)(i),a=o[0],c=o.slice(1);return(0,d.jsx)(y,m(m({},r),{},{symbols:c,badgeSymbol:"/pools/"+a}))}return(0,d.jsx)(j,m({symbol:t},r))}f.displayName="ATokenIcon"},92381:function(e,t,r){"use strict";r.d(t,{e:function(){return n}});var n=function(e,t,r){e?(localStorage.setItem(r,"false"),t(!1)):(localStorage.setItem(r,"true"),t(!0))}},99404:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/markets",function(){return r(70981)}])},80059:function(e,t,r){"use strict";var n=r(67294);const i=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"}))}));t.Z=i}},function(e){e.O(0,[6740,3629,2935,9774,2888,179],(function(){return t=99404,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1162],{9144:function(e,t,r){"use strict";var n=r(63366),i=r(87462),s=r(67294),o=r(95408),a=r(98700),c=r(39707),l=r(59766),d=r(81719),x=r(78884),u=r(85893);const p=["component","direction","spacing","divider","children"];function h(e,t){const r=s.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,i)=>(e.push(n),i[t.root]})((({ownerState:e,theme:t})=>{let r=(0,i.Z)({display:"flex",flexDirection:"column"},(0,o.k9)({theme:t},(0,o.P$)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,a.hB)(t),i=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"===typeof e.spacing&&null!=e.spacing[r]||"object"===typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),s=(0,o.P$)({values:e.direction,base:i}),c=(0,o.P$)({values:e.spacing,base:i});"object"===typeof s&&Object.keys(s).forEach(((e,t,r)=>{if(!s[e]){const n=t>0?s[r[t-1]]:"column";s[e]=n}}));const d=(t,r)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${i=r?s[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,a.NA)(n,t)}};var i};r=(0,l.Z)(r,(0,o.k9)({theme:t},c,d))}return r=(0,o.dt)(t.breakpoints,r),r})),b=s.forwardRef((function(e,t){const r=(0,x.Z)({props:e,name:"MuiStack"}),s=(0,c.Z)(r),{component:o="div",direction:a="column",spacing:l=0,divider:d,children:b}=s,f=(0,n.Z)(s,p),j={direction:a,spacing:l};return(0,u.jsx)(m,(0,i.Z)({as:o,ownerState:j,ref:t},f,{children:d?h(b,d):b}))}));t.Z=b},70981:function(e,t,r){"use strict";r.r(t),r.d(t,{MarketContainer:function(){return we},default:function(){return Oe},marketContainerProps:function(){return ge}});var n=r(59499),i=r(64288),s=r(30120),o=r(67294),a=r(83550),c=r(49501),l=r(80854),d=r(62097),x=r(61225),u=r(29630),p=r(54181),h=r(45556),m=r(6022),b=r(85893),f=function(e){var t=e.searchTerm,r=e.subtitle,n=(0,d.Z)().breakpoints,i=(0,x.Z)(n.down("sm"));return(0,b.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1,pt:15,pb:32,px:4},children:[i?(0,b.jsxs)(s.Z,{sx:{textAlign:"center",maxWidth:"300px"},children:[(0,b.jsx)(u.Z,{variant:"h2",children:m.ag._("No search results{0}",{0:t&&" for"})}),t&&(0,b.jsxs)(u.Z,{sx:{overflowWrap:"anywhere"},variant:"h2",children:["'",t,"'"]})]}):(0,b.jsx)(u.Z,{sx:{textAlign:"center",maxWidth:"480px",overflowWrap:"anywhere"},variant:"h2",children:m.ag._("No search results{0}",{0:t&&" for '".concat(t,"'")})}),r&&(0,b.jsx)(u.Z,{sx:{width:"280px",textAlign:"center"},variant:"description",color:"text.secondary",children:r})]})},j=r(68861),y=r(69331);var v=o.forwardRef((function(e,t){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),o.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))})),g=r(80562),w=r(81645),O=r(75084),Z=r(8403);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t0?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(X.B,{compact:!0,value:r.totalDebt,variant:"main16"})," ",(0,b.jsx)(R.i,{value:r.totalDebtUSD})]}):(0,b.jsx)(F.J,{variant:"secondary14",color:"text.secondary"})}),(0,b.jsxs)(T.h,{children:[(0,b.jsx)(Y.J,{value:Number(r.totalVariableDebtUSD)>0?r.variableBorrowAPY:"-1",incentives:r.vIncentivesData||[],symbol:r.symbol,variant:"main16",symbolsVariant:"secondary16"}),!r.borrowingEnabled&&Number(r.totalVariableDebt)>0&&!r.isFrozen&&(0,b.jsx)(R.i,{value:"Disabled"})]}),(0,b.jsx)(T.h,{minWidth:95,maxWidth:95,align:"right",children:(0,b.jsx)(O.Z,{variant:"outlined",component:j.rU,href:j.Z6.reserveOverview(r.underlyingAsset,i),onClick:function(){return o(q.uZ.DETAILS_NAVIGATION,{type:"Button",assetName:r.name,asset:r.underlyingAsset,market:i})},children:(0,b.jsx)(c.cC,{id:"Details"})})})]})},J=r(91655),$=function(){return(0,b.jsxs)(H.H,{px:6,minHeight:76,children:[(0,b.jsxs)(T.h,{isRow:!0,maxWidth:280,children:[(0,b.jsx)(J.Z,{variant:"circular",width:32,height:32}),(0,b.jsx)(s.Z,{sx:{pl:3.5,overflow:"hidden"},children:(0,b.jsx)(J.Z,{width:75,height:24})})]}),(0,b.jsx)(T.h,{children:(0,b.jsx)(J.Z,{width:70,height:24})}),(0,b.jsx)(T.h,{children:(0,b.jsx)(J.Z,{width:70,height:24})}),(0,b.jsx)(T.h,{children:(0,b.jsx)(J.Z,{width:70,height:24})}),(0,b.jsx)(T.h,{children:(0,b.jsx)(J.Z,{width:70,height:24})}),(0,b.jsx)(T.h,{children:(0,b.jsx)(J.Z,{width:70,height:24})}),(0,b.jsx)(T.h,{maxWidth:95,minWidth:95,align:"right",children:(0,b.jsx)(J.Z,{width:74,height:38})})]})},Q=r(44373),ee=r(92391),te=r(15880),re=function(e){var t=(0,B.Z)({},e),r=(0,A.f)().currentMarket,n=(0,U.Yh)((function(e){return e.trackEvent}));return(0,b.jsxs)(te.o,{symbol:t.symbol,iconSymbol:t.iconSymbol,name:t.name,underlyingAsset:t.underlyingAsset,currentMarket:r,isIsolated:t.isIsolated,children:[(0,b.jsx)(ee.X,{caption:(0,b.jsx)(c.cC,{id:"Total supplied"}),captionVariant:"description",mb:3,children:(0,b.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column",alignItems:{xs:"flex-end"},justifyContent:"center",textAlign:"center"},children:[(0,b.jsx)(X.B,{compact:!0,value:t.totalLiquidity,variant:"secondary14"}),(0,b.jsx)(R.i,{value:t.totalLiquidityUSD,rightAlign:!0})]})}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(c.cC,{id:"Supply APY"}),captionVariant:"description",mb:3,align:"flex-start",children:(0,b.jsx)(Y.J,{align:"flex-end",value:t.supplyAPY,incentives:t.aIncentivesData||[],symbol:t.symbol,variant:"secondary14"})}),(0,b.jsx)(Q.Z,{sx:{mb:3}}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(c.cC,{id:"Total borrowed"}),captionVariant:"description",mb:3,children:(0,b.jsx)(s.Z,{sx:{display:"flex",flexDirection:"column",alignItems:{xs:"flex-end"},justifyContent:"center",textAlign:"center"},children:Number(t.totalDebt)>0?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(X.B,{compact:!0,value:t.totalDebt,variant:"secondary14"}),(0,b.jsx)(R.i,{value:t.totalDebtUSD,rightAlign:!0})]}):(0,b.jsx)(F.J,{variant:"secondary14",color:"text.secondary"})})}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(I.B,{text:(0,b.jsx)(c.cC,{id:"Borrow APY, variable"}),variant:"description"},"APY_list_mob_variable_type"),captionVariant:"description",mb:3,align:"flex-start",children:(0,b.jsxs)(s.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,b.jsx)(Y.J,{align:"flex-end",value:Number(t.totalVariableDebtUSD)>0?t.variableBorrowAPY:"-1",incentives:t.vIncentivesData||[],symbol:t.symbol,variant:"secondary14"}),!t.borrowingEnabled&&Number(t.totalVariableDebt)>0&&!t.isFrozen&&(0,b.jsx)(R.i,{value:"Disabled"})]})}),(0,b.jsx)(O.Z,{variant:"outlined",component:j.rU,href:j.Z6.reserveOverview(t.underlyingAsset,r),fullWidth:!0,onClick:function(){n(q.uZ.DETAILS_NAVIGATION,{type:"button",asset:t.underlyingAsset,market:r,assetName:t.name})},children:(0,b.jsx)(c.cC,{id:"View details"})})]})},ne=function(){return(0,b.jsxs)(te.o,{loading:!0,children:[(0,b.jsx)(ee.X,{caption:(0,b.jsx)(J.Z,{width:100,height:20}),captionVariant:"description",mb:3,children:(0,b.jsx)(J.Z,{width:45,height:20})}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(J.Z,{width:100,height:20}),captionVariant:"description",mb:3,align:"flex-start",children:(0,b.jsx)(J.Z,{width:45,height:20})}),(0,b.jsx)(Q.Z,{sx:{mb:3}}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(J.Z,{width:100,height:20}),captionVariant:"description",mb:3,children:(0,b.jsx)(J.Z,{width:45,height:20})}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(J.Z,{width:100,height:20}),captionVariant:"description",mb:3,align:"flex-start",children:(0,b.jsx)(J.Z,{width:45,height:20})}),(0,b.jsx)(ee.X,{caption:(0,b.jsx)(J.Z,{width:100,height:20}),captionVariant:"description",mb:4,align:"flex-start",children:(0,b.jsx)(J.Z,{width:45,height:20})}),(0,b.jsx)(J.Z,{width:"100%",height:38})]})};function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t0&&(0,b.jsxs)(s.Z,{sx:{mt:10,px:{xs:4,xsm:6}},children:[(0,b.jsxs)(u.Z,{variant:"h4",mb:4,children:[(0,b.jsx)(c.cC,{id:"Show Frozen or paused assets"}),(0,b.jsx)(p.Z,{checked:B,onChange:function(){M((function(e){return!e}))},inputProps:{"aria-label":"controlled"}})]}),B&&(0,b.jsx)(y.v,{severity:"info",children:(0,b.jsx)(c.cC,{id:"These assets are temporarily frozen or paused by YieldLend community decisions, meaning that further supply / borrow, or rate swap of these assets are unavailable. Withdrawals and debt repayments are allowed. Follow the <0>YieldLend governance forum for further updates.",components:{0:(0,b.jsx)(j.rU,{onClick:function(){D(q.vh.EXTERNAL_LINK,{link:"Frozen Market Markets Page",frozenMarket:m.name})},href:"https://governance.aave.com",underline:"always"})}})})]}),B&&(0,b.jsx)(ae,{reserves:N,loading:r}),!r&&0===I.length&&!V&&(0,b.jsx)(f,{searchTerm:g,subtitle:(0,b.jsx)(c.cC,{id:"We couldn't find any assets related to your search. Try again with a different asset name, symbol, or address."})})]})},me=r(1279),be=r(74815),fe=r(87369),je=function(){var e=(0,k.HT)(),t=e.reserves,r=e.loading,n=(0,d.Z)(),i=(0,x.Z)(n.breakpoints.down("sm")),s=t.reduce((function(e,t){return{totalLiquidity:e.totalLiquidity.plus(t.totalLiquidityUSD),totalDebt:e.totalDebt.plus(t.totalDebtUSD)}}),{totalLiquidity:(0,me.hE)(0),totalDebt:(0,me.hE)(0)}),o=i?"main16":"main21",a=i?"secondary16":"secondary21";return(0,b.jsxs)(be.f,{containerProps:ge,pageTitle:(0,b.jsx)(c.cC,{id:"Markets"}),withMarketSwitcher:!0,children:[(0,b.jsx)(fe.d,{hideIcon:!0,title:(0,b.jsx)(c.cC,{id:"Total market size"}),loading:r,children:(0,b.jsx)(X.B,{value:s.totalLiquidity.toString(),symbol:"USD",variant:o,visibleDecimals:2,compact:!0,symbolsColor:"#A5A8B6",symbolsVariant:a})}),(0,b.jsx)(fe.d,{hideIcon:!0,title:(0,b.jsx)(c.cC,{id:"Total available"}),loading:r,children:(0,b.jsx)(X.B,{value:s.totalLiquidity.minus(s.totalDebt).toString(),symbol:"USD",variant:o,visibleDecimals:2,compact:!0,symbolsColor:"#A5A8B6",symbolsVariant:a})}),(0,b.jsx)(fe.d,{hideIcon:!0,title:(0,b.jsx)(c.cC,{id:"Total borrows"}),loading:r,children:(0,b.jsx)(X.B,{value:s.totalDebt.toString(),symbol:"USD",variant:o,visibleDecimals:2,compact:!0,symbolsColor:"#A5A8B6",symbolsVariant:a})})]})};function ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t1?2:0},children:[(0,b.jsx)(p.T1,{symbol:e.rewardTokenSymbol,sx:{fontSize:"20px",mr:1}}),(0,b.jsx)(o.Z,{variant:i,children:e.rewardTokenSymbol})]}),width:"100%",children:(0,b.jsx)(a,{incentiveAPR:e.incentiveAPR})},e.rewardTokenAddress)})),t.length>1&&(0,b.jsx)(s.Z,{sx:function(e){return{pt:1,mt:1,border:"1px solid ".concat(e.palette.divider)}},children:(0,b.jsx)(m.X,{caption:(0,b.jsx)(h.cC,{id:"Net APR"}),height:32,children:(0,b.jsx)(a,{incentiveAPR:r})})})]})]})},j=function(){return(0,b.jsx)(s.Z,{sx:{p:{xs:"0 4px",xsm:"3.625px 4px"},display:"flex",alignItems:"center",justifyContent:"center"},children:(0,b.jsx)(o.Z,{variant:"main12",color:"text.secondary",children:"\xa0"})})},y=function(e){var t=e.incentives,r=e.symbol,h=e.displayBlank,m=(0,c.useState)(!1),y=m[0],v=m[1],g=(0,l.Yh)((function(e){return e.trackEvent}));if(!(t&&t.length>0))return h?(0,b.jsx)(j,{}):null;var w=t.some((function(e){return"Infinity"===e.incentiveAPR})),O=w?"Infinity":t.reduce((function(e,t){return e+ +t.incentiveAPR}),0),Z=w?"Infinity":"Infinity"!==O?(0,n.hE)(O||0).toNumber():"Infinity";if(0===Z)return h?(0,b.jsx)(j,{}):null;return(0,b.jsx)(x.a,{tooltipContent:(0,b.jsx)(f,{incentives:t,incentivesNetAPR:Z,symbol:r}),withoutHover:!0,setOpen:v,open:y,children:(0,b.jsxs)(s.Z,{sx:function(e){return{p:{xs:"0 4px",xsm:"2px 4px"},border:"1px solid ".concat(y?e.palette.action.disabled:e.palette.divider),borderRadius:"4px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s ease",bgcolor:y?"action.hover":"transparent","&:hover":{bgcolor:"action.hover",borderColor:"action.disabled"}}},onClick:function(){g(d.h1.VIEW_LM_DETAILS_DASHBOARD,{}),v(!y)},children:[(0,b.jsx)(s.Z,{sx:{mr:2},children:"Infinity"!==Z&&Z<1e4?(0,b.jsx)(u.B,{value:Z,percent:!0,variant:"secondary12",color:"text.secondary"}):"Infinity"!==Z&&Z>9999?(0,b.jsx)(u.B,{value:Z,percent:!0,compact:!0,variant:"secondary12",color:"text.secondary"}):"Infinity"===Z?(0,b.jsx)(o.Z,{variant:"main12",color:"text.secondary",children:"\u221e"}):void 0}),(0,b.jsx)(s.Z,{sx:{display:"inline-flex"},children:(0,b.jsx)(b.Fragment,{children:t.length<5?(0,b.jsx)(b.Fragment,{children:t.map((function(e){return(0,b.jsx)(p.T1,{symbol:e.rewardTokenSymbol,sx:{fontSize:"".concat(12,"px"),ml:-1}},e.rewardTokenSymbol)}))}):(0,b.jsxs)(b.Fragment,{children:[t.slice(0,3).map((function(e){return(0,b.jsx)(p.T1,{symbol:e.rewardTokenSymbol,sx:{fontSize:"".concat(12,"px"),ml:-1}},e.rewardTokenSymbol)})),(0,b.jsx)(a.Z,{sx:{fontSize:"".concat(12,"px"),borderRadius:"50%",bgcolor:"common.white",color:"common.black",ml:-1,zIndex:5},children:(0,b.jsx)(i.Z,{})})]})})})]})})}},44749:function(e,t,r){"use strict";r.d(t,{Ch:function(){return b},r$:function(){return f},a9:function(){return j}});var n=r(59499),i=r(49501),s=r(38264),o=r(81645),a=r(62097),c=r(30120),l=r(29630),d=r(97563),x=r(85893);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t1||l||"USD"===r?2:7);var y=Math.pow(10,-j),v=0!==f&&Math.abs(f)99999);return h&&!w&&(g=Math.trunc(Number(g)*Math.pow(10,j))/Math.pow(10,j)),(0,a.jsxs)(o.Z,d(d({},b),{},{sx:d({display:"inline-flex",flexDirection:"row",alignItems:"center",position:"relative"},b.sx),noWrap:!0,children:[v&&(0,a.jsx)(o.Z,{component:"span",sx:{mr:.5},variant:x||b.variant,color:u||"text.secondary",children:"<"}),"usd"===(null===r||void 0===r?void 0:r.toLowerCase())&&!l&&(0,a.jsx)(o.Z,{component:"span",sx:{mr:.5},variant:x||b.variant,color:u||"text.secondary",children:"$"}),w?(0,a.jsx)(p,{value:g,visibleDecimals:j,roundDown:h,compactThreshold:m}):new Intl.NumberFormat("en-US",{maximumFractionDigits:j,minimumFractionDigits:j}).format(g),l&&(0,a.jsx)(o.Z,{component:"span",sx:{ml:.5},variant:x||b.variant,color:u||"text.secondary",children:"%"}),"usd"!==(null===r||void 0===r?void 0:r.toLowerCase())&&"undefined"!==typeof r&&(0,a.jsx)(o.Z,{component:"span",sx:{ml:.5},variant:x||b.variant,color:u||"text.secondary",children:r})]}))}},92391:function(e,t,r){"use strict";r.d(t,{X:function(){return x}});var n=r(59499),i=r(4730),s=r(30120),o=r(29630),a=r(85893),c=["caption","children","captionVariant","captionColor","align"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t1){var o=(0,n.Z)(i),a=o[0],c=o.slice(1);return(0,d.jsx)(y,m(m({},r),{},{symbols:c,badgeSymbol:"/pools/"+a}))}return(0,d.jsx)(j,m({symbol:t},r))}f.displayName="ATokenIcon"},92381:function(e,t,r){"use strict";r.d(t,{e:function(){return n}});var n=function(e,t,r){e?(localStorage.setItem(r,"false"),t(!1)):(localStorage.setItem(r,"true"),t(!0))}},99404:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/markets",function(){return r(70981)}])},80059:function(e,t,r){"use strict";var n=r(67294);const i=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"}))}));t.Z=i}},function(e){e.O(0,[6740,3629,2935,9774,2888,179],(function(){return t=99404,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/reserve-overview-96c11f6f2615df3a.js b/_next/static/chunks/pages/reserve-overview-e8f7c849a8c1f935.js similarity index 60% rename from _next/static/chunks/pages/reserve-overview-96c11f6f2615df3a.js rename to _next/static/chunks/pages/reserve-overview-e8f7c849a8c1f935.js index b458a5a..648e14d 100644 --- a/_next/static/chunks/pages/reserve-overview-96c11f6f2615df3a.js +++ b/_next/static/chunks/pages/reserve-overview-e8f7c849a8c1f935.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8219],{29822:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Fe}});var t,o,i=r(49501),s=r(30120),a=r(29630),l=r(11163),c=r(67294),d=r(34637),u=r(59379),x=r(34220),m=r(43629),p=r(83550),h=r(17674),v=r(80854),b=r(75331),f=r(1279),y=r(82403),j=r(44373),g=r(9144),w=r(91655),k=r(70918),Z=r(90149),C=r(75084),T=r(62097),A=r(70794),O=r(29002),S=r(25563),D=r(41024),P=r(69331),E=r(3765),I=r(82482),B=r(8195),R=r(22454),M=r(77537),N=r(56707),_=r(81645),L=r(50029),F=r(87794),U=r.n(F),W=r(83454),Y=r(16376),V=r(57609),z=r(56365),H=r(31959),G=r(46930);function K(){return K=Object.assign?Object.assign.bind():function(e){for(var n=1;nDashboard.",components:{0:(0,X.jsx)(se.rU,{href:se.Z6.dashboard})}})}),E&&!D&&(0,X.jsx)(P.v,{sx:{mb:0},severity:"info",icon:!1,children:(0,X.jsx)(i.cC,{id:"Borrowing is unavailable because you\u2019ve enabled Efficiency Mode (E-Mode) for {0} category. To manage E-Mode categories visit your <0>Dashboard.",values:{0:(0,ae.U)(c[l.userEmodeCategoryId].label)},components:{0:(0,X.jsx)(se.rU,{href:se.Z6.dashboard})}})}),!E&&D&&(0,X.jsx)(P.v,{sx:{mb:0},severity:"info",icon:!1,children:(0,X.jsx)(i.cC,{id:"Borrowing is unavailable because you\u2019re using Isolation mode. To manage Isolation mode visit your <0>Dashboard.",components:{0:(0,X.jsx)(se.rU,{href:se.Z6.dashboard})}})}),"0"===r&&(null===u||void 0===u?void 0:u.determineWarningDisplay({supplyCap:u,icon:!1,sx:{mb:0}})),"0"===t&&(null===p||void 0===p?void 0:p.determineWarningDisplay({borrowCap:p,icon:!1,sx:{mb:0}})),o.isIsolated&&"0"!==n&&"0"!==(null===l||void 0===l?void 0:l.totalCollateralUSD)&&(null===v||void 0===v?void 0:v.determineWarningDisplay({debtCeiling:v,icon:!1,sx:{mb:0}}))]})}}({balance:(null===(n=J)||void 0===n?void 0:n.amount)||"0",maxAmountToSupply:ee.toString(),maxAmountToBorrow:Q.toString(),reserve:r}),we=ge.disableSupplyButton,ke=ge.disableBorrowButton,Ze=ge.alerts;if(!u&&!w)return(0,X.jsx)(pe,{loading:p});if(F||z)return(0,X.jsx)(xe,{});var Ce=(0,S.hu)(O).market;return(0,X.jsxs)(me,{children:[r.isWrappedBaseAsset&&(0,X.jsx)(s.Z,{children:(0,X.jsx)(be,{assetSymbol:r.symbol,baseAssetSymbol:$,selectedAsset:o,setSelectedAsset:l})}),(0,X.jsx)(ye,{balance:J.amount,symbol:o,marketTitle:Ce.marketTitle}),r.isFrozen||r.isPaused?(0,X.jsx)(s.Z,{sx:{mt:3},children:r.isPaused?(0,X.jsx)(de,{}):(0,X.jsx)(ue,{})}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(j.Z,{sx:{my:6}}),(0,X.jsxs)(g.Z,{gap:3,children:[!oe&&(0,X.jsx)(he,{reserve:r,value:ee.toString(),usdValue:je,symbol:o,disable:we,onActionClicked:function(){r.isWrappedBaseAsset&&o===$?T(v.hP.toLowerCase(),O,r.name,"reserve",!0):T(r.underlyingAsset,O,r.name,"reserve",!0)}}),r.borrowingEnabled&&(0,X.jsx)(ve,{reserve:r,value:Q.toString(),usdValue:fe,symbol:o,disable:ke,onActionClicked:function(){Z(r.underlyingAsset,O,r.name,"reserve",!0)}}),Ze]})]})]})},de=function(){return(0,X.jsx)(P.v,{sx:{mb:0},severity:"error",icon:!0,children:(0,X.jsx)(i.cC,{id:"Because this asset is paused, no actions can be taken until further notice"})})},ue=function(){return(0,X.jsx)(P.v,{sx:{mb:0},severity:"error",icon:!0,children:(0,X.jsx)(i.cC,{id:"Since this asset is frozen, the only available actions are withdraw and repay which can be accessed from the <0>Dashboard",components:{0:(0,X.jsx)(se.rU,{href:se.Z6.dashboard})}})})},xe=function(){var e=(0,X.jsxs)(g.Z,{children:[(0,X.jsx)(w.Z,{width:150,height:14}),(0,X.jsxs)(g.Z,{sx:{height:"44px"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(w.Z,{width:100,height:14,sx:{mt:1,mb:2}}),(0,X.jsx)(w.Z,{width:75,height:12})]}),(0,X.jsx)(w.Z,{height:36,width:96})]})]});return(0,X.jsxs)(me,{children:[(0,X.jsxs)(g.Z,{direction:"row",gap:3,children:[(0,X.jsx)(w.Z,{width:42,height:42,sx:{borderRadius:"12px"}}),(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(w.Z,{width:100,height:12,sx:{mt:1,mb:2}}),(0,X.jsx)(w.Z,{width:100,height:14})]})]}),(0,X.jsx)(j.Z,{sx:{my:6}}),(0,X.jsx)(s.Z,{children:(0,X.jsxs)(g.Z,{gap:3,children:[e,e]})})]})},me=function(e){var n=e.children;return(0,X.jsxs)(k.Z,{sx:{pt:4,pb:{xs:4,xsm:6},px:{xs:4,xsm:6}},children:[(0,X.jsx)(a.Z,{variant:"h3",sx:{mb:6},children:(0,X.jsx)(i.cC,{id:"Your info"})}),n]})},pe=function(e){var n=e.loading;return(0,X.jsx)(k.Z,{sx:{pt:4,pb:{xs:4,xsm:6},px:{xs:4,xsm:6}},children:n?(0,X.jsx)(Z.Z,{}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(a.Z,{variant:"h3",sx:{mb:{xs:6,xsm:10}},children:(0,X.jsx)(i.cC,{id:"Your info"})}),(0,X.jsx)(a.Z,{sx:{mb:6},color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"Please connect a wallet to view your personal information here."})}),(0,X.jsx)(E.p,{})]})})},he=function(e){var n=e.reserve,r=e.value,t=e.usdValue,o=e.symbol,a=e.disable,l=e.onActionClicked;return(0,X.jsxs)(g.Z,{children:[(0,X.jsx)(ie.Y,{variant:"description",text:(0,X.jsx)(i.cC,{id:"Available to supply"}),capType:oe.R.supplyCap,event:{eventName:V.vh.TOOL_TIP,eventParams:{tooltip:"Available to supply: your info",asset:n.underlyingAsset,assetName:n.name}}}),(0,X.jsxs)(g.Z,{sx:{height:"44px"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(fe,{value:r,symbol:o}),(0,X.jsx)(D.B,{value:t,variant:"subheader2",color:"text.muted",symbolsColor:"text.muted",symbol:"USD"})]}),(0,X.jsx)(C.Z,{sx:{height:"36px",width:"96px"},onClick:l,disabled:a,fullWidth:!1,variant:"contained","data-cy":"supplyButton",children:(0,X.jsx)(i.cC,{id:"Supply"})})]})]})},ve=function(e){var n=e.reserve,r=e.value,t=e.usdValue,o=e.symbol,a=e.disable,l=e.onActionClicked;return(0,X.jsxs)(g.Z,{children:[(0,X.jsx)(ie.Y,{variant:"description",text:(0,X.jsx)(i.cC,{id:"Available to borrow"}),capType:oe.R.borrowCap,event:{eventName:V.vh.TOOL_TIP,eventParams:{tooltip:"Available to borrow: your info",asset:n.underlyingAsset,assetName:n.name}}}),(0,X.jsxs)(g.Z,{sx:{height:"44px"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(fe,{value:r,symbol:o}),(0,X.jsx)(D.B,{value:t,variant:"subheader2",color:"text.muted",symbolsColor:"text.muted",symbol:"USD"})]}),(0,X.jsx)(C.Z,{sx:{height:"36px",width:"96px"},onClick:l,disabled:a,fullWidth:!1,variant:"contained","data-cy":"borrowButton",children:(0,X.jsx)(i.cC,{id:"Borrow"})})]})]})},be=function(e){var n=e.assetSymbol,r=e.baseAssetSymbol,t=e.selectedAsset,o=e.setSelectedAsset;return(0,X.jsxs)(u.f,{color:"primary",value:t,exclusive:!0,onChange:function(e,n){return o(n)},sx:{mb:4},children:[(0,X.jsx)(d.Y,{value:n,children:(0,X.jsx)(a.Z,{variant:"buttonM",children:n})}),(0,X.jsx)(d.Y,{value:r,children:(0,X.jsx)(a.Z,{variant:"buttonM",children:r})})]})},fe=function(e){var n=e.value,r=e.symbol,t=e.children;return(0,X.jsxs)(g.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,X.jsx)(D.B,{value:n,variant:"h4",color:"text.primary"}),(0,X.jsx)(a.Z,{variant:"buttonL",color:"text.secondary",children:r}),t]})},ye=function(e){var n=e.balance,r=e.symbol,t=e.marketTitle,o=(0,T.Z)();return(0,X.jsxs)(g.Z,{direction:"row",gap:3,children:[(0,X.jsx)(s.Z,{sx:function(e){return{width:"42px",height:"42px",background:e.palette.background.surface,border:"0.5px solid ".concat(e.palette.background.disabled),borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center"}},children:(0,X.jsx)(O.o,{sx:{stroke:"".concat(o.palette.text.secondary)}})}),(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(a.Z,{variant:"description",color:"text.secondary",children:"Wallet balance"}),(0,X.jsx)(fe,{value:n,symbol:r,children:(0,X.jsx)(s.Z,{sx:{ml:2},children:(0,X.jsx)(ee,{cryptoSymbol:r,networkMarketName:t})})})]})]})},je=r(61225),ge=r(5152),we=(0,ge.default)((function(){return Promise.all([r.e(6147),r.e(7603),r.e(3409),r.e(6061),r.e(6623),r.e(7561)]).then(r.bind(r,17561)).then((function(e){return e.GhoReserveConfiguration}))}),{loadableGenerated:{webpack:function(){return[17561]}}}),ke=(0,ge.default)((function(){return Promise.all([r.e(3409),r.e(906),r.e(6623),r.e(8588)]).then(r.bind(r,98588)).then((function(e){return e.ReserveConfiguration}))}),{loadableGenerated:{webpack:function(){return[98588]}}}),Ze=function(e){var n=e.reserve,r=(0,G.f)().currentMarket,t=(0,Y.Yh)((function(e){return[e.displayGho]})),o=(0,h.Z)(t,1)[0],l=(0,T.Z)().breakpoints,c=(0,je.Z)(l.down("xsm")),d=o({symbol:n.symbol,currentMarket:r});return(0,X.jsxs)(k.Z,{sx:{pt:4,pb:20,px:c?4:6},children:[(0,X.jsx)(s.Z,{sx:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap",mb:n.isFrozen||"AMPL"==n.symbol||"stETH"===n.symbol?"0px":"36px"},children:(0,X.jsx)(a.Z,{variant:"h3",children:(0,X.jsx)(i.cC,{id:"Reserve status & configuration"})})}),d?(0,X.jsx)(we,{reserve:n}):(0,X.jsx)(ke,{reserve:n})]})},Ce=r(96471),Te=r(74815),Ae=r(87369),Oe=r(73812),Se=r(31538),De=r(41528),Pe=function(e){var n=e.downToSM,r=e.tooltipText,t=e.children;return(0,X.jsx)(De.y,{title:(0,X.jsx)(a.Z,{children:(0,X.jsx)(i.cC,{id:"{tooltipText}",values:{tooltipText:r}})}),children:(0,X.jsx)(s.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:(0,X.jsx)(s.Z,{sx:{bgcolor:"#535047",width:n?"18px":"24px",height:n?"18px":"24px",borderRadius:"50%",display:"flex",justifyContent:"center",ml:"8px",border:"0.5px solid rgba(235, 235, 237, 0.12)"},children:t})})})},Ee=r(72667),Ie=function(e){var n=e.poolReserve,r=e.downToSM,t=e.switchNetwork,o=e.addERC20Token,l=e.currentChainId,d=e.connectedChainId,u=e.hideAToken,x=(0,c.useState)(null),m=x[0],p=x[1],h=(0,c.useState)(!1),v=h[0],b=h[1],f=(0,c.useState)(""),y=f[0],j=f[1],g=(0,c.useState)(""),w=g[0],k=g[1],Z=Boolean(m),C=(0,Y.Yh)((function(e){return e.trackEvent})),T=function(){p(null)};return(0,c.useEffect)((function(){v&&l===d&&(o({address:n.underlyingAsset,decimals:n.decimals,symbol:n.symbol,image:/_/.test(n.iconSymbol)?void 0:y}),b(!1))}),[l,d,v,o,null===n||void 0===n?void 0:n.underlyingAsset,null===n||void 0===n?void 0:n.decimals,null===n||void 0===n?void 0:n.symbol,null===n||void 0===n?void 0:n.iconSymbol,y]),n?(0,X.jsxs)(X.Fragment,{children:[(null===n||void 0===n?void 0:n.symbol)&&!/_/.test(n.symbol)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ee.Js,{symbol:n.iconSymbol,onImageGenerated:j,aToken:!1}),!u&&(0,X.jsx)(Ee.Js,{symbol:n.iconSymbol,onImageGenerated:k,aToken:!0})]}),(0,X.jsx)(s.Z,{onClick:function(e){p(e.currentTarget)},children:(0,X.jsx)(Pe,{tooltipText:"Add token to wallet",downToSM:r,children:(0,X.jsx)(s.Z,{onClick:function(){C(V.f9.ADD_TOKEN_TO_WALLET_DROPDOWN,{asset:n.underlyingAsset,assetName:n.name})},sx:{display:"inline-flex",alignItems:"center","&:hover":{".Wallet__icon":{opacity:"0 !important"},".Wallet__iconHover":{opacity:"1 !important"}},cursor:"pointer"},children:(0,X.jsx)(O.o,{sx:{width:"14px",height:"14px","&:hover":{stroke:"#F1F1F3"}}})})})}),(0,X.jsxs)(Oe.Z,{anchorEl:m,open:Z,onClose:T,MenuListProps:{"aria-labelledby":"basic-button"},keepMounted:!0,"data-cy":"addToWaletSelector",children:[(0,X.jsx)(s.Z,{sx:{px:4,pt:3,pb:2},children:(0,X.jsx)(a.Z,{variant:"secondary12",color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"Underlying token"})})}),(0,X.jsxs)(Se.Z,{value:"underlying",divider:!0,onClick:function(){l!==d?t(l).then((function(){b(!0)})):(C(V.f9.ADD_TO_WALLET,{type:"Underlying token",asset:n.underlyingAsset,assetName:n.name}),o({address:n.underlyingAsset,decimals:n.decimals,symbol:n.symbol,image:/_/.test(n.symbol)?void 0:y})),T()},children:[(0,X.jsx)(Ee.T1,{symbol:n.iconSymbol,sx:{fontSize:"20px"}}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:n.symbol})]},"underlying"),!u&&(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(s.Z,{sx:{px:4,pt:3,pb:2},children:(0,X.jsx)(a.Z,{variant:"secondary12",color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"YieldLend aToken"})})}),(0,X.jsxs)(Se.Z,{value:"atoken",onClick:function(){l!==d?t(l).then((function(){b(!0)})):(C(V.f9.ADD_TO_WALLET,{asset:n.underlyingAsset,assetName:n.name}),o({address:n.aTokenAddress,decimals:n.decimals,symbol:"a".concat(n.symbol),image:/_/.test(n.symbol)?void 0:w})),T()},children:[(0,X.jsx)(Ee.T1,{symbol:n.iconSymbol,sx:{fontSize:"20px"},aToken:!0}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:"a".concat(n.symbol)})]},"atoken")]})]})]}):null},Be=r(58527),Re=function(){var e=(0,x.HT)(),n=e.ghoLoadingData,r=e.ghoReserveData,t=n,o=(0,T.Z)(),a=(0,je.Z)(o.breakpoints.down("sm")),l=a?"main16":"main21",c=a?"secondary16":"secondary21";return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Total borrowed"}),loading:t,hideIcon:!0,children:(0,X.jsx)(D.B,{value:r.aaveFacilitatorBucketLevel,symbol:"USD",variant:l,symbolsVariant:c,symbolsColor:"#A5A8B6"})}),(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Available to borrow"}),loading:t,hideIcon:!0,children:(0,X.jsx)(D.B,{value:r.aaveFacilitatorRemainingCapacity,symbol:"USD",variant:l,symbolsVariant:c,symbolsColor:"#A5A8B6"})}),(0,X.jsx)(Ae.d,{title:(0,X.jsx)(Be.G,{text:(0,X.jsx)(i.cC,{id:"Price"}),children:(0,X.jsx)(i.cC,{id:"The YieldLend Protocol is programmed to always use the price of 1 GHO = $1. This is different from using market pricing via oracles for other crypto assets. This creates stabilizing arbitrage opportunities when the price of GHO fluctuates."})}),loading:t,hideIcon:!0,children:(0,X.jsx)(s.Z,{sx:{display:"inline-flex",alignItems:"center"},children:(0,X.jsx)(D.B,{value:1,symbol:"USD",variant:l,symbolsVariant:c,symbolsColor:"#A5A8B6"})})})]})},Me=function(e){var n=e.underlyingAsset,r=(0,x.HT)(),t=r.reserves,o=r.loading,a=(0,G.f)().currentNetworkConfig,l=(0,Y.Yh)((function(e){return e.trackEvent})),c=(0,T.Z)(),d=(0,je.Z)(c.breakpoints.down("sm")),u=t.find((function(e){return e.underlyingAsset===n})),m=d?"main16":"main21",p=d?"secondary16":"secondary21";return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Reserve Size"}),loading:o,hideIcon:!0,children:(0,X.jsx)(D.B,{value:Math.max(Number(null===u||void 0===u?void 0:u.totalLiquidityUSD),0),symbol:"USD",variant:m,symbolsVariant:p,symbolsColor:"#A5A8B6"})}),(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Available liquidity"}),loading:o,hideIcon:!0,children:(0,X.jsx)(D.B,{value:Math.max(Number(null===u||void 0===u?void 0:u.availableLiquidityUSD),0),symbol:"USD",variant:m,symbolsVariant:p,symbolsColor:"#A5A8B6"})}),(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Utilization Rate"}),loading:o,hideIcon:!0,children:(0,X.jsx)(D.B,{value:null===u||void 0===u?void 0:u.borrowUsageRatio,percent:!0,variant:m,symbolsVariant:p,symbolsColor:"#A5A8B6"})}),(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Oracle price"}),loading:o,hideIcon:!0,children:(0,X.jsxs)(s.Z,{sx:{display:"inline-flex",alignItems:"center"},children:[(0,X.jsx)(D.B,{value:null===u||void 0===u?void 0:u.priceInUSD,symbol:"USD",variant:m,symbolsVariant:p,symbolsColor:"#A5A8B6"}),o?(0,X.jsx)(w.Z,{width:16,height:16,sx:{ml:1,background:"#535047"}}):(0,X.jsx)(Pe,{tooltipText:"View oracle contract",downToSM:d,children:(0,X.jsx)(se.rU,{onClick:function(){return l(V.vh.EXTERNAL_LINK,{Link:"Oracle Price",oracle:null===u||void 0===u?void 0:u.priceOracle,assetName:u.name,asset:u.underlyingAsset})},href:a.explorerLinkBuilder({address:null===u||void 0===u?void 0:u.priceOracle}),sx:{display:"inline-flex",alignItems:"center",color:"#A5A8B6","&:hover":{color:"#F1F1F3"},cursor:"pointer"},children:(0,X.jsx)(_.Z,{sx:{fontSize:d?"12px":"14px"},children:(0,X.jsx)(z.Z,{})})})})]})})]})},Ne=function(e){var n=e.poolReserve,r=e.downToSM,t=e.hideAToken,o=(0,c.useState)(null),l=o[0],d=o[1],u=(0,G.f)(),x=u.currentNetworkConfig,m=u.currentMarket,p=Boolean(l),h=(0,Y.Yh)((function(e){return e.trackEvent}));if(!n)return null;var v=n.borrowingEnabled||Number(n.totalVariableDebt)>0,b=n.stableBorrowRateEnabled||Number(n.totalStableDebt)>0,f=v||b;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(s.Z,{onClick:function(e){h(V.f9.RESERVE_TOKENS_DROPDOWN,{assetName:n.name,asset:n.underlyingAsset,aToken:n.aTokenAddress,market:m,variableDebtToken:n.variableDebtTokenAddress}),d(e.currentTarget)},children:(0,X.jsx)(Pe,{tooltipText:"View token contracts",downToSM:r,children:(0,X.jsx)(s.Z,{sx:{display:"inline-flex",alignItems:"center",color:"#A5A8B6","&:hover":{color:"#F1F1F3"},cursor:"pointer"},children:(0,X.jsx)(_.Z,{sx:{fontSize:"14px"},children:(0,X.jsx)(z.Z,{})})})})}),(0,X.jsxs)(Oe.Z,{anchorEl:l,open:p,onClose:function(){d(null)},MenuListProps:{"aria-labelledby":"basic-button"},keepMounted:!0,"data-cy":"addToWaletSelector",children:[(0,X.jsx)(s.Z,{sx:{px:4,pt:3,pb:2},children:(0,X.jsx)(a.Z,{variant:"secondary12",color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"Underlying token"})})}),(0,X.jsxs)(Se.Z,{onClick:function(){h(V.f9.RESERVE_TOKEN_ACTIONS,{type:"Underlying Token",assetName:n.name,asset:n.underlyingAsset,aToken:n.aTokenAddress,market:m,variableDebtToken:n.variableDebtTokenAddress})},component:"a",href:x.explorerLinkBuilder({address:null===n||void 0===n?void 0:n.underlyingAsset}),target:"_blank",divider:!0,children:[(0,X.jsx)(Ee.T1,{symbol:n.iconSymbol,sx:{fontSize:"20px"}}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:n.symbol})]}),!t&&(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(s.Z,{sx:{px:4,pt:3,pb:2},children:(0,X.jsx)(a.Z,{variant:"secondary12",color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"YieldLend aToken"})})}),(0,X.jsxs)(Se.Z,{component:"a",onClick:function(){h(V.f9.RESERVE_TOKEN_ACTIONS,{type:"aToken",assetName:n.name,asset:n.underlyingAsset,aToken:n.aTokenAddress,market:m,variableDebtToken:n.variableDebtTokenAddress})},href:x.explorerLinkBuilder({address:null===n||void 0===n?void 0:n.aTokenAddress}),target:"_blank",divider:f,children:[(0,X.jsx)(Ee.T1,{symbol:n.iconSymbol,aToken:!0,sx:{fontSize:"20px"}}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:"a"+n.symbol})]})]}),f&&(0,X.jsx)(s.Z,{sx:{px:4,pt:3,pb:2},children:(0,X.jsx)(a.Z,{variant:"secondary12",color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"YieldLend debt token"})})}),v&&(0,X.jsxs)(Se.Z,{component:"a",href:x.explorerLinkBuilder({address:null===n||void 0===n?void 0:n.variableDebtTokenAddress}),target:"_blank",onClick:function(){h(V.f9.RESERVE_TOKEN_ACTIONS,{type:"Variable Debt",assetName:n.name,asset:n.underlyingAsset,aToken:n.aTokenAddress,market:m,variableDebtToken:n.variableDebtTokenAddress})},children:[(0,X.jsx)(Ee.T1,{symbol:"default",sx:{fontSize:"20px"}}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:"Variable debt "+n.symbol})]}),b&&(0,X.jsxs)(Se.Z,{component:"a",href:x.explorerLinkBuilder({address:null===n||void 0===n?void 0:n.stableDebtTokenAddress}),target:"_blank",onClick:function(){h(V.f9.RESERVE_TOKEN_ACTIONS,{type:"Stable Debt",assetName:n.name,asset:n.underlyingAsset,aToken:n.aTokenAddress,market:m,variableDebtToken:n.variableDebtTokenAddress,stableDebtToken:n.stableDebtTokenAddress})},children:[(0,X.jsx)(Ee.T1,{symbol:"default",sx:{fontSize:"20px"}}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:"Stable debt "+n.symbol})]})]})]})},_e=function(e){var n=e.underlyingAsset,r=(0,l.useRouter)(),t=(0,x.HT)(),o=t.reserves,c=t.loading,d=(0,G.f)(),u=d.currentMarket,m=d.currentChainId,p=(0,M.Z)(),v=p.addERC20Token,b=p.switchNetwork,f=p.chainId,y=p.connected,g=(0,Y.Yh)((function(e){return[e.displayGho]})),k=(0,h.Z)(g,1)[0],Z=(0,T.Z)(),A=(0,je.Z)(Z.breakpoints.down("sm")),O=o.find((function(e){return e.underlyingAsset===n})),S=A?"main16":"main21",D=function(){return(0,X.jsx)(s.Z,{mr:3,sx:{mr:3,display:"flex",alignItems:"center",justifyContent:"center"},children:c?(0,X.jsx)(w.Z,{variant:"circular",width:40,height:40,sx:{background:"#535047"}}):(0,X.jsx)("img",{src:"/icons/tokens/".concat(O.iconSymbol.toLowerCase(),".svg"),width:"40px",height:"40px",alt:""})})},P=function(){return c?(0,X.jsx)(w.Z,{width:60,height:28,sx:{background:"#535047"}}):(0,X.jsx)(a.Z,{variant:S,children:O.name})},E=k({symbol:O.symbol,currentMarket:u});return(0,X.jsxs)(Te.f,{titleComponent:(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(s.Z,{sx:{display:"flex",alignItems:A?"flex-start":"center",alignSelf:A?"flex-start":"center",mb:4,minHeight:"40px",flexDirection:A?"column":"row"},children:(0,X.jsx)(C.Z,{variant:"surface",size:"medium",color:"primary",startIcon:(0,X.jsx)(_.Z,{sx:{fontSize:"20px"},children:(0,X.jsx)(Ce.Z,{})}),onClick:function(){0!==history.state.idx?r.back():r.push("/markets")},sx:{mr:3,mb:A?"24px":"0"},children:(0,X.jsx)(i.cC,{id:"Go Back"})})}),A&&(0,X.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",mb:6},children:[(0,X.jsx)(D,{}),(0,X.jsxs)(s.Z,{children:[!c&&(0,X.jsx)(a.Z,{sx:{color:"#A5A8B6"},variant:"caption",children:O.symbol}),(0,X.jsxs)(s.Z,{sx:{display:"inline-flex",alignItems:"center"},children:[(0,X.jsx)(P,{}),c?(0,X.jsx)(w.Z,{width:160,height:16,sx:{ml:1,background:"red"}}):(0,X.jsxs)(s.Z,{sx:{display:"flex"},children:[(0,X.jsx)(Ne,{poolReserve:O,downToSM:A,hideAToken:E}),y&&(0,X.jsx)(Ie,{poolReserve:O,downToSM:A,switchNetwork:b,addERC20Token:v,currentChainId:m,connectedChainId:f,hideAToken:E})]})]})]})]})]}),children:[!A&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ae.d,{title:!c&&(0,X.jsx)(i.cC,{id:"{0}",values:{0:O.symbol}}),withoutIconWrapper:!0,icon:(0,X.jsx)(D,{}),loading:c,children:(0,X.jsxs)(s.Z,{sx:{display:"inline-flex",alignItems:"center"},children:[(0,X.jsx)(P,{}),(0,X.jsxs)(s.Z,{sx:{display:"flex"},children:[(0,X.jsx)(Ne,{poolReserve:O,downToSM:A,hideAToken:E}),y&&(0,X.jsx)(Ie,{poolReserve:O,downToSM:A,switchNetwork:b,addERC20Token:v,currentChainId:m,connectedChainId:f,hideAToken:E})]})]})}),(0,X.jsx)(j.Z,{orientation:"vertical",flexItem:!0,sx:{my:1,borderColor:"rgba(235, 235, 239, 0.08)"}})]}),E?(0,X.jsx)(Re,{}):(0,X.jsx)(Me,{underlyingAsset:n})]})},Le=r(15446);function Fe(){var e=(0,l.useRouter)(),n=(0,x.HT)().reserves,r=e.query.underlyingAsset,t=(0,c.useState)("overview"),o=t[0],p=t[1],h=(0,Y.Yh)((function(e){return e.trackEvent})),v=n.find((function(e){return e.underlyingAsset===r})),b=(0,c.useState)(!1),f=b[0],y=b[1];(0,c.useEffect)((function(){!f&&v&&v.iconSymbol&&r&&(h("Page Viewed",{"Page Name":"Reserve Overview",Reserve:v.iconSymbol,Asset:r}),y(!0))}),[h,v,r,f]);var j="overview"===o;return(0,X.jsxs)(m.hv,{asset:v,children:[(0,X.jsx)(_e,{underlyingAsset:r}),(0,X.jsxs)(Le.O,{children:[(0,X.jsx)(s.Z,{sx:{display:{xs:"flex",lg:"none"},justifyContent:{xs:"center",xsm:"flex-start"},mb:{xs:3,xsm:4}},children:(0,X.jsxs)(u.Z,{color:"primary",value:o,exclusive:!0,onChange:function(e,n){return p(n)},sx:{width:{xs:"100%",xsm:"359px"},height:"44px"},children:[(0,X.jsx)(d.Z,{value:"overview",disabled:"overview"===o,children:(0,X.jsx)(a.Z,{variant:"subheader1",children:(0,X.jsx)(i.cC,{id:"Overview"})})}),(0,X.jsx)(d.Z,{value:"actions",disabled:"actions"===o,children:(0,X.jsx)(a.Z,{variant:"subheader1",children:(0,X.jsx)(i.cC,{id:"Your info"})})})]})}),(0,X.jsxs)(s.Z,{sx:{display:"flex"},children:[(0,X.jsx)(s.Z,{sx:{display:{xs:j?"block":"none",lg:"block"},width:{xs:"100%",lg:"calc(100% - 432px)"},mr:{xs:0,lg:4}},children:(0,X.jsx)(Ze,{reserve:v})}),(0,X.jsx)(s.Z,{sx:{display:{xs:j?"none":"block",lg:"block"},width:{xs:"100%",lg:"416px"}},children:(0,X.jsx)(ce,{reserve:v})})]})]})]})}Fe.getLayout=function(e){return(0,X.jsx)(p.Z,{children:e})}},15446:function(e,n,r){"use strict";r.d(n,{O:function(){return s}});var t=r(30120),o=r(64288),i=r(85893),s=function(e){var n=e.children;return(0,i.jsx)(t.Z,{sx:{display:"flex",flexDirection:"column",flex:1,mt:{xs:"-32px",lg:"-46px",xl:"-44px",xxl:"-48px"}},children:(0,i.jsx)(o.Z,{children:n})})}},40535:function(e,n,r){"use strict";r.d(n,{V:function(){return m}});var t=r(49501),o=r(62097),i=r(61225),s=r(30120),a=r(29630),l=r(75084),c=r(16376),d=r(67728),u=r(68861),x=r(85893),m=function(e){var n=e.pageTitle,r=e.withMigrateButton,m=(0,c.Yh)((function(e){return(0,d.lY)(e)})),p=(0,o.Z)(),h=(0,i.Z)(p.breakpoints.up("lg")),v=(0,i.Z)(p.breakpoints.down("xsm"));return(0,x.jsxs)(s.Z,{sx:{display:"flex",alignItems:{xs:"flex-start",xsm:"center"},mb:n?4:0,flexDirection:{xs:"column",xsm:"row"}},children:[n&&(0,x.jsx)(s.Z,{sx:{display:"flex",alignItems:"flex-start"},children:(0,x.jsx)(a.Z,{variant:v?"h2":h?"display1":"h1",sx:{color:"text.white",mr:{xs:5,xsm:3},mb:{xs:1,xsm:0}},children:n})}),(0,x.jsx)(s.Z,{sx:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",mb:n?0:4},children:m&&r&&(0,x.jsx)(u.rU,{href:u.Z6.migrationTool,sx:{mt:{xs:2,xsm:0}},children:(0,x.jsx)(l.Z,{variant:"gradient",size:"small",children:(0,x.jsx)(t.cC,{id:"Migrate to V3"})})})})]})}},74815:function(e,n,r){"use strict";r.d(n,{f:function(){return m}});var t=r(59499),o=r(62097),i=r(61225),s=r(30120),a=r(64288),l=r(29630),c=r(40535),d=r(85893);function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function x(e){for(var n=1;n1||c||"USD"===r?2:7);var y=Math.pow(10,-f),j=0!==b&&Math.abs(b)99999);return p&&!w&&(g=Math.trunc(Number(g)*Math.pow(10,f))/Math.pow(10,f)),(0,a.jsxs)(s.Z,d(d({},v),{},{sx:d({display:"inline-flex",flexDirection:"row",alignItems:"center",position:"relative"},v.sx),noWrap:!0,children:[j&&(0,a.jsx)(s.Z,{component:"span",sx:{mr:.5},variant:u||v.variant,color:x||"text.secondary",children:"<"}),"usd"===(null===r||void 0===r?void 0:r.toLowerCase())&&!c&&(0,a.jsx)(s.Z,{component:"span",sx:{mr:.5},variant:u||v.variant,color:x||"text.secondary",children:"$"}),w?(0,a.jsx)(m,{value:g,visibleDecimals:f,roundDown:p,compactThreshold:h}):new Intl.NumberFormat("en-US",{maximumFractionDigits:f,minimumFractionDigits:f}).format(g),c&&(0,a.jsx)(s.Z,{component:"span",sx:{ml:.5},variant:u||v.variant,color:x||"text.secondary",children:"%"}),"usd"!==(null===r||void 0===r?void 0:r.toLowerCase())&&"undefined"!==typeof r&&(0,a.jsx)(s.Z,{component:"span",sx:{ml:.5},variant:u||v.variant,color:x||"text.secondary",children:r})]}))}},32667:function(e,n,r){"use strict";r.d(n,{U:function(){return t}});var t=function(e){return""===e?"Disabled":e}},82482:function(e,n,r){"use strict";r.d(n,{P:function(){return f}});var t=r(80854),o=r(1279),i=r(81206),s=r(82403),a=r(70794),l=r(16376),c=r(25298),d=r(52369),u=r(59499),x=r(87669),m=r(15591),p=r(12987);function h(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}var v=function(e,n,r){var t=(0,p.z)().poolTokensBalanceService;return(0,x.h)({queries:e.map((function(e){return function(e){for(var n=1;n{0} to transfer your {network} assets.",values:{0:n.name,name:r,network:m},components:{0:(0,c.jsx)(l.rU,{onClick:function(){p(a.vh.EXTERNAL_LINK,{bridge:n.name,Link:"Bridge Link"})},href:n.url})}}):(0,c.jsx)(t.cC,{id:"Your {name} wallet is empty. Purchase or transfer assets.",values:{name:r}})})}},15591:function(e,n,r){"use strict";r.d(n,{B:function(){return o},g:function(){return i}});var t=r(90116),o={governance:["governance"],staking:["staking"],pool:["pool"],incentives:["incentives"],gho:["gho"],market:function(e){return[e.chainId,!!e.isFork,e.market]},user:function(e){return[e]},powers:function(e,n){return[].concat((0,t.Z)(o.governance),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(n)),["powers"])},voteOnProposal:function(e,n,r){return[].concat((0,t.Z)(o.governance),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(r)),[n,"voteOnProposal"])},votingPowerAt:function(e,n,r,i){return[].concat((0,t.Z)(o.governance),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(i)),[n,r,"votingPowerAt"])},governanceTokens:function(e,n){return[].concat((0,t.Z)(o.governance),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(n)),["governanceTokens"])},transactionHistory:function(e,n){return[].concat((0,t.Z)(o.user(e)),(0,t.Z)(o.market(n)),["transactionHistory"])},poolTokens:function(e,n){return[].concat((0,t.Z)(o.pool),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(n)),["poolTokens"])},poolReservesDataHumanized:function(e){return[].concat((0,t.Z)(o.pool),(0,t.Z)(o.market(e)),["poolReservesDataHumanized"])},generalStakeUiData:function(e){return[].concat((0,t.Z)(o.staking),(0,t.Z)(o.market(e)),["generalStakeUiData"])},userStakeUiData:function(e,n){return[].concat((0,t.Z)(o.staking),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(n)),["userStakeUiData"])},paraswapRates:function(e,n,r,i,s){return[].concat((0,t.Z)(o.user(s)),[e,n,r,i,"paraswapRates"])},gasPrices:function(e){return[e,"gasPrices"]},poolApprovedAmount:function(e,n,r){return[].concat((0,t.Z)(o.pool),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(r)),[n,"poolApprovedAmount"])},approvedAmount:function(e,n,r,i){return[].concat((0,t.Z)(o.user(e)),(0,t.Z)(o.market(i)),[n,r,"approvedAmount"])}},i=6e4},59286:function(e,n,r){"use strict";r.d(n,{nG:function(){return l},BC:function(){return c},hF:function(){return d}});var t=r(75331),o=r(1279),i=r(70794),s=r(21046),a=r(87385);function l(e,n,r){var l,c,d,u,x=e.availableLiquidityUSD,m=i.Z.min(n.availableBorrowsUSD,x),p="0"===e.borrowCap?(0,o.hE)(s.Bz.toString()):(0,o.hE)(Number(e.borrowCap)).minus((0,o.hE)(e.totalDebt)),h=i.Z.max(i.Z.min(e.formattedAvailableLiquidity,p),0),v=(0,o.hE)((null===n||void 0===n?void 0:n.availableBorrowsMarketReferenceCurrency)||0).div(e.formattedPriceInMarketReferenceCurrency),b=i.Z.min(v,h);r===t.tk.Stable&&(b=i.Z.min(b,(0,o.hE)(e.formattedAvailableLiquidity).multipliedBy(.25)));var f=b.gte(v)||"0"!==n.totalBorrowsMarketReferenceCurrency&&m.lt(x)||m.eq(x)&&"0"!==e.totalDebt||e.borrowCapUSD&&"0"!==e.totalDebt&&m.gte(x)||n.isInIsolationMode&&"0"!==(null===(l=n.isolatedReserve)||void 0===l?void 0:l.isolationModeTotalDebt)&&(0,o.hE)((null===(c=n.isolatedReserve)||void 0===c?void 0:c.debtCeiling)||"0").minus((null===(d=n.isolatedReserve)||void 0===d?void 0:d.isolationModeTotalDebt)||"0").shiftedBy(-((null===(u=n.isolatedReserve)||void 0===u?void 0:u.debtCeilingDecimals)||0)).multipliedBy("0.99").lt(n.availableBorrowsUSD)?b.multipliedBy("0.99"):b;return(0,a.$w)(f.toString(10),e.decimals)}function c(e,n){var r,t,l,c,d=(0,o.hE)((null===e||void 0===e?void 0:e.availableBorrowsMarketReferenceCurrency)||0),u="0"===n.borrowCap?(0,o.hE)(s.Bz.toString()):(0,o.hE)(Number(n.borrowCap)).minus((0,o.hE)(n.totalDebt)),x=i.Z.min(d,u),m="0"!==e.totalBorrowsMarketReferenceCurrency||n.borrowCapUSD&&"0"!==n.totalDebt&&x.gte(u)||e.isInIsolationMode&&"0"!==(null===(r=e.isolatedReserve)||void 0===r?void 0:r.isolationModeTotalDebt)&&(0,o.hE)((null===(t=e.isolatedReserve)||void 0===t?void 0:t.debtCeiling)||"0").minus((null===(l=e.isolatedReserve)||void 0===l?void 0:l.isolationModeTotalDebt)||"0").shiftedBy(-((null===(c=e.isolatedReserve)||void 0===c?void 0:c.debtCeilingDecimals)||0)).multipliedBy("0.99").lt(e.availableBorrowsUSD)?x.multipliedBy("0.99"):x;return(0,a.$w)(m.toString(10),18)}function d(e,n){var r=e.borrowingEnabled,t=e.isActive,o=e.borrowableInIsolation,i=e.eModeCategoryId,s=e.isFrozen,a=e.isPaused;return!(!r||!t||s||a)&&((null===n||void 0===n||!n.isInEmode||i===n.userEmodeCategoryId)&&!(null!==n&&void 0!==n&&n.isInIsolationMode&&!o))}},94847:function(e,n,r){"use strict";r.d(n,{x:function(){return a},I:function(){return l}});var t=r(80854),o=r(1279),i=r(70794),s=r(87385);function a(e,n){return"0"===e?new i.Z(-1):new i.Z(e).minus(n)}function l(e,n,r,l){if(n.isFrozen)return"0";var c=(0,o.hE)(e);return c.gt(0)&&r.toLowerCase()===t.hP.toLowerCase()&&(c=c.minus(l)),"0"!==n.supplyCap&&(c=i.Z.min(c,a(n.supplyCap,n.totalLiquidity))),c.lte(0)?"0":(0,s.$w)(c.toString(10),n.decimals)}},97438:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reserve-overview",function(){return r(29822)}])}},function(e){e.O(0,[3327,9057,8705,3629,7324,9774,2888,179],(function(){return n=97438,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8219],{29822:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Fe}});var t,o,i=r(49501),s=r(30120),a=r(29630),l=r(11163),c=r(67294),d=r(34637),u=r(59379),x=r(34220),m=r(43629),p=r(83550),h=r(17674),v=r(80854),b=r(75331),f=r(1279),y=r(82403),j=r(44373),g=r(9144),w=r(91655),k=r(70918),Z=r(90149),C=r(75084),T=r(62097),A=r(70794),O=r(29002),S=r(25563),D=r(41024),P=r(69331),E=r(3765),I=r(82482),B=r(8195),R=r(22454),M=r(77537),N=r(56707),_=r(81645),L=r(50029),F=r(87794),U=r.n(F),W=r(83454),Y=r(16376),V=r(57609),z=r(56365),H=r(31959),G=r(46930);function K(){return K=Object.assign?Object.assign.bind():function(e){for(var n=1;nDashboard.",components:{0:(0,X.jsx)(se.rU,{href:se.Z6.dashboard})}})}),E&&!D&&(0,X.jsx)(P.v,{sx:{mb:0},severity:"info",icon:!1,children:(0,X.jsx)(i.cC,{id:"Borrowing is unavailable because you\u2019ve enabled Efficiency Mode (E-Mode) for {0} category. To manage E-Mode categories visit your <0>Dashboard.",values:{0:(0,ae.U)(c[l.userEmodeCategoryId].label)},components:{0:(0,X.jsx)(se.rU,{href:se.Z6.dashboard})}})}),!E&&D&&(0,X.jsx)(P.v,{sx:{mb:0},severity:"info",icon:!1,children:(0,X.jsx)(i.cC,{id:"Borrowing is unavailable because you\u2019re using Isolation mode. To manage Isolation mode visit your <0>Dashboard.",components:{0:(0,X.jsx)(se.rU,{href:se.Z6.dashboard})}})}),"0"===r&&(null===u||void 0===u?void 0:u.determineWarningDisplay({supplyCap:u,icon:!1,sx:{mb:0}})),"0"===t&&(null===p||void 0===p?void 0:p.determineWarningDisplay({borrowCap:p,icon:!1,sx:{mb:0}})),o.isIsolated&&"0"!==n&&"0"!==(null===l||void 0===l?void 0:l.totalCollateralUSD)&&(null===v||void 0===v?void 0:v.determineWarningDisplay({debtCeiling:v,icon:!1,sx:{mb:0}}))]})}}({balance:(null===(n=J)||void 0===n?void 0:n.amount)||"0",maxAmountToSupply:ee.toString(),maxAmountToBorrow:Q.toString(),reserve:r}),we=ge.disableSupplyButton,ke=ge.disableBorrowButton,Ze=ge.alerts;if(!u&&!w)return(0,X.jsx)(pe,{loading:p});if(F||z)return(0,X.jsx)(xe,{});var Ce=(0,S.hu)(O).market;return(0,X.jsxs)(me,{children:[r.isWrappedBaseAsset&&(0,X.jsx)(s.Z,{children:(0,X.jsx)(be,{assetSymbol:r.symbol,baseAssetSymbol:$,selectedAsset:o,setSelectedAsset:l})}),(0,X.jsx)(ye,{balance:J.amount,symbol:o,marketTitle:Ce.marketTitle}),r.isFrozen||r.isPaused?(0,X.jsx)(s.Z,{sx:{mt:3},children:r.isPaused?(0,X.jsx)(de,{}):(0,X.jsx)(ue,{})}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(j.Z,{sx:{my:6}}),(0,X.jsxs)(g.Z,{gap:3,children:[!oe&&(0,X.jsx)(he,{reserve:r,value:ee.toString(),usdValue:je,symbol:o,disable:we,onActionClicked:function(){r.isWrappedBaseAsset&&o===$?T(v.hP.toLowerCase(),O,r.name,"reserve",!0):T(r.underlyingAsset,O,r.name,"reserve",!0)}}),r.borrowingEnabled&&(0,X.jsx)(ve,{reserve:r,value:Q.toString(),usdValue:fe,symbol:o,disable:ke,onActionClicked:function(){Z(r.underlyingAsset,O,r.name,"reserve",!0)}}),Ze]})]})]})},de=function(){return(0,X.jsx)(P.v,{sx:{mb:0},severity:"error",icon:!0,children:(0,X.jsx)(i.cC,{id:"Because this asset is paused, no actions can be taken until further notice"})})},ue=function(){return(0,X.jsx)(P.v,{sx:{mb:0},severity:"error",icon:!0,children:(0,X.jsx)(i.cC,{id:"Since this asset is frozen, the only available actions are withdraw and repay which can be accessed from the <0>Dashboard",components:{0:(0,X.jsx)(se.rU,{href:se.Z6.dashboard})}})})},xe=function(){var e=(0,X.jsxs)(g.Z,{children:[(0,X.jsx)(w.Z,{width:150,height:14}),(0,X.jsxs)(g.Z,{sx:{height:"44px"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(w.Z,{width:100,height:14,sx:{mt:1,mb:2}}),(0,X.jsx)(w.Z,{width:75,height:12})]}),(0,X.jsx)(w.Z,{height:36,width:96})]})]});return(0,X.jsxs)(me,{children:[(0,X.jsxs)(g.Z,{direction:"row",gap:3,children:[(0,X.jsx)(w.Z,{width:42,height:42,sx:{borderRadius:"12px"}}),(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(w.Z,{width:100,height:12,sx:{mt:1,mb:2}}),(0,X.jsx)(w.Z,{width:100,height:14})]})]}),(0,X.jsx)(j.Z,{sx:{my:6}}),(0,X.jsx)(s.Z,{children:(0,X.jsxs)(g.Z,{gap:3,children:[e,e]})})]})},me=function(e){var n=e.children;return(0,X.jsxs)(k.Z,{sx:{pt:4,pb:{xs:4,xsm:6},px:{xs:4,xsm:6}},children:[(0,X.jsx)(a.Z,{variant:"h3",sx:{mb:6},children:(0,X.jsx)(i.cC,{id:"Your info"})}),n]})},pe=function(e){var n=e.loading;return(0,X.jsx)(k.Z,{sx:{pt:4,pb:{xs:4,xsm:6},px:{xs:4,xsm:6}},children:n?(0,X.jsx)(Z.Z,{}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(a.Z,{variant:"h3",sx:{mb:{xs:6,xsm:10}},children:(0,X.jsx)(i.cC,{id:"Your info"})}),(0,X.jsx)(a.Z,{sx:{mb:6},color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"Please connect a wallet to view your personal information here."})}),(0,X.jsx)(E.p,{})]})})},he=function(e){var n=e.reserve,r=e.value,t=e.usdValue,o=e.symbol,a=e.disable,l=e.onActionClicked;return(0,X.jsxs)(g.Z,{children:[(0,X.jsx)(ie.Y,{variant:"description",text:(0,X.jsx)(i.cC,{id:"Available to supply"}),capType:oe.R.supplyCap,event:{eventName:V.vh.TOOL_TIP,eventParams:{tooltip:"Available to supply: your info",asset:n.underlyingAsset,assetName:n.name}}}),(0,X.jsxs)(g.Z,{sx:{height:"44px"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(fe,{value:r,symbol:o}),(0,X.jsx)(D.B,{value:t,variant:"subheader2",color:"text.muted",symbolsColor:"text.muted",symbol:"USD"})]}),(0,X.jsx)(C.Z,{sx:{height:"36px",width:"96px"},onClick:l,disabled:a,fullWidth:!1,variant:"contained","data-cy":"supplyButton",children:(0,X.jsx)(i.cC,{id:"Supply"})})]})]})},ve=function(e){var n=e.reserve,r=e.value,t=e.usdValue,o=e.symbol,a=e.disable,l=e.onActionClicked;return(0,X.jsxs)(g.Z,{children:[(0,X.jsx)(ie.Y,{variant:"description",text:(0,X.jsx)(i.cC,{id:"Available to borrow"}),capType:oe.R.borrowCap,event:{eventName:V.vh.TOOL_TIP,eventParams:{tooltip:"Available to borrow: your info",asset:n.underlyingAsset,assetName:n.name}}}),(0,X.jsxs)(g.Z,{sx:{height:"44px"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(fe,{value:r,symbol:o}),(0,X.jsx)(D.B,{value:t,variant:"subheader2",color:"text.muted",symbolsColor:"text.muted",symbol:"USD"})]}),(0,X.jsx)(C.Z,{sx:{height:"36px",width:"96px"},onClick:l,disabled:a,fullWidth:!1,variant:"contained","data-cy":"borrowButton",children:(0,X.jsx)(i.cC,{id:"Borrow"})})]})]})},be=function(e){var n=e.assetSymbol,r=e.baseAssetSymbol,t=e.selectedAsset,o=e.setSelectedAsset;return(0,X.jsxs)(u.f,{color:"primary",value:t,exclusive:!0,onChange:function(e,n){return o(n)},sx:{mb:4},children:[(0,X.jsx)(d.Y,{value:n,children:(0,X.jsx)(a.Z,{variant:"buttonM",children:n})}),(0,X.jsx)(d.Y,{value:r,children:(0,X.jsx)(a.Z,{variant:"buttonM",children:r})})]})},fe=function(e){var n=e.value,r=e.symbol,t=e.children;return(0,X.jsxs)(g.Z,{direction:"row",alignItems:"center",gap:1,children:[(0,X.jsx)(D.B,{value:n,variant:"h4",color:"text.primary"}),(0,X.jsx)(a.Z,{variant:"buttonL",color:"text.secondary",children:r}),t]})},ye=function(e){var n=e.balance,r=e.symbol,t=e.marketTitle,o=(0,T.Z)();return(0,X.jsxs)(g.Z,{direction:"row",gap:3,children:[(0,X.jsx)(s.Z,{sx:function(e){return{width:"42px",height:"42px",background:e.palette.background.surface,border:"0.5px solid ".concat(e.palette.background.disabled),borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center"}},children:(0,X.jsx)(O.o,{sx:{stroke:"".concat(o.palette.text.secondary)}})}),(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(a.Z,{variant:"description",color:"text.secondary",children:"Wallet balance"}),(0,X.jsx)(fe,{value:n,symbol:r,children:(0,X.jsx)(s.Z,{sx:{ml:2},children:(0,X.jsx)(ee,{cryptoSymbol:r,networkMarketName:t})})})]})]})},je=r(61225),ge=r(5152),we=(0,ge.default)((function(){return Promise.all([r.e(6147),r.e(7603),r.e(3409),r.e(6061),r.e(6623),r.e(7561)]).then(r.bind(r,17561)).then((function(e){return e.GhoReserveConfiguration}))}),{loadableGenerated:{webpack:function(){return[17561]}}}),ke=(0,ge.default)((function(){return Promise.all([r.e(3409),r.e(906),r.e(6623),r.e(8588)]).then(r.bind(r,98588)).then((function(e){return e.ReserveConfiguration}))}),{loadableGenerated:{webpack:function(){return[98588]}}}),Ze=function(e){var n=e.reserve,r=(0,G.f)().currentMarket,t=(0,Y.Yh)((function(e){return[e.displayGho]})),o=(0,h.Z)(t,1)[0],l=(0,T.Z)().breakpoints,c=(0,je.Z)(l.down("xsm")),d=o({symbol:n.symbol,currentMarket:r});return(0,X.jsxs)(k.Z,{sx:{pt:4,pb:20,px:c?4:6},children:[(0,X.jsx)(s.Z,{sx:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap",mb:n.isFrozen||"AMPL"==n.symbol||"stETH"===n.symbol?"0px":"36px"},children:(0,X.jsx)(a.Z,{variant:"h3",children:(0,X.jsx)(i.cC,{id:"Reserve status & configuration"})})}),d?(0,X.jsx)(we,{reserve:n}):(0,X.jsx)(ke,{reserve:n})]})},Ce=r(96471),Te=r(74815),Ae=r(87369),Oe=r(73812),Se=r(31538),De=r(41528),Pe=function(e){var n=e.downToSM,r=e.tooltipText,t=e.children;return(0,X.jsx)(De.y,{title:(0,X.jsx)(a.Z,{children:(0,X.jsx)(i.cC,{id:"{tooltipText}",values:{tooltipText:r}})}),children:(0,X.jsx)(s.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:(0,X.jsx)(s.Z,{sx:{bgcolor:"#535047",width:n?"18px":"24px",height:n?"18px":"24px",borderRadius:"50%",display:"flex",justifyContent:"center",ml:"8px",border:"0.5px solid rgba(235, 235, 237, 0.12)"},children:t})})})},Ee=r(72667),Ie=function(e){var n=e.poolReserve,r=e.downToSM,t=e.switchNetwork,o=e.addERC20Token,l=e.currentChainId,d=e.connectedChainId,u=e.hideAToken,x=(0,c.useState)(null),m=x[0],p=x[1],h=(0,c.useState)(!1),v=h[0],b=h[1],f=(0,c.useState)(""),y=f[0],j=f[1],g=(0,c.useState)(""),w=g[0],k=g[1],Z=Boolean(m),C=(0,Y.Yh)((function(e){return e.trackEvent})),T=function(){p(null)};return(0,c.useEffect)((function(){v&&l===d&&(o({address:n.underlyingAsset,decimals:n.decimals,symbol:n.symbol,image:/_/.test(n.iconSymbol)?void 0:y}),b(!1))}),[l,d,v,o,null===n||void 0===n?void 0:n.underlyingAsset,null===n||void 0===n?void 0:n.decimals,null===n||void 0===n?void 0:n.symbol,null===n||void 0===n?void 0:n.iconSymbol,y]),n?(0,X.jsxs)(X.Fragment,{children:[(null===n||void 0===n?void 0:n.symbol)&&!/_/.test(n.symbol)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ee.Js,{symbol:n.iconSymbol,onImageGenerated:j,aToken:!1}),!u&&(0,X.jsx)(Ee.Js,{symbol:n.iconSymbol,onImageGenerated:k,aToken:!0})]}),(0,X.jsx)(s.Z,{onClick:function(e){p(e.currentTarget)},children:(0,X.jsx)(Pe,{tooltipText:"Add token to wallet",downToSM:r,children:(0,X.jsx)(s.Z,{onClick:function(){C(V.f9.ADD_TOKEN_TO_WALLET_DROPDOWN,{asset:n.underlyingAsset,assetName:n.name})},sx:{display:"inline-flex",alignItems:"center","&:hover":{".Wallet__icon":{opacity:"0 !important"},".Wallet__iconHover":{opacity:"1 !important"}},cursor:"pointer"},children:(0,X.jsx)(O.o,{sx:{width:"14px",height:"14px","&:hover":{stroke:"#F1F1F3"}}})})})}),(0,X.jsxs)(Oe.Z,{anchorEl:m,open:Z,onClose:T,MenuListProps:{"aria-labelledby":"basic-button"},keepMounted:!0,"data-cy":"addToWaletSelector",children:[(0,X.jsx)(s.Z,{sx:{px:4,pt:3,pb:2},children:(0,X.jsx)(a.Z,{variant:"secondary12",color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"Underlying token"})})}),(0,X.jsxs)(Se.Z,{value:"underlying",divider:!0,onClick:function(){l!==d?t(l).then((function(){b(!0)})):(C(V.f9.ADD_TO_WALLET,{type:"Underlying token",asset:n.underlyingAsset,assetName:n.name}),o({address:n.underlyingAsset,decimals:n.decimals,symbol:n.symbol,image:/_/.test(n.symbol)?void 0:y})),T()},children:[(0,X.jsx)(Ee.T1,{symbol:n.iconSymbol,sx:{fontSize:"20px"}}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:n.symbol})]},"underlying"),!u&&(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(s.Z,{sx:{px:4,pt:3,pb:2},children:(0,X.jsx)(a.Z,{variant:"secondary12",color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"YieldLend aToken"})})}),(0,X.jsxs)(Se.Z,{value:"atoken",onClick:function(){l!==d?t(l).then((function(){b(!0)})):(C(V.f9.ADD_TO_WALLET,{asset:n.underlyingAsset,assetName:n.name}),o({address:n.aTokenAddress,decimals:n.decimals,symbol:"a".concat(n.symbol),image:/_/.test(n.symbol)?void 0:w})),T()},children:[(0,X.jsx)(Ee.T1,{symbol:n.iconSymbol,sx:{fontSize:"20px"},aToken:!0}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:"a".concat(n.symbol)})]},"atoken")]})]})]}):null},Be=r(58527),Re=function(){var e=(0,x.HT)(),n=e.ghoLoadingData,r=e.ghoReserveData,t=n,o=(0,T.Z)(),a=(0,je.Z)(o.breakpoints.down("sm")),l=a?"main16":"main21",c=a?"secondary16":"secondary21";return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Total borrowed"}),loading:t,hideIcon:!0,children:(0,X.jsx)(D.B,{value:r.aaveFacilitatorBucketLevel,symbol:"USD",variant:l,symbolsVariant:c,symbolsColor:"#A5A8B6"})}),(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Available to borrow"}),loading:t,hideIcon:!0,children:(0,X.jsx)(D.B,{value:r.aaveFacilitatorRemainingCapacity,symbol:"USD",variant:l,symbolsVariant:c,symbolsColor:"#A5A8B6"})}),(0,X.jsx)(Ae.d,{title:(0,X.jsx)(Be.G,{text:(0,X.jsx)(i.cC,{id:"Price"}),children:(0,X.jsx)(i.cC,{id:"The YieldLend Protocol is programmed to always use the price of 1 GHO = $1. This is different from using market pricing via oracles for other crypto assets. This creates stabilizing arbitrage opportunities when the price of GHO fluctuates."})}),loading:t,hideIcon:!0,children:(0,X.jsx)(s.Z,{sx:{display:"inline-flex",alignItems:"center"},children:(0,X.jsx)(D.B,{value:1,symbol:"USD",variant:l,symbolsVariant:c,symbolsColor:"#A5A8B6"})})})]})},Me=function(e){var n=e.underlyingAsset,r=(0,x.HT)(),t=r.reserves,o=r.loading,a=(0,G.f)().currentNetworkConfig,l=(0,Y.Yh)((function(e){return e.trackEvent})),c=(0,T.Z)(),d=(0,je.Z)(c.breakpoints.down("sm")),u=t.find((function(e){return e.underlyingAsset===n})),m=d?"main16":"main21",p=d?"secondary16":"secondary21";return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Reserve Size"}),loading:o,hideIcon:!0,children:(0,X.jsx)(D.B,{value:Math.max(Number(null===u||void 0===u?void 0:u.totalLiquidityUSD),0),symbol:"USD",variant:m,symbolsVariant:p,symbolsColor:"#A5A8B6"})}),(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Available liquidity"}),loading:o,hideIcon:!0,children:(0,X.jsx)(D.B,{value:Math.max(Number(null===u||void 0===u?void 0:u.availableLiquidityUSD),0),symbol:"USD",variant:m,symbolsVariant:p,symbolsColor:"#A5A8B6"})}),(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Utilization Rate"}),loading:o,hideIcon:!0,children:(0,X.jsx)(D.B,{value:null===u||void 0===u?void 0:u.borrowUsageRatio,percent:!0,variant:m,symbolsVariant:p,symbolsColor:"#A5A8B6"})}),(0,X.jsx)(Ae.d,{title:(0,X.jsx)(i.cC,{id:"Oracle price"}),loading:o,hideIcon:!0,children:(0,X.jsxs)(s.Z,{sx:{display:"inline-flex",alignItems:"center"},children:[(0,X.jsx)(D.B,{value:null===u||void 0===u?void 0:u.priceInUSD,symbol:"USD",variant:m,symbolsVariant:p,symbolsColor:"#A5A8B6"}),o?(0,X.jsx)(w.Z,{width:16,height:16,sx:{ml:1,background:"#535047"}}):(0,X.jsx)(Pe,{tooltipText:"View oracle contract",downToSM:d,children:(0,X.jsx)(se.rU,{onClick:function(){return l(V.vh.EXTERNAL_LINK,{Link:"Oracle Price",oracle:null===u||void 0===u?void 0:u.priceOracle,assetName:u.name,asset:u.underlyingAsset})},href:a.explorerLinkBuilder({address:null===u||void 0===u?void 0:u.priceOracle}),sx:{display:"inline-flex",alignItems:"center",color:"#A5A8B6","&:hover":{color:"#F1F1F3"},cursor:"pointer"},children:(0,X.jsx)(_.Z,{sx:{fontSize:d?"12px":"14px"},children:(0,X.jsx)(z.Z,{})})})})]})})]})},Ne=function(e){var n=e.poolReserve,r=e.downToSM,t=e.hideAToken,o=(0,c.useState)(null),l=o[0],d=o[1],u=(0,G.f)(),x=u.currentNetworkConfig,m=u.currentMarket,p=Boolean(l),h=(0,Y.Yh)((function(e){return e.trackEvent}));if(!n)return null;var v=n.borrowingEnabled||Number(n.totalVariableDebt)>0,b=n.stableBorrowRateEnabled||Number(n.totalStableDebt)>0,f=v||b;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(s.Z,{onClick:function(e){h(V.f9.RESERVE_TOKENS_DROPDOWN,{assetName:n.name,asset:n.underlyingAsset,aToken:n.aTokenAddress,market:m,variableDebtToken:n.variableDebtTokenAddress}),d(e.currentTarget)},children:(0,X.jsx)(Pe,{tooltipText:"View token contracts",downToSM:r,children:(0,X.jsx)(s.Z,{sx:{display:"inline-flex",alignItems:"center",color:"#A5A8B6","&:hover":{color:"#F1F1F3"},cursor:"pointer"},children:(0,X.jsx)(_.Z,{sx:{fontSize:"14px"},children:(0,X.jsx)(z.Z,{})})})})}),(0,X.jsxs)(Oe.Z,{anchorEl:l,open:p,onClose:function(){d(null)},MenuListProps:{"aria-labelledby":"basic-button"},keepMounted:!0,"data-cy":"addToWaletSelector",children:[(0,X.jsx)(s.Z,{sx:{px:4,pt:3,pb:2},children:(0,X.jsx)(a.Z,{variant:"secondary12",color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"Underlying token"})})}),(0,X.jsxs)(Se.Z,{onClick:function(){h(V.f9.RESERVE_TOKEN_ACTIONS,{type:"Underlying Token",assetName:n.name,asset:n.underlyingAsset,aToken:n.aTokenAddress,market:m,variableDebtToken:n.variableDebtTokenAddress})},component:"a",href:x.explorerLinkBuilder({address:null===n||void 0===n?void 0:n.underlyingAsset}),target:"_blank",divider:!0,children:[(0,X.jsx)(Ee.T1,{symbol:n.iconSymbol,sx:{fontSize:"20px"}}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:n.symbol})]}),!t&&(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(s.Z,{sx:{px:4,pt:3,pb:2},children:(0,X.jsx)(a.Z,{variant:"secondary12",color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"YieldLend aToken"})})}),(0,X.jsxs)(Se.Z,{component:"a",onClick:function(){h(V.f9.RESERVE_TOKEN_ACTIONS,{type:"aToken",assetName:n.name,asset:n.underlyingAsset,aToken:n.aTokenAddress,market:m,variableDebtToken:n.variableDebtTokenAddress})},href:x.explorerLinkBuilder({address:null===n||void 0===n?void 0:n.aTokenAddress}),target:"_blank",divider:f,children:[(0,X.jsx)(Ee.T1,{symbol:n.iconSymbol,aToken:!0,sx:{fontSize:"20px"}}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:"a"+n.symbol})]})]}),f&&(0,X.jsx)(s.Z,{sx:{px:4,pt:3,pb:2},children:(0,X.jsx)(a.Z,{variant:"secondary12",color:"text.secondary",children:(0,X.jsx)(i.cC,{id:"YieldLend debt token"})})}),v&&(0,X.jsxs)(Se.Z,{component:"a",href:x.explorerLinkBuilder({address:null===n||void 0===n?void 0:n.variableDebtTokenAddress}),target:"_blank",onClick:function(){h(V.f9.RESERVE_TOKEN_ACTIONS,{type:"Variable Debt",assetName:n.name,asset:n.underlyingAsset,aToken:n.aTokenAddress,market:m,variableDebtToken:n.variableDebtTokenAddress})},children:[(0,X.jsx)(Ee.T1,{symbol:"default",sx:{fontSize:"20px"}}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:"Variable debt "+n.symbol})]}),b&&(0,X.jsxs)(Se.Z,{component:"a",href:x.explorerLinkBuilder({address:null===n||void 0===n?void 0:n.stableDebtTokenAddress}),target:"_blank",onClick:function(){h(V.f9.RESERVE_TOKEN_ACTIONS,{type:"Stable Debt",assetName:n.name,asset:n.underlyingAsset,aToken:n.aTokenAddress,market:m,variableDebtToken:n.variableDebtTokenAddress,stableDebtToken:n.stableDebtTokenAddress})},children:[(0,X.jsx)(Ee.T1,{symbol:"default",sx:{fontSize:"20px"}}),(0,X.jsx)(a.Z,{variant:"subheader1",sx:{ml:3},noWrap:!0,"data-cy":"assetName",children:"Stable debt "+n.symbol})]})]})]})},_e=function(e){var n=e.underlyingAsset,r=(0,l.useRouter)(),t=(0,x.HT)(),o=t.reserves,c=t.loading,d=(0,G.f)(),u=d.currentMarket,m=d.currentChainId,p=(0,M.Z)(),v=p.addERC20Token,b=p.switchNetwork,f=p.chainId,y=p.connected,g=(0,Y.Yh)((function(e){return[e.displayGho]})),k=(0,h.Z)(g,1)[0],Z=(0,T.Z)(),A=(0,je.Z)(Z.breakpoints.down("sm")),O=o.find((function(e){return e.underlyingAsset===n})),S=A?"main16":"main21",D=function(){return(0,X.jsx)(s.Z,{mr:3,sx:{mr:3,display:"flex",alignItems:"center",justifyContent:"center"},children:c?(0,X.jsx)(w.Z,{variant:"circular",width:40,height:40,sx:{background:"#535047"}}):(0,X.jsx)("img",{src:"/icons/tokens/".concat(O.iconSymbol.toLowerCase(),".svg"),width:"40px",height:"40px",alt:""})})},P=function(){return c?(0,X.jsx)(w.Z,{width:60,height:28,sx:{background:"#535047"}}):(0,X.jsx)(a.Z,{variant:S,children:O.name})},E=k({symbol:O.symbol,currentMarket:u});return(0,X.jsxs)(Te.f,{titleComponent:(0,X.jsxs)(s.Z,{children:[(0,X.jsx)(s.Z,{sx:{display:"flex",alignItems:A?"flex-start":"center",alignSelf:A?"flex-start":"center",mb:4,minHeight:"40px",flexDirection:A?"column":"row"},children:(0,X.jsx)(C.Z,{variant:"surface",size:"medium",color:"primary",startIcon:(0,X.jsx)(_.Z,{sx:{fontSize:"20px"},children:(0,X.jsx)(Ce.Z,{})}),onClick:function(){0!==history.state.idx?r.back():r.push("/markets")},sx:{mr:3,mb:A?"24px":"0"},children:(0,X.jsx)(i.cC,{id:"Go Back"})})}),A&&(0,X.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",mb:6},children:[(0,X.jsx)(D,{}),(0,X.jsxs)(s.Z,{children:[!c&&(0,X.jsx)(a.Z,{sx:{color:"#A5A8B6"},variant:"caption",children:O.symbol}),(0,X.jsxs)(s.Z,{sx:{display:"inline-flex",alignItems:"center"},children:[(0,X.jsx)(P,{}),c?(0,X.jsx)(w.Z,{width:160,height:16,sx:{ml:1,background:"red"}}):(0,X.jsxs)(s.Z,{sx:{display:"flex"},children:[(0,X.jsx)(Ne,{poolReserve:O,downToSM:A,hideAToken:E}),y&&(0,X.jsx)(Ie,{poolReserve:O,downToSM:A,switchNetwork:b,addERC20Token:v,currentChainId:m,connectedChainId:f,hideAToken:E})]})]})]})]})]}),children:[!A&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ae.d,{title:!c&&(0,X.jsx)(i.cC,{id:"{0}",values:{0:O.symbol}}),withoutIconWrapper:!0,icon:(0,X.jsx)(D,{}),loading:c,children:(0,X.jsxs)(s.Z,{sx:{display:"inline-flex",alignItems:"center"},children:[(0,X.jsx)(P,{}),(0,X.jsxs)(s.Z,{sx:{display:"flex"},children:[(0,X.jsx)(Ne,{poolReserve:O,downToSM:A,hideAToken:E}),y&&(0,X.jsx)(Ie,{poolReserve:O,downToSM:A,switchNetwork:b,addERC20Token:v,currentChainId:m,connectedChainId:f,hideAToken:E})]})]})}),(0,X.jsx)(j.Z,{orientation:"vertical",flexItem:!0,sx:{my:1,borderColor:"rgba(235, 235, 239, 0.08)"}})]}),E?(0,X.jsx)(Re,{}):(0,X.jsx)(Me,{underlyingAsset:n})]})},Le=r(15446);function Fe(){var e=(0,l.useRouter)(),n=(0,x.HT)().reserves,r=e.query.underlyingAsset,t=(0,c.useState)("overview"),o=t[0],p=t[1],h=(0,Y.Yh)((function(e){return e.trackEvent})),v=n.find((function(e){return e.underlyingAsset===r})),b=(0,c.useState)(!1),f=b[0],y=b[1];(0,c.useEffect)((function(){!f&&v&&v.iconSymbol&&r&&(h("Page Viewed",{"Page Name":"Reserve Overview",Reserve:v.iconSymbol,Asset:r}),y(!0))}),[h,v,r,f]);var j="overview"===o;return(0,X.jsxs)(m.hv,{asset:v,children:[(0,X.jsx)(_e,{underlyingAsset:r}),(0,X.jsxs)(Le.O,{children:[(0,X.jsx)(s.Z,{sx:{display:{xs:"flex",lg:"none"},justifyContent:{xs:"center",xsm:"flex-start"},mb:{xs:3,xsm:4}},children:(0,X.jsxs)(u.Z,{color:"primary",value:o,exclusive:!0,onChange:function(e,n){return p(n)},sx:{width:{xs:"100%",xsm:"359px"},height:"44px"},children:[(0,X.jsx)(d.Z,{value:"overview",disabled:"overview"===o,children:(0,X.jsx)(a.Z,{variant:"subheader1",children:(0,X.jsx)(i.cC,{id:"Overview"})})}),(0,X.jsx)(d.Z,{value:"actions",disabled:"actions"===o,children:(0,X.jsx)(a.Z,{variant:"subheader1",children:(0,X.jsx)(i.cC,{id:"Your info"})})})]})}),(0,X.jsxs)(s.Z,{sx:{display:"flex"},children:[(0,X.jsx)(s.Z,{sx:{display:{xs:j?"block":"none",lg:"block"},width:{xs:"100%",lg:"calc(100% - 432px)"},mr:{xs:0,lg:4}},children:(0,X.jsx)(Ze,{reserve:v})}),(0,X.jsx)(s.Z,{sx:{display:{xs:j?"none":"block",lg:"block"},width:{xs:"100%",lg:"416px"}},children:(0,X.jsx)(ce,{reserve:v})})]})]})]})}Fe.getLayout=function(e){return(0,X.jsx)(p.Z,{children:e})}},15446:function(e,n,r){"use strict";r.d(n,{O:function(){return s}});var t=r(30120),o=r(64288),i=r(85893),s=function(e){var n=e.children;return(0,i.jsx)(t.Z,{sx:{display:"flex",flexDirection:"column",flex:1,mt:{xs:"-32px",lg:"-46px",xl:"-44px",xxl:"-48px"}},children:(0,i.jsx)(o.Z,{children:n})})}},40535:function(e,n,r){"use strict";r.d(n,{V:function(){return s}});var t=r(30120),o=r(29630),i=r(85893),s=function(e){var n=e.pageTitle;return(0,i.jsxs)(t.Z,{sx:{display:"flex",alignItems:{xs:"flex-start",xsm:"center"},mb:n?4:0,flexDirection:{xs:"column",xsm:"row"}},children:[n&&(0,i.jsx)(t.Z,{sx:{display:"flex",alignItems:"flex-start"},children:(0,i.jsx)(o.Z,{variant:"h1",sx:{color:"text.white",mr:{xs:5,xsm:3},mb:{xs:1,xsm:0}},children:n})}),(0,i.jsx)(t.Z,{sx:{display:"flex",alignItems:"flex-start",flexWrap:"wrap",mb:n?0:4}})]})}},74815:function(e,n,r){"use strict";r.d(n,{f:function(){return m}});var t=r(59499),o=r(62097),i=r(61225),s=r(30120),a=r(64288),l=r(29630),c=r(40535),d=r(85893);function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function x(e){for(var n=1;n1||c||"USD"===r?2:7);var y=Math.pow(10,-f),j=0!==b&&Math.abs(b)99999);return p&&!w&&(g=Math.trunc(Number(g)*Math.pow(10,f))/Math.pow(10,f)),(0,a.jsxs)(s.Z,d(d({},v),{},{sx:d({display:"inline-flex",flexDirection:"row",alignItems:"center",position:"relative"},v.sx),noWrap:!0,children:[j&&(0,a.jsx)(s.Z,{component:"span",sx:{mr:.5},variant:u||v.variant,color:x||"text.secondary",children:"<"}),"usd"===(null===r||void 0===r?void 0:r.toLowerCase())&&!c&&(0,a.jsx)(s.Z,{component:"span",sx:{mr:.5},variant:u||v.variant,color:x||"text.secondary",children:"$"}),w?(0,a.jsx)(m,{value:g,visibleDecimals:f,roundDown:p,compactThreshold:h}):new Intl.NumberFormat("en-US",{maximumFractionDigits:f,minimumFractionDigits:f}).format(g),c&&(0,a.jsx)(s.Z,{component:"span",sx:{ml:.5},variant:u||v.variant,color:x||"text.secondary",children:"%"}),"usd"!==(null===r||void 0===r?void 0:r.toLowerCase())&&"undefined"!==typeof r&&(0,a.jsx)(s.Z,{component:"span",sx:{ml:.5},variant:u||v.variant,color:x||"text.secondary",children:r})]}))}},32667:function(e,n,r){"use strict";r.d(n,{U:function(){return t}});var t=function(e){return""===e?"Disabled":e}},82482:function(e,n,r){"use strict";r.d(n,{P:function(){return f}});var t=r(80854),o=r(1279),i=r(81206),s=r(82403),a=r(70794),l=r(16376),c=r(25298),d=r(52369),u=r(59499),x=r(87669),m=r(15591),p=r(12987);function h(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}var v=function(e,n,r){var t=(0,p.z)().poolTokensBalanceService;return(0,x.h)({queries:e.map((function(e){return function(e){for(var n=1;n{0} to transfer your {network} assets.",values:{0:n.name,name:r,network:m},components:{0:(0,c.jsx)(l.rU,{onClick:function(){p(a.vh.EXTERNAL_LINK,{bridge:n.name,Link:"Bridge Link"})},href:n.url})}}):(0,c.jsx)(t.cC,{id:"Your {name} wallet is empty. Purchase or transfer assets.",values:{name:r}})})}},15591:function(e,n,r){"use strict";r.d(n,{B:function(){return o},g:function(){return i}});var t=r(90116),o={governance:["governance"],staking:["staking"],pool:["pool"],incentives:["incentives"],gho:["gho"],market:function(e){return[e.chainId,!!e.isFork,e.market]},user:function(e){return[e]},powers:function(e,n){return[].concat((0,t.Z)(o.governance),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(n)),["powers"])},voteOnProposal:function(e,n,r){return[].concat((0,t.Z)(o.governance),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(r)),[n,"voteOnProposal"])},votingPowerAt:function(e,n,r,i){return[].concat((0,t.Z)(o.governance),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(i)),[n,r,"votingPowerAt"])},governanceTokens:function(e,n){return[].concat((0,t.Z)(o.governance),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(n)),["governanceTokens"])},transactionHistory:function(e,n){return[].concat((0,t.Z)(o.user(e)),(0,t.Z)(o.market(n)),["transactionHistory"])},poolTokens:function(e,n){return[].concat((0,t.Z)(o.pool),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(n)),["poolTokens"])},poolReservesDataHumanized:function(e){return[].concat((0,t.Z)(o.pool),(0,t.Z)(o.market(e)),["poolReservesDataHumanized"])},generalStakeUiData:function(e){return[].concat((0,t.Z)(o.staking),(0,t.Z)(o.market(e)),["generalStakeUiData"])},userStakeUiData:function(e,n){return[].concat((0,t.Z)(o.staking),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(n)),["userStakeUiData"])},paraswapRates:function(e,n,r,i,s){return[].concat((0,t.Z)(o.user(s)),[e,n,r,i,"paraswapRates"])},gasPrices:function(e){return[e,"gasPrices"]},poolApprovedAmount:function(e,n,r){return[].concat((0,t.Z)(o.pool),(0,t.Z)(o.user(e)),(0,t.Z)(o.market(r)),[n,"poolApprovedAmount"])},approvedAmount:function(e,n,r,i){return[].concat((0,t.Z)(o.user(e)),(0,t.Z)(o.market(i)),[n,r,"approvedAmount"])}},i=6e4},59286:function(e,n,r){"use strict";r.d(n,{nG:function(){return l},BC:function(){return c},hF:function(){return d}});var t=r(75331),o=r(1279),i=r(70794),s=r(21046),a=r(87385);function l(e,n,r){var l,c,d,u,x=e.availableLiquidityUSD,m=i.Z.min(n.availableBorrowsUSD,x),p="0"===e.borrowCap?(0,o.hE)(s.Bz.toString()):(0,o.hE)(Number(e.borrowCap)).minus((0,o.hE)(e.totalDebt)),h=i.Z.max(i.Z.min(e.formattedAvailableLiquidity,p),0),v=(0,o.hE)((null===n||void 0===n?void 0:n.availableBorrowsMarketReferenceCurrency)||0).div(e.formattedPriceInMarketReferenceCurrency),b=i.Z.min(v,h);r===t.tk.Stable&&(b=i.Z.min(b,(0,o.hE)(e.formattedAvailableLiquidity).multipliedBy(.25)));var f=b.gte(v)||"0"!==n.totalBorrowsMarketReferenceCurrency&&m.lt(x)||m.eq(x)&&"0"!==e.totalDebt||e.borrowCapUSD&&"0"!==e.totalDebt&&m.gte(x)||n.isInIsolationMode&&"0"!==(null===(l=n.isolatedReserve)||void 0===l?void 0:l.isolationModeTotalDebt)&&(0,o.hE)((null===(c=n.isolatedReserve)||void 0===c?void 0:c.debtCeiling)||"0").minus((null===(d=n.isolatedReserve)||void 0===d?void 0:d.isolationModeTotalDebt)||"0").shiftedBy(-((null===(u=n.isolatedReserve)||void 0===u?void 0:u.debtCeilingDecimals)||0)).multipliedBy("0.99").lt(n.availableBorrowsUSD)?b.multipliedBy("0.99"):b;return(0,a.$w)(f.toString(10),e.decimals)}function c(e,n){var r,t,l,c,d=(0,o.hE)((null===e||void 0===e?void 0:e.availableBorrowsMarketReferenceCurrency)||0),u="0"===n.borrowCap?(0,o.hE)(s.Bz.toString()):(0,o.hE)(Number(n.borrowCap)).minus((0,o.hE)(n.totalDebt)),x=i.Z.min(d,u),m="0"!==e.totalBorrowsMarketReferenceCurrency||n.borrowCapUSD&&"0"!==n.totalDebt&&x.gte(u)||e.isInIsolationMode&&"0"!==(null===(r=e.isolatedReserve)||void 0===r?void 0:r.isolationModeTotalDebt)&&(0,o.hE)((null===(t=e.isolatedReserve)||void 0===t?void 0:t.debtCeiling)||"0").minus((null===(l=e.isolatedReserve)||void 0===l?void 0:l.isolationModeTotalDebt)||"0").shiftedBy(-((null===(c=e.isolatedReserve)||void 0===c?void 0:c.debtCeilingDecimals)||0)).multipliedBy("0.99").lt(e.availableBorrowsUSD)?x.multipliedBy("0.99"):x;return(0,a.$w)(m.toString(10),18)}function d(e,n){var r=e.borrowingEnabled,t=e.isActive,o=e.borrowableInIsolation,i=e.eModeCategoryId,s=e.isFrozen,a=e.isPaused;return!(!r||!t||s||a)&&((null===n||void 0===n||!n.isInEmode||i===n.userEmodeCategoryId)&&!(null!==n&&void 0!==n&&n.isInIsolationMode&&!o))}},94847:function(e,n,r){"use strict";r.d(n,{x:function(){return a},I:function(){return l}});var t=r(80854),o=r(1279),i=r(70794),s=r(87385);function a(e,n){return"0"===e?new i.Z(-1):new i.Z(e).minus(n)}function l(e,n,r,l){if(n.isFrozen)return"0";var c=(0,o.hE)(e);return c.gt(0)&&r.toLowerCase()===t.hP.toLowerCase()&&(c=c.minus(l)),"0"!==n.supplyCap&&(c=i.Z.min(c,a(n.supplyCap,n.totalLiquidity))),c.lte(0)?"0":(0,s.$w)(c.toString(10),n.decimals)}},97438:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reserve-overview",function(){return r(29822)}])}},function(e){e.O(0,[3327,9057,8705,3629,7324,9774,2888,179],(function(){return n=97438,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/faucet/index.html b/faucet/index.html index 2a4bb6a..e129955 100644 --- a/faucet/index.html +++ b/faucet/index.html @@ -1 +1 @@ -YieldLend - YieldLend

Base Faucet

With testnet Faucet you can get free assets to test the YieldLend Protocol. Make sure to switch your wallet provider to the appropriate testnet network, select desired asset, and click ‘Faucet’ to get tokens transferred to your wallet. The assets on a testnet are not “real,” meaning they have no monetary value.

Please, connect your wallet

Please connect your wallet to get free testnet assets.

\ No newline at end of file +YieldLend - YieldLend

Base Faucet

With testnet Faucet you can get free assets to test the YieldLend Protocol. Make sure to switch your wallet provider to the appropriate testnet network, select desired asset, and click ‘Faucet’ to get tokens transferred to your wallet. The assets on a testnet are not “real,” meaning they have no monetary value.

Please, connect your wallet

Please connect your wallet to get free testnet assets.

\ No newline at end of file diff --git a/history/index.html b/history/index.html index 0b3fed6..1ca8110 100644 --- a/history/index.html +++ b/history/index.html @@ -1 +1 @@ -YieldLend - YieldLend

Transaction history

Transaction history is not currently available for this market

\ No newline at end of file +YieldLend - YieldLend

Transaction history

Transaction history is not currently available for this market

\ No newline at end of file diff --git a/index.html b/index.html index eeccc99..9727dd5 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -YieldLend - YieldLend

Dashboard

Net worth
Net APY

Please, connect your wallet

Please connect your wallet to see your supplies, borrowings, and open positions.

\ No newline at end of file +YieldLend - YieldLend

Dashboard

Net worth
Net APY

Please, connect your wallet

Please connect your wallet to see your supplies, borrowings, and open positions.

\ No newline at end of file diff --git a/markets/index.html b/markets/index.html index 4b7b7c3..c469862 100644 --- a/markets/index.html +++ b/markets/index.html @@ -1 +1 @@ -YieldLend - YieldLend

Markets

Total market size
Total available
Total borrows
Base assets
\ No newline at end of file +YieldLend - YieldLend

Markets

Total market size
Total available
Total borrows
Base assets
\ No newline at end of file diff --git a/reserve-overview/index.html b/reserve-overview/index.html index 2be64e9..d5132da 100644 --- a/reserve-overview/index.html +++ b/reserve-overview/index.html @@ -1 +1 @@ -YieldLend - YieldLend \ No newline at end of file +YieldLend - YieldLend \ No newline at end of file diff --git a/sale/index.html b/sale/index.html index d6325ef..bee94d0 100644 --- a/sale/index.html +++ b/sale/index.html @@ -1 +1 @@ -YieldLend - YieldLend

YIELD Public Sale

Here users can participate in the bonding curve sale of YIELD. The more ETH that is committed to the sale, the higher the price. Once the soft/hard cap is met, the protocol will launch.

Please, connect your wallet

Please connect your wallet to see your supplies, borrowings, and open positions.

\ No newline at end of file +YieldLend - YieldLend

YIELD Public Sale

Here users can participate in the bonding curve sale of YIELD. The more ETH that is committed to the sale, the higher the price. Once the soft/hard cap is met, the protocol will launch.

Please, connect your wallet

Please connect your wallet to see your supplies, borrowings, and open positions.

\ No newline at end of file diff --git a/staking/index.html b/staking/index.html index fdaf44f..05da45b 100644 --- a/staking/index.html +++ b/staking/index.html @@ -1 +1 @@ -YieldLend - YieldLend

Staking

Stake your YIELD tokens to earn an APR in YIELD. Staked tokens get converted into a NFT which can be traded on the secondary market.

Please, connect your wallet

Please connect your wallet to see your supplies, borrowings, and open positions.

\ No newline at end of file +YieldLend - YieldLend

Staking

Stake your YIELD tokens to earn an APR in YIELD. Staked tokens get converted into a NFT which can be traded on the secondary market.

Please, connect your wallet

Please connect your wallet to see your supplies, borrowings, and open positions.

\ No newline at end of file diff --git a/v3-migration/index.html b/v3-migration/index.html index 3093269..282aa99 100644 --- a/v3-migration/index.html +++ b/v3-migration/index.html @@ -1 +1 @@ -YieldLend - YieldLend

Migrate to Base v3 Market

Please, connect your wallet

Please connect your wallet to see migration tool.

\ No newline at end of file +YieldLend - YieldLend

Migrate to Base v3 Market

Please, connect your wallet

Please connect your wallet to see migration tool.

\ No newline at end of file diff --git a/vesting/index.html b/vesting/index.html index 62315dd..6c3e1b3 100644 --- a/vesting/index.html +++ b/vesting/index.html @@ -1 +1 @@ -YieldLend - YieldLend

Vesting

All unvested rewawrds you have earned from the protocol will be shown here. Rewards have a 3 month vesting and can be claimed from this page. Provide liquidity or stake YIELD to earn rewards.

Please, connect your wallet

Please connect your wallet to see your supplies, borrowings, and open positions.

\ No newline at end of file +YieldLend - YieldLend

Vesting

All unvested rewawrds you have earned from the protocol will be shown here. Rewards have a 3 month vesting and can be claimed from this page. Provide liquidity or stake YIELD to earn rewards.

Please, connect your wallet

Please connect your wallet to see your supplies, borrowings, and open positions.

\ No newline at end of file