PageSourceSearch

https://lassecash.pages.dev/_app/immutable/nodes/16.vRAAJEHy.js

js lassecash.pages.dev collected 2026-10-03 05:22:08 UTC 16,908 bytes, 21 lines download raw bytes

1import{d as qa,a as h,f as m,s as n,g as Ne,b as Ha}from"../chunks/D9sGZGkf.js";import{p as Ta,n as ze,b,w as ia,f as Le,a as Pa,g as e,v as T,d as o,s as r,c as t,r as a,t as g,o as Ee,a0 as Ca}from"../chunks/CN4tyA6q.js";import{i as w}from"../chunks/C5sdDPiI.js";import{S as Ra,b as Na,e as na,r as ve,s as Ma}from"../chunks/8mUhvwNQ.js";import{s as da}from"../chunks/pf6Xs9Ff.js";import{b as se}from"../chunks/BlnfMc48.js";import{m as O,d as E,c as Ae,w as $e,f as re,g as Ke,n as Oa,i as Fa,t as Ia}from"../chunks/BEQGXt1Q.js";import{r as Ua}from"../chunks/BUOV9e5f.js";import{S as Wa}from"../chunks/2Hd2hf89.js";const ja=!1,Ga=!1,St=Object.freeze(Object.defineProperty({__proto__:null,prerender:Ga,ssr:ja},Symbol.toStringTag,{value:"Module"}));var Va=m('<span class="warn svelte-idkh17"> </span>'),Ya=m('<span class="ok svelte-idkh17">accrual current</span>'),za=m('<div class="ticks svelte-idkh17"><span>height <b class="mono"> </b></span> <span>settled <b class="mono"> </b></span> <!></div>'),Ka=m('<section class="panel"><p class="note">Reading the chain…</p></section>'),Qa=m(`<section class="panel"><div class="label">Emitted per day, at this height</div> <div class="value gold mono"> </div> <p class="note">Halves every three years. Split 50% Proof-of-Brain (a quarter of that
2          viral, three quarters deep), 25% L-Share yield, 25% liquidity.</p></section>`),Qe=m('<p class="ok svelte-idkh17"> </p>'),Me=m('<p class="err svelte-idkh17"> </p>'),Xa=m(`<section class="panel fundall svelte-idkh17"><div class="label">Fund all four at the block split</div> <p class="note">One call, split 12.5% viral · 37.5% deep · 25% L-Share · 25% liquidity,
3          exactly as a block reward is. The L-Share slice absorbs any rounding.</p> <form class="fund svelte-idkh17"><input class="mono svelte-idkh17" inputmode="decimal" placeholder="LASSECASH"/> <button class="small"> </button></form> <!> <!></section>`),Za=m(`<section class="panel rawcall svelte-idkh17"><div class="label">Seed the native LASSECASH/HBD pool</div> <p class="note">MAGI's own DEX pool (<span class="mono"> </span>), empty until seeded.
4          The HBD side follows the core pool's price at the moment you press, so both pools open at one price.
5          One confirm: token allowance + deposit.</p> <form class="raw svelte-idkh17"><div class="row svelte-idkh17"><input class="mono svelte-idkh17" placeholder="LASSECASH"/> <span class="mono note"> </span> <button class="small"> </button></div></form> <!> <!></section> <section class="panel rawcall svelte-idkh17"><div class="label">Raw contract call — operator only</div> <p class="note">Sends exactly what you type, signed with your ACTIVE key, to any contract.
6          No dry run and no allowance bundling. Simulate it first.</p> <form class="raw svelte-idkh17"><input class="mono svelte-idkh17" placeholder="contract id (vsc1…)"/> <input class="mono svelte-idkh17" placeholder="action (e.g. init)"/> <textarea class="mono svelte-idkh17" placeholder="payload" rows="3"></textarea> <div class="row svelte-idkh17"><input class="mono rc svelte-idkh17" placeholder="rc_limit"/> <button class="small"> </button></div></form> <!> <!></section>`,1),Ja=m('<div class="svelte-idkh17"><dt class="svelte-idkh17">per unit per day</dt> <dd class="mono svelte-idkh17"> <small class="dim">×1e-8</small></dd></div>'),et=m('<div class="svelte-idkh17"><dt class="svelte-idkh17">since you opened this page</dt> <dd> </dd></div>'),at=m('<form class="fund svelte-idkh17"><input class="mono svelte-idkh17" inputmode="decimal" placeholder="LASSECASH"/> <button class="small"> </button></form>'),tt=m('<section class="panel pool svelte-idkh17"><div class="label"> </div> <div class="value gold mono"> </div> <div class="sub"> </div> <dl class="svelte-idkh17"><div class="svelte-idkh17"><dt class="svelte-idkh17">filling at</dt><dd class="mono svelte-idkh17"> </dd></div> <div class="svelte-idkh17"><dt class="svelte-idkh17"> </dt><dd class="mono svelte-idkh17"> </dd></div> <!> <!></dl> <p class="note drain svelte-idkh17"> </p> <!></section>'),st=m('<p class="note">Reading posts…</p>'),rt=m(`<p class="note">Nothing is currently owed: no open post has any votes on it, so the two
7          Proof-of-Brain pools have nobody to divide among and simply keep growing.</p>`),lt=m(`<b class="warn svelte-idkh17"> </b> — the window
8            has closed and anyone may trigger the payout.`,1),ot=m('<p class="note dim">Sign in to settle a closed window from here.</p>'),it=m('<p class="note ok svelte-idkh17"> </p>'),nt=m('<button class="small"> </button>'),dt=m('<tr><td><a> </a> <span class="dim"> </span></td><td>
8<span class="pill svelte-idkh17"> </span></td><td class="num mono"> </td><td class="num mono gold"> </td><td> </td><td><!></td></tr>'),vt=m(`<p class="note"><b class="mono"> </b> <!> Each figure is the contract's own formula against today's balance, so it
9          moves as the pool fills and as new votes change the denominator.</p> <!> <!> <!> <div class="scroll"><table><thead><tr><th>post</th><th>pool</th><th class="num">rshares</th><th class="num">would take</th><th>settles</th><th></th></tr></thead><tbody></tbody></table></div>`,1),ct=m('<p class="note dim"> </p>'),ut=m(`<!> <!> <!> <div class="cards svelte-idkh17"></div> <section class="panel"><div class="label">Open posts and what they would take right now</div> <!></section> <section class="panel"><p class="note"><b>Why a pool can sit still.</b> A pool only pays when something claims from
10        it: a post's window closing, a mint being claimed, an LP claiming. Between
11        those it just grows. The L-Share pool is the exception in the other
12        direction — it also collects every slashed early end, every day of bleed and
13        every swept dead position, which is what funds rewards after emission ends
14        in year 75.</p> <!></section>`,1),ht=m(`<!> <div class="grid svelte-idkh17"><section class="panel intro svelte-idkh17"><h1 class="svelte-idkh17">Reward pools</h1> <p class="note">Every block reward is split four ways before anyone is paid. This is what is
15      sitting in each pool right now, how fast it fills, and what it gets divided
16      among. Balances are chain state; the split is the engine's own function —
17      the same one the contract runs.</p> <!></section> <!></div>`,1);function xt(va,ca){Ta(ca,!0);const f=T(()=>E.info),le=T(()=>E.ready&&e(f)&&e(f).genesis_height?Oa(e(f).genesis_height,e(f).height):null),ua=T(()=>e(f)?e(f).height-e(f).settled_height:0),Oe=T(()=>Math.floor(e(ua)/28800));let Be=b(null),Fe=b(0);ze(()=>{e(f)&&!e(Be)&&(o(Be,{viral:O(e(f).pool_viral),deep:O(e(f).pool_deep),lshare:O(e(f).pool_lshare),liq:O(e(f).pool_liquidity)},!0),o(Fe,Date.now(),!0))});const ha=T(()=>{var s,d,c,P;return e(f)?[{key:"viral",name:"Proof-of-Brain — viral",share:"12.5% of every block",balance:e(f).pool_viral,perDay:((s=e(le))==null?void 0:s.viral)??null,dividedLabel:"rshares voted on open 7-day posts",divided:e(f).rsh_viral,drains:"paid out when a post's 7-day window is settled"},{key:"deep",name:"Proof-of-Brain — deep",share:"37.5% of every block",balance:e(f).pool_deep,perDay:((d=e(le))==null?void 0:d.deep)??null,dividedLabel:"rshares voted on open 30-day posts",divided:e(f).rsh_deep,drains:"paid out when a post's 30-day window is settled"},{key:"lshare",name:"L-Share yield",share:"25% of every block",balance:e(f).pool_lshare,perDay:((c=e(le))==null?void 0:c.lshare)??null,dividedLabel:"active L-Shares earning",divided:e(f).total_shares,drains:"paid when a mint is claimed — and it is the ONLY pool that also RECEIVES, from every early-end slash, every day of bleed and every swept position"},{key:"liq",name:"Liquidity",share:"25% of every block",balance:e(f).pool_liquidity,perDay:((P=e(le))==null?void 0:P.liquidity)??null,dividedLabel:"loyalty-weighted pool shares",divided:e(f).amm_weight,drains:"paid when an LP claims or withdraws"}]:[]});let De=b(ia([])),Xe=b(!1);ze(()=>{E.ready&&(async()=>{try{o(De,await Ae.posts(100),!0)}catch{o(De,[],!0)}o(Xe,!0)})()});const oe=T(()=>e(De).filter(s=>!s.paid_out&&O(s.pending_payout)>0n).sort((s,d)=>O(d.pending_payout)>O(s.pending_payout)?1:-1)),pa=T(()=>e(oe).reduce((s,d)=>s+O(d.pending_payout),0n)),Ze=T(()=>e(oe).filter(s=>s.payable));let qe=b(null),ce=b(null);const Je={viral:"viral",deep:"deep",lshare:"lshare",liq:"liquidity"};let V=ia({viral:"",deep:"",lshare:"",liq:"",all:""}),Y=b(null),ue=b(null),He=b(null),Z=b(null);ze(()=>{var d;(d=E.info)==null||d.height;const s=Ae.backend;typeof s.query=="function"&&Ua(s.query.bind(s)).then(c=>o(Z,c,!0)).catch(()=>{})});let he=b(""),pe=b(""),Ie=b(""),Ue=b("5000"),z=b(!1),Te=b(null),ie=b(null);async function _a(){if(!$e){o(ie,"wallet mode only");return}o(z,!0),o(Te,null),o(ie,null);try{const s=await E.submit(()=>$e.rawCall(e(he).trim(),e(pe).trim(),e(Ie).trim(),Number(e(Ue))||5e3));s?o(ie,s,!0):o(Te,`${e(pe)} sent to ${e(he).slice(0,14)}…`)}catch(s){o(ie,s instanceof Error?s.message:String(s),!0)}finally{o(z,!1)}}const ea="vsc1BrBFAwZ3Mr8L4ijRqT9RPEPvhK9FWDaYSr";let Pe=b("27000"),_e=b(!1),Ce=b(null),fe=b(null);const me=T(()=>{if(!e(Z)||e(Z).reserveLc===0n||e(Z).reserveHbdMilli===0n)return null;try{const s=Ia(e(Pe)||"0");if(s==="0")return null;const c=(BigInt(s)*e(Z).reserveHbdMilli+e(Z).reserveLc-1n)/e(Z).reserveLc;if(c<=0n)return null;const P=Number(c);return{lcBase:s,milli:P,hbd:`${Math.floor(P/1e3)}.${String(P%1e3).padStart(3,"0")}`}}
17catch{return null}});async function fa(){if(!$e||!e(me))return;const s=e(me);o(_e,!0),o(Ce,null),o(fe,null);try{const d=await E.submit(()=>$e.seedNativePool(ea,s.lcBase,s.milli),{movesHbd:!0});d?o(fe,d,!0):o(Ce,`deposited ${e(Pe)} LASSECASH + ${s.hbd} HBD into the native pool`)}catch(d){o(fe,d instanceof Error?d.message:String(d),!0)}finally{o(_e,!1)}}async function aa(s){const d=(V[s]||"").trim();if(d){o(Y,s,!0),o(ue,null),o(He,null);try{const c=await E.submit(()=>Ae.fund(Je[s]??s,d));c?o(ue,c,!0):(o(He,`${d} LASSECASH into ${Je[s]??s}`),V[s]="")}catch(c){o(ue,c instanceof Error?c.message:String(c),!0)}finally{o(Y,null)}}}let ye=b(0);async function ma(s){const d=s.author+"/"+s.permlink;o(qe,d),o(ce,null);try{const c=await E.submit(()=>Ae.payout(s.author,s.permlink));c?o(ce,c,!0):(o(ye,e(ye)+1),o(De,await Ae.posts(100),!0))}catch(c){o(ce,c instanceof Error?c.message:String(c),!0)}finally{o(qe,null)}}function ya(s,d){return e(Be)?O(d)-(e(Be)[s]??0n):null}function ba(s,d){if(!s)return null;const c=O(d);return c<=0n?null:Ke(O(s)*100000000n/c)}var ta=ht(),sa=Le(ta);{let s=T(()=>`${Na}/rewards`);Wa(sa,{title:"Reward pools",description:"Where every emitted LASSECASH goes: the four reward pools, what is in each, how fast they fill and what divides them.",get canonical(){return e(s)},get image(){return Ra}})}var ra=r(sa,2),We=t(ra),ga=r(t(We),4);{var wa=s=>{var d=za(),c=t(d),P=r(t(c)),Re=t(P,!0);a(P),a(c);var be=r(c,2),ge=r(t(be)),je=t(ge,!0);a(ge),a(be);var we=r(be,2);{var ke=F=>{var W=Va(),Ve=t(W);a(W),g(()=>n(Ve,`accrual is ${e(Oe)??""} day${e(Oe)>1?"s":""} behind — nothing is
18            arriving until someone calls advance`)),h(F,W)},Ge=F=>{var W=Ya();h(F,W)};w(we,F=>{e(Oe)>=1?F(ke):F(Ge,-1)})}a(d),g((F,W)=>{n(Re,F),n(je,W)},[()=>e(f).height.toLocaleString(),()=>e(f).settled_height.toLocaleString()]),h(s,d)};w(ga,s=>{e(f)&&s(wa)})}a(We);var ka=r(We,2);{var Sa=s=>{var d=Ka();h(s,d)},xa=s=>{var d=ut(),c=Le(d);{var P=u=>{var i=Qa(),y=r(t(i),2),k=t(y,!0);a(y),Ee(2),a(i),g(D=>n(k,D),[()=>re(e(le).total)]),h(u,i)};w(c,u=>{e(le)&&u(P)})}var Re=r(c,2);{var be=u=>{var i=Xa(),y=r(t(i),4),k=t(y);ve(k);var D=r(k,2),I=t(D,!0);a(D),a(y);var C=r(y,2);{var U=x=>{var A=Qe(),H=t(A);a(A),g(()=>n(H,`Funded ${e(He)??""}. Watch the balances above move by exactly that.`)),h(x,A)};w(C,x=>{e(He)&&x(U)})}var R=r(C,2);{var N=x=>{var A=Me(),H=t(A,!0);a(A),g(()=>n(H,e(ue))),h(x,A)};w(R,x=>{e(ue)&&x(N)})}a(i),g(()=>{k.disabled=E.busy||e(Y)!==null,D.disabled=E.busy||e(Y)!==null||!V.all,n(I,e(Y)==="all"?"Funding…":"Fund all four")}),Ne("submit",y,x=>{x.preventDefault(),aa("all")}),se(k,()=>V.all,x=>V.all=x),h(u,i)};w(Re,u=>{E.account&&u(be)})}var ge=r(Re,2);{var je=u=>{var i=Za(),y=Le(i),k=r(t(y),2),D=r(t(k)),I=t(D);a(D),Ee(),a(k);var C=r(k,2),U=t(C),R=t(U);ve(R);var N=r(R,2),x=t(N);a(N);var A=r(N,2),H=t(A,!0);a(A),a(U),a(C);var J=r(C,2);{var ne=l=>{var _=Qe(),B=t(_,!0);a(_),g(()=>n(B,e(Ce))),h(l,_)};w(J,l=>{e(Ce)&&l(ne)})}var K=r(J,2);{var Q=l=>{var _=Me(),B=t(_,!0);a(_),g(()=>n(B,e(fe))),h(l,_)};w(K,l=>{e(fe)&&l(Q)})}a(y);var p=r(y,2),v=r(t(p),4),$=t(v);ve($);var q=r($,2);ve(q);var M=r(q,2);Ca(M);var de=r(M,2),j=t(de);ve(j);var G=r(j,2),ee=t(G,!0);a(G),a(de),a(v);var ae=r(v,2);{var Se=l=>{var _=Qe(),B=t(_,!0);a(_),g(()=>n(B,e(Te))),h(l,_)};w(ae,l=>{e(Te)&&l(Se)})}var S=r(ae,2);{var L=l=>{var _=Me(),B=t(_,!0);a(_),g(()=>n(B,e(ie))),h(l,_)};w(S,l=>{e(ie)&&l(L)})}a(p),g(l=>{n(I,`${l??""}…`),R.disabled=e(_e),n(x,`+ ${(e(me)?e(me).hbd:"—")??""} HBD`),A.disabled=e(_e)||!e(me),n(H,e(_e)?"Seeding…":"Seed"),$.disabled=e(z),q.disabled=e(z),M.disabled=e(z),j.disabled=e(z),G.disabled=e(z)||!e(he)||!e(pe),n(ee,e(z)?"Sending…":"Send call")},[()=>ea.slice(0,16)]),Ne("submit",C,l=>{l.preventDefault(),fa()}),se(R,()=>e(Pe),l=>o(Pe,l)),Ne("submit",v,l=>{l.preventDefault(),_a()}),se($,()=>e(he),l=>o(he,l)),se(q,()=>e(pe),l=>o(pe,l)),se(M,()=>e(Ie),l=>o(Ie,l)),se(j,()=>e(Ue),l=>o(Ue,l)),h(u,i)};w(ge,u=>{E.account&&$e&&u(je)})}var we=r(ge,2);na(we,21,()=>e(ha),u=>u.key,(u,i)=>{const y=T(()=>ya(e(i).key,e(i).balance)),k=T(()=>ba(e(i).perDay,e(i).divided));var D=tt(),I=t(D),C=t(I,!0);a(I);var U=r(I,2),R=t(U,!0);a(U);var N=r(U,2),x=t(N,!0);a(N);var A=r(N,2),H=t(A),J=r(t(H)),ne=t(J);a(J),a(H);var K=r(H,2),Q=t(K),p=t(Q,!0);a(Q);var v=r(Q),$=t(v,!0);a(v),a(K);var q=r(K,2);{var M=S=>{var L=Ja(),l=r(t(L),2),_=t(l);Ee(),a(l),a(L),g(()=>n(_,`${e(k)??""} `)),h(S,L)};w(q,S=>{e(k)&&S(M)})}var de=r(q,2);{var j=S=>{var L=et(),l=r(t(L),2);let _;var B=t(l);a(l),a(L),g(X=>{_=da(l,1,"mono svelte-idkh17",null,_,{up:e(y)>0n,down:e(y)<0n}),n(B,`${e(y)>0n?"+":""}${X??""}`)},[()=>Ke(e(y))]),h(S,L)};w(de,S=>{e(y)!==null&&S(j)})}a(A);
18var G=r(A,2),ee=t(G,!0);a(G);var ae=r(G,2);{var Se=S=>{var L=at(),l=t(L);ve(l);var _=r(l,2),B=t(_,!0);a(_),a(L),g(()=>{l.disabled=E.busy||e(Y)!==null,_.disabled=E.busy||e(Y)!==null||!V[e(i).key],n(B,e(Y)===e(i).key?"Funding…":"Fund this pool")}),Ne("submit",L,X=>{X.preventDefault(),aa(e(i).key)}),se(l,()=>V[e(i).key],X=>V[e(i).key]=X),h(S,L)};w(ae,S=>{E.account&&S(Se)})}a(D),g((S,L,l)=>{n(C,e(i).name),n(R,S),n(x,e(i).share),n(ne,`${L??""} / day`),n(p,e(i).dividedLabel),n($,l),n(ee,e(i).drains)},[()=>re(e(i).balance),()=>e(i).perDay?re(e(i).perDay):"—",()=>re(e(i).divided)]),h(u,D)}),a(we);var ke=r(we,2),Ge=r(t(ke),2);{var F=u=>{var i=st();h(u,i)},W=u=>{var i=rt();h(u,i)},Ve=u=>{var i=vt(),y=Le(i),k=t(y),D=t(k,!0);a(k);var I=r(k),C=r(I);{var U=p=>{var v=lt(),$=Le(v),q=t($);a($),Ee(),g(()=>n(q,`${e(Ze).length??""} can be settled now`)),h(p,v)};w(C,p=>{e(Ze).length>0&&p(U)})}Ee(),a(y);var R=r(y,2);{var N=p=>{var v=ot();h(p,v)};w(R,p=>{E.account||p(N)})}var x=r(R,2);{var A=p=>{var v=Me(),$=t(v,!0);a(v),g(()=>n($,e(ce))),h(p,v)};w(x,p=>{e(ce)&&p(A)})}var H=r(x,2);{var J=p=>{var v=it(),$=t(v);a(v),g(()=>n($,`Settled ${e(ye)??""} post${e(ye)>1?"s":""}. The author and their
19            curators are paid; you paid only the resource credits.`)),h(p,v)};w(H,p=>{e(ye)>0&&p(J)})}var ne=r(H,2),K=t(ne),Q=r(t(K));na(Q,21,()=>e(oe).slice(0,30),p=>p.author+"/"+p.permlink,(p,v)=>{var $=dt(),q=t($),M=t(q),de=t(M,!0);a(M);var j=r(M,2),G=t(j);a(j),a(q);var ee=r(q),ae=t(ee),Se=t(ae,!0);a(ae),a(ee);var S=r(ee),L=t(S,!0);a(S);var l=r(S),_=t(l,!0);a(l);var B=r(l);let X;var Aa=t(B,!0);a(B);var oa=r(B),$a=t(oa);{var Ba=xe=>{var te=nt(),Ye=t(te,!0);a(te),g(()=>{te.disabled=E.busy||e(qe)!==null,n(Ye,e(qe)===e(v).author+"/"+e(v).permlink?"Settling…":"Settle")}),Ha("click",te,()=>ma(e(v))),h(xe,te)};w($a,xe=>{e(v).payable&&E.account&&xe(Ba)})}a(oa),a($),g((xe,te,Ye,Da)=>{Ma(M,"href",`/@${e(v).author??""}/${e(v).permlink??""}`),n(de,e(v).title||e(v).permlink),n(G,`@${xe??""}`),n(Se,e(v).window),n(L,te),n(_,Ye),X=da(B,1,"svelte-idkh17",null,X,{warn:e(v).payable}),n(Aa,Da)},[()=>Fa(e(v).author),()=>re(e(v).rshares,0),()=>re(e(v).pending_payout),()=>e(v).payable?"ready now":e(v).payout_time.slice(0,10)]),h(p,$)}),a(Q),a(K),a(ne),g(p=>{n(D,p),n(I,` of the two Proof-of-Brain pools
20          is already spoken for by ${e(oe).length??""} open post${e(oe).length>1?"s":""}. `)},[()=>re(Ke(e(pa)))]),h(u,i)};w(Ge,u=>{e(Xe)?e(oe).length===0?u(W,1):u(Ve,-1):u(F)})}a(ke);var la=r(ke,2),La=r(t(la),2);{var Ea=u=>{var i=ct(),y=t(i);a(i),g(k=>n(y,`Watching since ${k??""}. The page re-reads
21          the chain every 30 seconds.`),[()=>new Date(e(Fe)).toLocaleTimeString()]),h(u,i)};w(La,u=>{e(Fe)&&u(Ea)})}a(la),h(s,d)};w(ka,s=>{e(f)?s(xa,-1):s(Sa)})}a(ra),h(va,ta),Pa()}qa(["click"]);export{xt 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.