PageSourceSearch

https://lassecash.pages.dev/_app/immutable/nodes/10.BHmeFvNd.js

js lassecash.pages.dev collected 2026-10-03 05:22:01 UTC 10,809 bytes, 10 lines download raw bytes

1import{d as Oe,a as c,f,s as v,e as we,b as Ye}from"../chunks/D9sGZGkf.js";import{o as Ze}from"../chunks/WB-YkL4p.js";import{p as je,b as K,w as Pe,f as ve,a as Ue,d as V,g as e,s as l,c as r,r as s,v as S,t as k,o as j}from"../chunks/CN4tyA6q.js";import{i as I}from"../chunks/C5sdDPiI.js";import{S as ze,b as Ke,e as de,s as N}from"../chunks/8mUhvwNQ.js";import{s as be}from"../chunks/pf6Xs9Ff.js";import{c as Ve,f as w,d as ce,i as Se}from"../chunks/BEQGXt1Q.js";import{S as qe}from"../chunks/2Hd2hf89.js";const Je=!1,St=Object.freeze(Object.defineProperty({__proto__:null,ssr:Je},Symbol.toStringTag,{value:"Module"}));var Qe=f(`<p class="empty">Replaying the pool's history…</p>`),We=f('<p class="empty red"> </p>'),Xe=f(`<p class="empty">No trades yet. The chart begins with the pool's first deposit.</p>`),et=f('<div class="delta svelte-m6uerf"><div> </div> <div class="unit svelte-m6uerf">since the pool opened</div></div>'),tt=f('<div class="svelte-m6uerf"><dt class="svelte-m6uerf">Low / high</dt><dd class="mono svelte-m6uerf"> </dd></div>'),st=f('<div class="hero svelte-m6uerf"><div><div class="price mono svelte-m6uerf"> </div> <div class="unit svelte-m6uerf">HBD per LASSECASH</div></div> <!></div> <dl class="stats svelte-m6uerf"><div class="svelte-m6uerf"><dt class="svelte-m6uerf">Depth</dt><dd class="mono svelte-m6uerf"> </dd></div> <div class="svelte-m6uerf"><dt class="svelte-m6uerf">Trades</dt><dd class="mono svelte-m6uerf"> </dd></div> <div class="svelte-m6uerf"><dt class="svelte-m6uerf">Volume</dt><dd class="mono svelte-m6uerf"> </dd></div> <!> <div class="svelte-m6uerf"><dt class="svelte-m6uerf">Swap fee</dt><dd class="mono green svelte-m6uerf">0% <small class="dim"> </small></dd></div></dl>',1),rt=we('<line class="grid svelte-m6uerf" x1="40" x2="980"></line><text class="axis svelte-m6uerf" x="36" text-anchor="end"> </text>',1),at=we('<circle r="3"><title> </title></circle>'),lt=f(`<section class="panel"><div class="chartwrap svelte-m6uerf"><svg viewBox="0 0 1000 330" role="img" aria-label="LASSECASH price in HBD since the pool opened, drawn as steps" class="svelte-m6uerf"><defs><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="var(--gold)" stop-opacity="0.20"></stop><stop offset="100%" stop-color="var(--gold)" stop-opacity="0"></stop></linearGradient></defs><!><path fill="url(#g)"></path><path fill="none" stroke="var(--gold)" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path><!><circle cx="980" r="8" fill="var(--gold)" opacity="0.16"></circle><circle cx="980" r="3.5" fill="var(--gold)"></circle><text class="axis svelte-m6uerf" x="40" y="322"> </text><text class="axis svelte-m6uerf" x="980" y="322" text-anchor="end">now</text></svg></div> <div class="legend svelte-m6uerf"><span class="svelte-m6uerf"><i class="sw gold svelte-m6uerf"></i>price</span> <span class="svelte-m6uerf"><i class="sw amber svelte-m6uerf"></i>sell — LASSECASH into the pool</span> <span class="svelte-m6uerf"><i class="sw cyan svelte-m6uerf"></i>buy — HBD into the pool</span> <span class="svelte-m6uerf"><i class="sw gold svelte-m6uerf"></i>deposit / withdraw — depth only, never the price</span></div> <small class="dim note svelte-m6uerf">Drawn as <b>steps</b> because that is what an AMM price does: it is a pure
2        function of the two reserves, so it holds perfectly still between trades and
3        jumps the instant someone swaps. Candles arrive when there is enough flow for
4        a candle to have a body.</small></section>`),ot=f(`The replay lands on the live reserves <b class="green">exactly, in both
5          assets</b>, which is the check that says it is right.`,1),it=f(`<b class="amber">The replay does not currently reconcile with live
6          reserves</b>, so treat the earlier points as approximate — a deposit
7          or withdrawal it cannot reproduce is the usual cause.`,1),nt=f('<a class="svelte-m6uerf"> </a>'),vt=f('<span class="dim">—</span>'),dt=f('<tr class="svelte-m6uerf"><td class="mono dim svelte-m6uerf"> </td><td class="svelte-m6uerf"><span> </span></td><td class="mono svelte-m6uerf"><!></td><td class="num mono svelte-m6uerf"> </td><td class="num mono svelte-m6uerf"> </td><td class="num mono svelte-m6uerf"> </td><td class="num mono svelte-m6uerf"> </td><td class="num mono gold svelte-m6uerf"> </td></tr>'),ct=f('<button class="ghost small showmore svelte-m6uerf"> </button>'),mt=f(`<section class="panel"><h2>Every trade, from the first deposit</h2> <small class="dim">Replayed from the chain's own calls through the engine — the same Go code
8        the contract runs. Every trade names its signer, because every trade
9        already does on the chain: hiding it here would make this page less
10        honest than the raw transaction it is built from. <!></small> <div class="scroll svelte-m6uerf"><table class="svelte-m6uerf"><thead><tr><th class="svelte-m6uerf">Time</th><th class="svelte-m6uerf">Event</th><th class="svelte-m6uerf">Account</th><th class="num svelte-m6uerf">LASSECASH</th><th class="num svelte-m6uerf">HBD</th><th class="num svelte-m6uerf">LASSECASH reserve</th><th class="num svelte-m6uerf">HBD reserve</th><th class="num svelte-m6uerf">Price after</th></tr></thead><tbody class="svelte-m6uerf"></tbody></table></div> <!></section>`),ut=f('<!> <div class="grid svelte-m6uerf"><section class="panel"><h2>LASSECASH:HBD</h2> <!></section> <!> <!></div>',1);function wt(Ae,Ee){je(Ee,!0);const He=110664118,Le=S(()=>!!ce.info&&ce.info.height>=He);let C=K(Pe([])),me=K(!1),ue=K(!0),te=K(null);Ze(async()=>{try{const t=await Ve.poolTrades();V(C,t.trades,!0),V(me,t.reconciled,!0)}catch(t){V(te,t instanceof Error?t.message:String(t),!0)}finally{V(ue,!1)}});const p=S(()=>e(C).filter(t=>Number(t.price)>0)),fe=S(()=>e(p)[0]??null),Z=S(()=>e(p)[e(p).length-1]??null),se=S(()=>e(C).filter(t=>t.side==="sell"||t.side==="buy")),pe=15;let G=K(15);const Ne=S(()=>[...e(C)].reverse().slice(0,e(G))),q=S(()=>
10{if(!e(fe)||!e(Z))return null;const t=Number(e(fe).price),i=Number(e(Z).price);return t?((i/t-1)*100).toFixed(1):null}),J=S(()=>e(p).length?e(p).reduce((t,i)=>Number(i.price)<Number(t.price)?i:t):null),Q=S(()=>e(p).length?e(p).reduce((t,i)=>Number(i.price)>Number(t.price)?i:t):null),De=S(()=>e(se).reduce((t,i)=>t+Number(i.side==="sell"?i.amountIn:i.amountOut),0)),O=S(()=>{if(e(p).length<2||!e(J)||!e(Q))return null;const t=Date.parse(e(p)[0].time+"Z"),i=Date.parse(e(p)[e(p).length-1].time+"Z"),h=Math.max(1,i-t),A=Number(e(J).price),E=Number(e(Q).price),B=(E-A)*.15||E*.15||1,_=Math.max(0,A-B),H=E+B,y=o=>(Date.parse(o+"Z")-t)/h*940+40,g=o=>280-(Number(o)-_)/(H-_)*260;let b="",n=0;e(p).forEach((o,d)=>{const m=y(o.time),u=g(o.price);b+=d===0?`M ${m.toFixed(1)} ${u.toFixed(1)}`:` L ${m.toFixed(1)} ${n.toFixed(1)} L ${m.toFixed(1)} ${u.toFixed(1)}`,n=u}),b+=` L 980 ${n.toFixed(1)}`;const a=`${b} L 980 300 L 40 300 Z`;return{line:b,area:a,x:y,y:g,endY:n,ticks:[_,(_+H)/2,H].map(o=>({v:o,y:g(String(o))})),points:e(p).map(o=>({t:o,cx:y(o.time),cy:g(o.price)}))}}),re=t=>new Date(t+"Z").toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"});var he=ut(),_e=ve(he);{let t=S(()=>`${Ke}/chart`);qe(_e,{title:"Chart",description:"The LASSECASH:HBD price on MAGI — every trade since the pool opened, replayed from the chain.",get canonical(){return e(t)},get image(){return ze}})}var ge=l(_e,2),ae=r(ge),$e=l(r(ae),2);{var ke=t=>{var i=Qe();c(t,i)},Be=t=>{var i=We(),h=r(i,!0);s(i),k(()=>v(h,e(te))),c(t,i)},Te=t=>{var i=Xe();c(t,i)},Ce=t=>{var i=st(),h=ve(i),A=r(h),E=r(A),B=r(E,!0);s(E),j(2),s(A);var _=l(A,2);{var H=L=>{var x=et(),D=r(x);let $;var z=r(D);s(D),j(2),s(x),k((Y,le)=>{$=be(D,1,"mono svelte-m6uerf",null,$,Y),v(z,`${le??""}${e(q)??""}%`)},[()=>({up:Number(e(q))>=0}),()=>Number(e(q))>=0?"+":""]),c(L,x)};I(_,L=>{e(q)&&L(H)})}s(h);var y=l(h,2),g=r(y),b=l(r(g)),n=r(b);s(b),s(g);var a=l(g,2),o=l(r(a)),d=r(o,!0);s(o),s(a);var m=l(a,2),u=l(r(m)),T=r(u);s(u),s(m);var M=l(m,2);{var P=L=>{var x=tt(),D=l(r(x)),$=r(D);s(D),s(x),k((z,Y)=>v($,`${z??""} · ${Y??""}`),[()=>w(e(J).price,8),()=>w(e(Q).price,8)]),c(L,x)};I(M,L=>{e(J)&&e(Q)&&L(P)})}var W=l(M,2),X=l(r(W)),ee=l(r(X)),U=r(ee,!0);s(ee),s(X),s(W),s(y),k((L,x,D,$)=>{v(B,L),v(n,`${x??""} LASSECASH · ${D??""} HBD`),v(d,e(se).length),v(T,`${$??""} LASSECASH`),v(U,e(Le)?"forever — the keys are burned":"hardcoded · nobody can raise it")},[()=>w(e(Z).price,8),()=>w(e(Z).lcReserve,0),()=>w(e(Z).hbdReserve,3),()=>w(String(e(De)),0)]),c(t,i)};I($e,t=>
10{e(ue)?t(ke):e(te)?t(Be,1):e(Z)?t(Ce,-1):t(Te,2)})}s(ae);var xe=l(ae,2);{var Me=t=>{var i=lt(),h=r(i),A=r(h),E=l(r(A));de(E,17,()=>e(O).ticks,a=>a.v,(a,o)=>{var d=rt(),m=ve(d),u=l(m),T=r(u,!0);s(u),k(M=>{N(m,"y1",e(o).y),N(m,"y2",e(o).y),N(u,"y",e(o).y+3),v(T,M)},[()=>Number(e(o).v).toFixed(8)]),c(a,d)});var B=l(E),_=l(B),H=l(_);de(H,17,()=>e(O).points,a=>a.t.time,(a,o)=>{var d=at(),m=r(d),u=r(m);s(m),s(d),k((T,M)=>{N(d,"cx",e(o).cx),N(d,"cy",e(o).cy),N(d,"fill",e(o).t.side==="buy"?"var(--cyan)":e(o).t.side==="sell"?"var(--amber)":"var(--gold)"),v(u,`${T??""} · ${e(o).t.side??""} · ${M??""} HBD`)},[()=>re(e(o).t.time),()=>w(e(o).t.price,8)]),c(a,d)});var y=l(H),g=l(y),b=l(g),n=r(b,!0);s(b),j(),s(A),s(h),j(4),s(i),k(a=>{N(B,"d",e(O).area),N(_,"d",e(O).line),N(y,"cy",e(O).endY),N(g,"cy",e(O).endY),v(n,a)},[()=>re(e(p)[0].time)]),c(t,i)};I(xe,t=>{e(O)&&t(Me)})}var Re=l(xe,2);{var Fe=t=>{var i=mt(),h=l(r(i),2),A=l(r(h));{var E=n=>{var a=ot();j(2),c(n,a)},B=n=>{var a=it();j(),c(n,a)};I(A,n=>{e(me)?n(E):ce.info&&n(B,1)})}s(h);var _=l(h,2),H=r(_),y=l(r(H));de(y,21,()=>e(Ne),n=>n.time+n.side+n.amountIn,(n,a)=>{var o=dt(),d=r(o),m=r(d,!0);s(d);var u=l(d),T=r(u),M=r(T,!0);s(T),s(u);var P=l(u),W=r(P);{var X=R=>{var F=nt(),oe=r(F,!0);s(F),k((ie,ne)=>{N(F,"href",`/@${ie??""}`),v(oe,ne)},[()=>Se(e(a).trader).replace("@",""),()=>Se(e(a).trader)]),c(R,F)},ee=R=>{var F=vt();c(R,F)};I(W,R=>{e(a).trader?R(X):R(ee,-1)})}s(P);var U=l(P),L=r(U,!0);s(U);var x=l(U),D=r(x,!0);s(x);var $=l(x),z=r($,!0);s($);var Y=l($),le=r(Y,!0);s(Y);var ye=l(Y),Ie=r(ye,!0);s(ye),s(o),k((R,F,oe,ie,ne,Ge)=>{v(m,R),be(T,1,`pill ${e(a).side??""}`,"svelte-m6uerf"),v(M,e(a).side),v(L,F),v(D,oe),v(z,ie),v(le,ne),v(Ie,Ge)},[()=>re(e(a).time),()=>w(e(a).side==="buy"?e(a).amountOut:e(a).amountIn,0),()=>w(e(a).side==="buy"?e(a).amountIn:e(a).amountOut,3),()=>w(e(a).lcReserve,0),()=>w(e(a).hbdReserve,3),()=>w(e(a).price,8)]),c(n,o)}),s(y),s(H),s(_);var g=l(_,2);{var b=n=>{var a=ct(),o=r(a);s(a),k(d=>v(o,`Show ${d??""} more · ${e(C).length-e(G)} older trade${e(C).length-e(G)===1?"":"s"} below`),[()=>Math.min(pe,e(C).length-e(G))]),Ye("click",a,()=>V(G,e(G)+pe)),c(n,a)};I(g,n=>{e(C).length>e(G)&&n(b)})}s(i),c(t,i)};I(Re,t=>{e(se).length&&t(Fe)})}s(ge),c(Ae,he),Ue()}Oe(["click"]);export{wt as component,St as universal};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.