(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2214],{63884:function(e,t,n){"use strict";n.r(t);var r,l=n(23547);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.default=function(e){return l.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",fill:"currentColor"},e),r||(r=l.createElement("path",{fill:"none",d:"M3 11.938h15.813M12.875 6l6.906 5.755a.238.238 0 0 1 0 .365l-6.906 5.755"})))}},18910:function(e,t,n){"use strict";n.r(t);var r,l=n(23547);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.default=function(e){return l.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24"},e),r||(r=l.createElement("path",{d:"M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09-.01-.02-.04-.03-.07-.03-1.5.26-2.93.71-4.27 1.33-.01 0-.02.01-.03.02-2.72 4.07-3.47 8.03-3.1 11.95 0 .02.01.04.03.05 1.8 1.32 3.53 2.12 5.24 2.65.03.01.06 0 .07-.02.4-.55.76-1.13 1.07-1.74.02-.04 0-.08-.04-.09-.57-.22-1.11-.48-1.64-.78-.04-.02-.04-.08-.01-.11.11-.08.22-.17.33-.25.02-.02.05-.02.07-.01 3.44 1.57 7.15 1.57 10.55 0 .02-.01.05-.01.07.01.11.09.22.17.33.26.04.03.04.09-.01.11-.52.31-1.07.56-1.64.78-.04.01-.05.06-.04.09.32.61.68 1.19 1.07 1.74.03.01.06.02.09.01 1.72-.53 3.45-1.33 5.25-2.65.02-.01.03-.03.03-.05.44-4.53-.73-8.46-3.1-11.95-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12 0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12 0 1.17-.83 2.12-1.89 2.12"})))}},43592:function(e,t,n){"use strict";var r,l,i=n(23547);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},e),r||(r=i.createElement("circle",{cx:12,cy:12,r:9,fill:"none",stroke:"currentColor",strokeWidth:2})),l||(l=i.createElement("path",{fillRule:"evenodd",d:"M12 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m1 9v-7h-2v7z",clipRule:"evenodd"})))}},51053:function(e,t,n){"use strict";n.r(t);var r,l=n(23547);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.default=function(e){return l.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 20 20"},e),r||(r=l.createElement("path",{d:"M5.783 4.167a1.667 1.667 0 1 1-3.333-.002 1.667 1.667 0 0 1 3.333.002m.05 2.9H2.5V17.5h3.333zm5.267 0H7.783V17.5h3.284v-5.475c0-3.05 3.975-3.333 3.975 0V17.5h3.291v-6.608c0-5.142-5.883-4.95-7.266-2.425z"})))}},75056:function(e,t,n){"use strict";n.r(t);var r,l=n(23547);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.default=function(e){return l.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24"},e),r||(r=l.createElement("path",{fillRule:"evenodd",d:"M19.777 4.43a1.5 1.5 0 0 1 2.062 1.626L19.57 19.813c-.22 1.327-1.676 2.088-2.893 1.427-1.018-.553-2.53-1.405-3.89-2.294-.68-.445-2.763-1.87-2.507-2.884C10.5 15.195 14 11.937 16 10c.785-.761.427-1.2-.5-.5-2.302 1.738-5.998 4.381-7.22 5.125-1.078.656-1.64.768-2.312.656-1.226-.204-2.363-.52-3.291-.905-1.254-.52-1.193-2.244-.001-2.746z",clipRule:"evenodd"})))}},80:function(e,t,n){"use strict";n.r(t);var r,l=n(23547);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.default=function(e){return l.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},e),r||(r=l.createElement("path",{d:"M3.055 11a9.01 9.01 0 0 1 6.277-7.598A16.9 16.9 0 0 0 7.029 11zm7.937-9.954C5.39 1.554 1 6.265 1 12s4.39 10.446 9.992 10.955l.008.01.425.02q.287.014.575.015t.575-.015l.425-.02.008-.01C18.61 22.444 23 17.735 23 12S18.61 1.554 13.008 1.046L13 1.036l-.426-.021a11 11 0 0 0-1.148 0l-.426.02zM12.002 3a14.9 14.9 0 0 1 2.965 8H9.033a14.9 14.9 0 0 1 2.966-8h.003M7.028 13c.16 2.76.98 5.345 2.303 7.598A9.01 9.01 0 0 1 3.055 13zm4.97 8a14.9 14.9 0 0 1-2.966-8h5.934A14.9 14.9 0 0 1 12 21zm2.67-.402A16.9 16.9 0 0 0 16.97 13h3.974a9.01 9.01 0 0 1-6.276 7.598M16.97 11c-.16-2.76-.98-5.345-2.303-7.598A9.01 9.01 0 0 1 20.945 11z"})))}},89347:function(e,t,n){"use strict";n.r(t);var r,l=n(23547);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.default=function(e){return l.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24"},e),r||(r=l.createElement("path",{d:"M16.963 3h2.914l-6.365 7.275L21 20.174h-5.863l-4.592-6.004-5.255 6.004H2.375l6.809-7.782L2 3h6.012l4.15 5.488zm-1.022 15.43h1.614L7.135 4.652H5.403z"})))}},10309:function(e,t,n){Promise.resolve().then(n.t.bind(n,36846,23)),Promise.resolve().then(n.bind(n,22937)),Promise.resolve().then(n.bind(n,43168)),Promise.resolve().then(n.bind(n,41305)),Promise.resolve().then(n.bind(n,34152)),Promise.resolve().then(n.bind(n,67736)),Promise.resolve().then(n.bind(n,28984)),Promise.resolve().then(n.t.bind(n,92063,23)),Promise.resolve().then(n.t.bind(n,74723,23)),Promise.resolve().then(n.bind(n,18910)),Promise.resolve().then(n.bind(n,51053)),Promise.resolve().then(n.bind(n,75056)),Promise.resolve().then(n.bind(n,80)),Promise.resolve().then(n.bind(n,89347)),Promise.resolve().then(n.t.bind(n,15161,23)),Promise.resolve().then(n.bind(n,40993))},29335:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(24075),l=n.n(r),i=n(6480),a=n(55564),s=n(13621),o=n(4301);let c=i.forwardRef((e,t)=>{let{active:n=!1,disabled:r=!1,className:i,style:a,activeLabel:c="(current)",children:d,linkStyle:u,linkClassName:h,as:f=s.Z,...v}=e,p=n||r?"span":f;return(0,o.jsx)("li",{ref:t,style:a,className:l()(i,"page-item",{active:n,disabled:r}),children:(0,o.jsxs)(p,{className:l()("page-link",h),style:u,...v,children:[d,n&&c&&(0,o.jsx)("span",{className:"visually-hidden",children:c})]})})});function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=i.forwardRef((e,r)=>{let{children:l,...i}=e;return(0,o.jsxs)(c,{...i,ref:r,children:[(0,o.jsx)("span",{"aria-hidden":"true",children:l||t}),(0,o.jsx)("span",{className:"visually-hidden",children:n})]})});return r.displayName=e,r}c.displayName="PageItem";let u=d("First","\xab"),h=d("Prev","‹","Previous"),f=d("Ellipsis","…","More"),v=d("Next","›"),p=d("Last","\xbb"),m=i.forwardRef((e,t)=>{let{bsPrefix:n,className:r,size:i,...s}=e,c=(0,a.vE)(n,"pagination");return(0,o.jsx)("ul",{ref:t,...s,className:l()(r,c,i&&"".concat(c,"-").concat(i))})});m.displayName="Pagination";var x=Object.assign(m,{First:u,Prev:h,Ellipsis:f,Item:c,Next:v,Last:p})},29944:function(e,t,n){"use strict";var r=n(24075),l=n.n(r),i=n(6480),a=n(55564),s=n(4301);let o=i.forwardRef((e,t)=>{let{bsPrefix:n,variant:r,animation:i="border",size:o,as:c="div",className:d,...u}=e;n=(0,a.vE)(n,"spinner");let h="".concat(n,"-").concat(i);return(0,s.jsx)(c,{ref:t,...u,className:l()(d,h,o&&"".concat(h,"-").concat(o),r&&"text-".concat(r))})});o.displayName="Spinner",t.Z=o},80630:function(e,t,n){"use strict";var r=n(24075),l=n.n(r),i=n(6480),a=n(55564),s=n(4301);let o=i.forwardRef((e,t)=>{let{bsPrefix:n,className:r,striped:i,bordered:o,borderless:c,hover:d,size:u,variant:h,responsive:f,...v}=e,p=(0,a.vE)(n,"table"),m=l()(r,p,h&&"".concat(p,"-").concat(h),u&&"".concat(p,"-").concat(u),i&&"".concat(p,"-").concat("string"==typeof i?"striped-".concat(i):"striped"),o&&"".concat(p,"-bordered"),c&&"".concat(p,"-borderless"),d&&"".concat(p,"-hover")),x=(0,s.jsx)("table",{...v,className:m,ref:t});if(f){let e="".concat(p,"-responsive");return"string"==typeof f&&(e="".concat(e,"-").concat(f)),(0,s.jsx)("div",{className:e,children:x})}return x});t.default=o},74206:function(e,t,n){var r;r=function(e){return(()=>{"use strict";var t={798:t=>{t.exports=e}},n={};function r(e){var l=n[e];if(void 0!==l)return l.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{r.r(l),r.d(l,{default:()=>i});var e=r(798),t=r.n(e);function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}let i=function(r){var l=function(e){var t=e.parentNode,n=t.querySelector(".constrainedChild")||e.childNodes[0],r=t.querySelector(".ellipseMe")||t.querySelector(".constrainedEllipse")||n;null!==n&&null!==r&&(r.hasAttribute("data-original")&&(r.textContent=r.getAttribute("data-original")),function(e,t,n){var r=t.offsetWidth,l=e.offsetWidth,i=n.offsetWidth,a=r>i?r:i;if(a>l){var s=n.textContent,o=s.length,c=(o-(l-(a-i))/(i/o)+5)/2;n.setAttribute("data-original",n.textContent),n.textContent=s.substr(0,Math.floor(o/2-c))+"..."+s.substr(Math.ceil(o/2+c))}}(e.offsetWidth>t.offsetWidth?t:e,n,r))},i=(0,e.useCallback)(function(e){null!==e&&(window.addEventListener("resize",function(){l(e)}),l(e))});return t().createElement("div",{ref:i,style:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({wordBreak:"keep-all",overflowWrap:"normal"},r.width&&{width:r.width})},r.children)}})(),l})()},e.exports=r(n(6480))},41305:function(e,t,n){"use strict";n.d(t,{default:function(){return u}});var r=n(4301);n(6480);var l=n(22937),i=n(33619),a=n(46558),s=n(33897),o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"latest";return(0,a.useQuery)({queryKey:["".concat(s.U7.POINTS_CYCLE,"/").concat(e)],queryFn:s.ux,retry:!1})},c=n(43592),d=n(27325),u=()=>{let{data:e,isLoading:t}=o(),{total_stats:n}=e||{};return(0,r.jsx)(i.Z,{data:[{value:n&&(0,d.ao)(null==n?void 0:n.total_usd_value).full,prefix:"$",label:"total locked",loading:t},{value:n&&(0,d.ao)(null==n?void 0:n.total_participants).full,label:"participants joined",loading:t}],button:(0,r.jsxs)(l.default,{href:"#how",variant:"outline-primary",children:["Learn how it works",(0,r.jsx)(c.Z,{})]})})}},34152:function(e,t,n){"use strict";n.d(t,{default:function(){return b}});var r=n(4301),l=n(6480),i=n(43168),a=n(80630),s=n(99604),o=n(98398);let c=["Position","Address","Credited Points"];var d=n(3138),u=n(24075),h=n.n(u),f=n(17489),v=n(27325),p=n(65764),m=n.n(p),x=e=>{let{data:t,placeholder:n,highlight:l}=e,{rank:i,address:a,balance:s}=t||{};return(0,r.jsxs)("tr",{className:h()({[m().highlight]:l}),children:[(0,r.jsx)("td",{children:(0,r.jsx)("div",{className:m().position,children:n?(0,r.jsx)(d.Z,{animation:"glow",children:(0,r.jsx)(d.Z,{style:{width:30}})}):i})}),(0,r.jsx)("td",{children:n?(0,r.jsx)(d.Z,{animation:"glow",children:(0,r.jsx)(d.Z,{style:{width:120}})}):(0,f.Z)(a)}),(0,r.jsx)("td",{children:n?(0,r.jsx)(d.Z,{animation:"glow",children:(0,r.jsx)(d.Z,{style:{width:150}})}):s&&(0,v.ao)(s).full})]})},g=n(80659),b=()=>{let[e,t]=(0,l.useState)(1),{isConnected:n,address:d}=(0,s.m)(),{isLoading:u,isSuccess:h,data:f}=(0,o.Z)(),{isLoading:v,data:p}=(0,o.Z)(d),b=f&&Math.ceil(f.length/10),j=null==f?void 0:f.slice((e-1)*10,10*e);return(0,r.jsxs)(i.default,{className:m().leaderboard,children:[(0,r.jsx)("h2",{children:"Leaderboard"}),(0,r.jsxs)(a.default,{className:m().table,striped:!0,children:[(0,r.jsx)("thead",{children:(0,r.jsx)("tr",{children:c.map(e=>(0,r.jsx)("th",{children:e},e))})}),(0,r.jsx)("caption",{}),(0,r.jsxs)("tbody",{children:[n&&(v?(0,r.jsx)(x,{placeholder:!0}):p&&(0,r.jsx)(x,{data:p,highlight:!0})),u?Array.from({length:10}).map((e,t)=>(0,r.jsx)(x,{placeholder:!0},"r".concat(t))):h&&(null==j?void 0:j.map((e,t)=>(0,r.jsx)(x,{data:e},e.key)))]})]}),b&&(0,r.jsx)(g.default,{data:{page:e,pages:b,onChange:(e,n)=>{t(n)}}})]})}},67736:function(e,t,n){"use strict";n.d(t,{default:function(){return P}});var r=n(4301),l=n(6480),i=n(3138),a=n(99604),s=n(74519),o=n(65235),c=n(1338),d=n(73044),u=n(24075),h=n.n(u),f=n(39541),v=n(27325),p=n(72251),m=n(63884),x=n(43592),g=n(5706),b=n.n(g);let j=e=>{let{children:t,text:n}=e;return(0,r.jsx)(c.default,{overlay:(0,r.jsx)(d.default,{children:n}),children:t})},y=e=>"LL.e"===e?(0,r.jsx)(j,{text:"Earn 2x points for each dollar staked in LL",children:(0,r.jsx)("span",{className:"gradient-link",children:e})}):e;var w=e=>{var t,n,l;let{data:s,empty:c,withData:d,isLoading:u}=e,{logo:g,name:w,descr:_,link:k,title:O}=s||{},{isConnected:P}=(0,a.m)(),{openConnectModal:N}=(0,f.We)(),L=(null==s?void 0:s.pools)&&(null==s?void 0:null===(t=s.pools)||void 0===t?void 0:t.reduce((e,t)=>{let{total_points:n}=t;return e+(null!=n?n:0)},0)),C=L&&L>0,E=(null==s?void 0:s.provider)==="elektrik"&&(null==s?void 0:null===(n=s.pools)||void 0===n?void 0:n.some(e=>{let{context:t}=e;return[t.token0_symbol,t.token1_symbol].includes("LL.e")||!p.j7.includes(t.token0_address)||!p.j7.includes(t.token1_address)}));return(0,r.jsx)("div",{className:h()(b().item,{[b().empty]:c,[b().withData]:!c&&d}),children:c?(0,r.jsx)("strong",{children:"Coming soon"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:b().logo,children:g&&w&&(0,r.jsx)(o.default,{src:g,alt:w})}),d?P&&(u||C)?(0,r.jsxs)("div",{className:b().content,children:[(0,r.jsxs)("p",{className:"h3",children:[O,":"]}),(0,r.jsx)("table",{className:h()(b().table,b().pools),children:(0,r.jsx)("tbody",{children:u?(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)(i.Z,{animation:"glow",children:(0,r.jsx)(i.Z,{style:{width:50}})})}),(0,r.jsx)("td",{children:(0,r.jsx)(i.Z,{animation:"glow",children:(0,r.jsx)(i.Z,{style:{width:100}})})})]}):(null==s?void 0:null===(l=s.pools)||void 0===l?void 0:l.length)&&s.pools.map(e=>{var t,n;return(0,r.jsxs)("tr",{children:[(0,r.jsxs)("td",{children:["amped"===e.provider?"Value":(0,r.jsxs)(r.Fragment,{children:[y(null==e?void 0:null===(t=e.context)||void 0===t?void 0:t.token0_symbol)," /"," ",y(null==e?void 0:null===(n=e.context)||void 0===n?void 0:n.token1_symbol)]}),":"]}),(0,r.jsxs)("td",{children:["$",e.total_usd_value&&(0,v.ao)(e.total_usd_value,2).full]})]},e.key)})})}),(0,r.jsx)("hr",{}),(0,r.jsx)("table",{className:h()(b().table,b().footer),children:(0,r.jsx)("tfoot",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"Points per day:"}),(0,r.jsx)("td",{children:(0,r.jsxs)("b",{children:[u?(0,r.jsx)(i.Z,{animation:"glow",children:(0,r.jsx)(i.Z,{style:{width:50}})}):L&&(0,v.ao)(L).full,(E||(null==s?void 0:s.provider)==="amped")&&(0,r.jsx)(j,{text:(0,r.jsxs)(r.Fragment,{children:[E?(0,r.jsxs)(r.Fragment,{children:["Points are counted only for WETH, USDT, USDC, LL, and WBTC. ",(0,r.jsx)("br",{}),"Earn 2x points for each dollar locked in LL."]}):"Points are counted only for ALP.",(0,r.jsx)("br",{}),"It takes 15 minutes for any changes to display."]}),children:(0,r.jsx)("span",{children:(0,r.jsx)(x.Z,{})})})]})})]})})})]}):P?(0,r.jsxs)("div",{className:b().content,children:[(0,r.jsx)("span",{children:"You have not provided liquidity, withdrew it before midnight UTC, or we cannot detect it."}),(0,r.jsx)("span",{children:"Ensure you connect the wallet used to provide liquidity. It takes 15 minutes for any changes to display."}),(0,r.jsxs)("span",{children:["If no points appear,"," ",(0,r.jsx)("a",{href:"https://discord.com/channels/1128987210297913456/1138025758095319102",target:"_blank",children:"create a Discord ticket"}),"."]})]}):(0,r.jsx)("button",{onClick:N,className:h()(b().content,b().disconnected),children:"No wallet connected"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:b().descr,children:_}),k&&(0,r.jsxs)("a",{className:b().link,href:k.href,target:"_blank",children:[k.label,(0,r.jsx)(m.default,{})]})]})]})})},_=n(84105),k=n(7674),O=n.n(k),P=e=>{let{data:t,isLoading:n,total:o}=e,{isConnected:c}=(0,a.m)(),d=Object.keys(p.aA).map(e=>(null==t?void 0:t[e])||p.aA[e],[]),u=(0,l.useMemo)(()=>t?Object.values(t).reduce((e,t)=>{let{pools:n}=t;return e+(n?n.reduce((e,t)=>{let{total_points:n}=t;return e+(null!=n?n:0)},0):0)},0):0,[t]);return(0,r.jsxs)("div",{className:O().box,children:[!!o&&c&&(0,r.jsx)("div",{className:O().header,children:(0,r.jsx)(s.default,{})}),(0,r.jsxs)("div",{className:O().items,children:[d.map(e=>(0,r.jsx)(w,{data:e,isLoading:n,withData:!!o},e.name)),(0,r.jsx)(w,{empty:!0})]}),c&&!!o&&(!o.error||u||n?(0,r.jsxs)("div",{className:O().footer,children:[(0,r.jsxs)("div",{className:O().total,children:[o.isLoading&&!o.error||n?(0,r.jsx)(i.Z,{animation:"glow",children:(0,r.jsx)(i.Z,{style:{width:50}})}):(0,v.ao)(o.data?o.data.balance:0).full," ","credited points"]}),(0,r.jsxs)("div",{children:["The start date for earning points is July 30, 2024.",(0,r.jsx)("br",{}),(0,r.jsxs)("b",{children:[n?(0,r.jsx)(i.Z,{animation:"glow",children:(0,r.jsx)(i.Z,{style:{width:30}})}):(0,v.ao)(u).full," ","pending points"]})," ","are to be credited at midnight UTC. ",(0,r.jsx)("br",{}),"If you unstake before midnight, you will lose pending points."]})]}):2007===o.error.code&&(0,r.jsx)(_.Z,{data:[{key:"discord",label:"Chat with us on Discord"},{key:"telegram",label:"Ask questions on Telegram"}],buttons:"transparent",className:O().buttons}))]})}},28984:function(e,t,n){"use strict";n.d(t,{default:function(){return m}});var r=n(4301),l=n(6480),i=n(43168),a=n(99604),s=n(67736),o=n(46558),c=n(33897),d=e=>(0,o.useQuery)({queryKey:["".concat(c.U7.POSITIONS,"/").concat(e)],queryFn:c.ux,enabled:!!e,retry:!1}),u=n(98398),h=e=>(0,o.useQuery)({queryKey:[c.U7.TOKEN_PRICE],queryFn:c.ux,enabled:e,retry:!1}),f=n(72251),v=n(82795),p=n.n(v),m=()=>{let{address:e}=(0,a.m)(),{isLoading:t,data:n}=d(e),{isLoading:o,data:c,error:v}=(0,u.Z)(e),{data:m,isLoading:x}=h(),g=(0,l.useMemo)(()=>n&&m&&n.reduce((e,t)=>{let n;let{context:r}=t,l=r.token0_address&&r.token1_address&&[0,1].reduce((e,t)=>{let n=r["token".concat(t,"_address")],l=r["token".concat(t,"_symbol")],i=r["token".concat(t,"_value")]||0,a=m.data[n]||0,s=f.j7.includes(n)?i*a:0;return{...e,["token".concat(t,"_usd_value")]:s,["token".concat(t,"_points")]:"LL.e"===l?2*s:s}},{});switch(t.provider){case"amped":n={...t,total_usd_value:(r.alp_value||0)*m.data[f.MH],total_points:(r.alp_value||0)*m.data[f.MH]};break;case"elektrik":n=f.j7.some(e=>[r.token0_address,r.token1_address].includes(e))&&{...t,...l,total_usd_value:l?l.token0_usd_value+l.token1_usd_value:0,total_points:l?l.token0_points+l.token1_points:0}}return e[t.provider]?n&&e[t.provider].pools.push(n):e[t.provider]={provider:t.provider,...f.aA[t.provider],pools:n&&[n]||[]},e},{}),[n,m]);return(0,r.jsxs)(i.default,{as:"section",className:p().points,children:[(0,r.jsx)("h2",{children:"Your Liquidity Points"}),(0,r.jsx)(s.default,{data:g,isLoading:t||x,total:{data:c,isLoading:o,error:v}})]})}},72251:function(e,t,n){"use strict";n.d(t,{MH:function(){return i},aA:function(){return r},j7:function(){return l}});let r={elektrik:{name:"Elektrik",logo:{src:"/_next/static/media/elektrik.98d93c60.svg",height:45,width:182,blurWidth:0,blurHeight:0},descr:"DEX with gasless transactions on LightLink. Provide WETH, USDT, USDC, LL, WBTC in pairs to liquidity pools.",link:{label:"Provide liquidity to pools",href:"https://app.elektrik.network/#/pools"},title:"Pools"},amped:{name:"Amped Finance",logo:{src:"/_next/static/media/amped.cc27bb7f.svg",height:40,width:258,blurWidth:0,blurHeight:0},descr:"Decentralized leveraged perpetual swaps exchange on LightLink. Provide liquidity to single token pools by purchasing ALP tokens.",link:{label:"Buy ALP to provide liquidity",href:"https://amped.finance/#/buy_alp"},title:"ALP balance"}},l=["0x7ebef2a4b1b09381ec5b9df8c5c6f2dbeca59c73","0x6308fa9545126237158778e74ae1b6b89022c5c0","0x18fb38404dadee1727be4b805c5b242b5413fa40","0xd9d7123552fa2bedb2348bb562576d67f6e8e96e","0x46a5e3fa4a02b9ae43d9df9408c86ed643144a67"],i="0xf183ed203015B489B568d2BB5D3d9fDB9db8c442"},98398:function(e,t,n){"use strict";var r=n(46558),l=n(33897);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,r.useQuery)({queryKey:["".concat(l.U7.POINTS,"/").concat(e)],queryFn:l.ux,retry:!1})}},33897:function(e,t,n){"use strict";n.d(t,{Eh:function(){return d},U7:function(){return s},hi:function(){return i},ux:function(){return c}});var r=n(43666),l=n(29641);let i=r.Z.create({baseURL:"/api"}),a=r.Z.create({baseURL:"".concat("https://m4qbz3fgcc.execute-api.ap-southeast-1.amazonaws.com/prod","/api/v1")});a.interceptors.response.use(e=>e,e=>{var t,n;return 404===(e.response?e.response.status:null)||(null===(t=e.response)||void 0===t?void 0:t.data)?Promise.reject(null===(n=e.response)||void 0===n?void 0:n.data):Promise.reject(e)});let s={LOYALTY_POINTS:"/loyaltypoints",CAMPAIGNS:"/campaigns",LOYALTY_RANKING:"/loyaltyranking",CLAIM:"/claims",MINT:"/mints",POSITIONS:"/lp-positions",POINTS:"/points-accounts",TOKEN_PRICE:"/token-price/latest",POINTS_CYCLE:"/points-cycle",PARTICIPANTS:"https://phoenix.lightlink.io/api"},o=async e=>{let{queryKey:t}=e,[n,r]=t,l=null==r?void 0:r.params;return await i.get(n,{params:l}).then(e=>{var t,n;return(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.error)?Promise.reject(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.error):null==e?void 0:e.data})},c=async e=>{let{queryKey:t}=e,[n,r]=t,{data:l}=await a.get(n);return l},d=new l.S({defaultOptions:{queries:{retry:!1,queryFn:o,staleTime:3e5,gcTime:864e5}}})},74519:function(e,t,n){"use strict";n.d(t,{default:function(){return m}});var r,l=n(4301);n(6480);var i=n(99604),a=n(39541),s=n(74206),o=n.n(s),c=n(24075),d=n.n(c),u=n(23547);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var f=function(e){return u.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24"},e),r||(r=u.createElement("path",{d:"M7 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0m5 2a2 2 0 1 0 0-4 2 2 0 0 0 0 4",clipRule:"evenodd"})))},v=n(11019),p=n.n(v),m=e=>{let{className:t}=e,{openAccountModal:n}=(0,a.Ap)(),{isConnected:r,address:s}=(0,i.m)();return r&&(0,l.jsxs)("button",{onClick:n,className:d()(p().account,t),children:[(0,l.jsx)(o(),{children:(0,l.jsx)("span",{children:s})}),(0,l.jsx)(f,{})]})}},67504:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r,l,i=n(4301);n(6480);var a=n(39541),s=n(22937),o=n(29944),c=n(23547);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var u=function(e){return c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},e),r||(r=c.createElement("path",{fillRule:"evenodd",d:"M5 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3V6a3 3 0 0 0-3-3zM4 18v-8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v1h-4a3 3 0 1 0 0 6h4v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1m16-3v-2h-4a1 1 0 1 0 0 2zM4 6v1.17c.313-.11.65-.17 1-.17h12V6a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1",clipRule:"evenodd"})))};function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var f=function(e){return c.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24"},e),l||(l=c.createElement("path",{stroke:"#fff",strokeWidth:2,d:"m12 12 6-6m-6 6-6 6m6-6L6 6m6 6 6 6"})))},v=e=>{let{size:t,children:n}=e;return(0,i.jsx)(a.NL.Custom,{children:e=>{let{account:r,chain:l,openChainModal:a,openConnectModal:c,mounted:d}=e;return d&&r&&l?l.unsupported?(0,i.jsxs)(s.default,{onClick:a,variant:"danger",size:t,children:["Wrong network ",(0,i.jsx)(f,{})]}):n:(0,i.jsxs)(s.default,{onClick:c,disabled:!d,variant:"light",size:t,children:["Connect Wallet"," ",d?(0,i.jsx)(u,{}):(0,i.jsx)(o.Z,{animation:"grow"})]})}})}},33619:function(e,t,n){"use strict";var r=n(4301);n(6480);var l=n(43168),i=n(67504),a=n(13479),s=n(35407),o=n.n(s);t.Z=e=>{let{data:t,button:n}=e;return(0,r.jsx)(l.default,{as:"section",className:o().info,children:(0,r.jsxs)("div",{className:o().box,children:[(0,r.jsx)(a.Z,{data:t}),(0,r.jsxs)("div",{className:o().buttons,children:[(0,r.jsx)(i.Z,{}),n]})]})})}},13479:function(e,t,n){"use strict";var r=n(4301);n(6480);var l=n(24075),i=n.n(l),a=n(3138),s=n(33373),o=n.n(s);t.Z=e=>{let{data:t,className:n}=e;return(0,r.jsx)("ul",{className:i()(o().stats,n),children:t.map((e,t)=>{let{value:n,prefix:l,suffix:s,label:c,placeholderWidth:d,loading:u}=e;return(0,r.jsxs)("li",{children:[(0,r.jsxs)("span",{className:i()("h2",o().number),children:[l,u?(0,r.jsx)(a.Z,{animation:"glow",children:(0,r.jsx)(a.Z,{style:{width:d||100,height:"1em"}})}):n,s]}),(0,r.jsx)("div",{className:o().label,children:c})]},"s".concat(t))})})}},80659:function(e,t,n){"use strict";n.d(t,{default:function(){return o}});var r=n(4301);n(6480);var l=n(39966),i=n(29335);function a(e,t){return Array.from({length:t-e+1},(t,n)=>e+n)}var s=n(63884),o=e=>{let{data:t}=e,{page:n,pages:o,boundaryCount:c,onChange:d,short:u}=t,{items:h}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{boundaryCount:t=1,count:n=1,defaultPage:r=1,disabled:l=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:o,page:c,showFirstButton:d=!1,showLastButton:u=!1,siblingCount:h=1,...f}=e,v=(e,t)=>{o&&o(e,t)},p=a(1,Math.min(t,n)),m=a(Math.max(n-t+1,t+1),n),x=Math.max(Math.min(c-h,n-t-2*h-1),t+2),g=Math.min(Math.max(c+h,t+2*h+2),m.length>0?m[0]-2:n-1),b=[...d?["first"]:[],...s?[]:["previous"],...p,...x>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...a(x,g),...g<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...m,...i?[]:["next"],...u?["last"]:[]],j=e=>{switch(e){case"first":return 1;case"previous":return c-1;case"next":return c+1;case"last":return n;default:return null}};return{items:b.map(e=>"number"==typeof e?{onClick:o&&(t=>{v(t,e)}),type:"page",page:e,active:e===c,disabled:l,"aria-current":e===c?"true":void 0}:{onClick:o&&(t=>{let n=j(e);null!==n&&v(t,n)}),type:e,page:j(e),active:!1,disabled:l||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?c>=n:c<=1)}),...f}}({count:o,page:n,boundaryCount:c,onChange:d});return(0,r.jsx)(i.Z,{children:h.map(e=>{let{type:t,page:n,...a}=e,o={as:(null==a?void 0:a.onClick)?"button":l.default,href:(null==a?void 0:a.onClick)?void 0:"/blog/page/".concat(n),...a};switch(t){case"page":return(0,r.jsx)(i.Z.Item,{...o,children:n},n);case"previous":return(0,r.jsx)(i.Z.Prev,{...o,children:(0,r.jsx)(s.default,{style:{fontSize:20,transform:"scaleX(-1)"}})},"prev");case"next":return(0,r.jsx)(i.Z.Next,{...o,children:(0,r.jsx)(s.default,{style:{fontSize:20}})},"next");case"start-ellipsis":case"end-ellipsis":return!u&&(0,r.jsx)("li",{className:"page-item--ell",children:"..."},t)}})})}},31570:function(e,t,n){"use strict";n.d(t,{BA:function(){return u},GT:function(){return h},UZ:function(){return c},wS:function(){return d}});var r=n(4301);n(6480);var l=n(89347),i=n(18910),a=n(75056),s=n(51053),o=n(80);let c={x:(0,r.jsx)(l.default,{}),discord:(0,r.jsx)(i.default,{}),telegram:(0,r.jsx)(a.default,{}),linkedin:(0,r.jsx)(s.default,{}),web:(0,r.jsx)(o.default,{})},d={x:"Twitter",discord:"Discord",telegram:"Telegram",linkedin:"LinkedIn",web:"Website"},u={x:"https://twitter.com/lightlinkchain",discord:"https://discord.com/invite/lightlinkchain",telegram:"https://t.me/lightlinkLL",linkedin:"https://linkedin.com/company/lightlinkchain"},h=["x","discord","telegram","linkedin"].map(e=>({key:e,label:d[e],link:u[e]}))},84105:function(e,t,n){"use strict";var r=n(4301),l=n(6480),i=n(22937),a=n(24075),s=n.n(a),o=n(31570),c=n(29223),d=n.n(c);t.Z=e=>{let{data:t=o.GT,variant:n="",short:a,labels:c,buttons:u,className:h}=e,f="buttons"===n||u;return a&&(t=t.slice(0,-1)),(0,r.jsx)("ul",{className:s()(d().social,{[d()["social--".concat(n)]]:n},h),children:t.map(e=>{let{key:t,label:a,link:h}=e;return(0,r.jsx)("li",{className:d().social__item,children:l.createElement(f?i.default:"a",{as:f?"a":void 0,href:h||o.BA[t],target:"_blank",className:s()({[d().social__link]:!f,[d().zoom]:!f&&"card"!==n}),"aria-label":a,rel:"noreferrer",variant:u||"light"},(0,r.jsxs)(r.Fragment,{children:[(c||u)&&"".concat(a||o.wS[t]," "),o.UZ[t]]}))},t)})})}},40993:function(e,t,n){"use strict";var r=n(4301);n(6480);var l=n(39966),i=n(25958),a=n(24075),s=n.n(a),o=n(62598),c=n.n(o);t.default=e=>{let{data:t,variant:n="",className:a}=e;return(0,r.jsxs)(i.Z,{className:s()(c().breadcrumbs,{[c()[n]]:!!n},a),children:[(0,r.jsx)(i.Z.Item,{linkAs:l.default,href:"/",children:"Home"}),t.map(e=>{let{title:t,href:n}=e;return(0,r.jsx)(i.Z.Item,{linkAs:l.default,href:n,active:!n,children:t},t)})]})}},27325:function(e,t,n){"use strict";n.d(t,{ao:function(){return i}});let r={T:1e12,B:1e9,M:1e6},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Number("".concat(Math.round("".concat(e,"e").concat(t)),"e-").concat(t));return n?r.toFixed(t):r},i=(e,t,n)=>{let i=l(e,t,n),a=Math.abs(i),[s,o]=Object.entries(r).find(e=>a>=e[1])||["",1],c=l(i/o,s?2:t,n).toLocaleString(),d="".concat(c).concat(s);return{number:c,multiplier:o,abbr:s,full:d}}},17489:function(e,t){"use strict";t.Z=e=>e&&"".concat(e.substring(0,5),"...").concat(e.substring(e.length-5))},74723:function(e){e.exports={how:"ll_eZ",lead:"ll_e0"}},65764:function(e){e.exports={leaderboard:"ll_gu",table:"ll_gv",position:"ll_gw",highlight:"ll_gx"}},7674:function(e){e.exports={total:"ll_gy",footer:"ll_gz",box:"ll_gA",header:"ll_gB",items:"ll_gC",buttons:"ll_gD"}},5706:function(e){e.exports={item:"ll_hb",empty:"ll_hc",withData:"ll_hd",logo:"ll_he",content:"ll_hf",disconnected:"ll_hg",table:"ll_hh",footer:"ll_hi",descr:"ll_hj",link:"ll_hk"}},82795:function(e){e.exports={points:"ll_gE"}},11019:function(e){e.exports={account:"ll_fz"}},92063:function(e){e.exports={"hero--sub":"ll_hN",title:"ll_hO",bmg:"ll_ai",inner:"ll_hP",buttons:"ll_ah"}},35407:function(e){e.exports={info:"ll_hy",box:"ll_hz",buttons:"ll_hA"}},33373:function(e){e.exports={stats:"ll_hl",number:"ll_hm"}},15161:function(e){e.exports={"community--lbp":"ll_g8","community--enterprise":"ll_dA",section:"ll_dB",community:"ll_dC",box:"ll_dD",content:"ll_dE",buttons:"ll_dF",bmg:"ll_dG"}},29223:function(e){e.exports={social:"ll_fc",social__link:"ll_fd",zoom:"ll_fe","social--header":"ll_ff","social--offcanvas":"ll_fg","social--buttons":"ll_fh","social--footer":"ll_fi","social--ecosystem":"ll_fj","social--card":"ll_fk"}},62598:function(e){e.exports={breadcrumbs:"ll_fy",center:"ll_ii"}}},function(e){e.O(0,[6088,7849,2224,6149,3922,1665,3666,1809,689,1713,5510,7959,1338,2938,4176,866,1744],function(){return e(e.s=10309)}),_N_E=e.O()}]);