Every Lunarian mint uses 100% of its SOL to market-buy $LUNA on the open market and burn it β permanently reducing supply. No treasury cut. Every buy and every burn is on-chain and verifiable below.
| When | SOL | $LUNA burned | Buy tx | Burn tx |
|---|---|---|---|---|
| loading⦠| ||||
This is the real server-side function that executes on every mint β market-buy, then burn. Nothing hidden.
// 100% buyback-and-burn β runs on every mint
async function swapAndBurn(lamports) {
// 1) market-BUY $LUNA with the mint's SOL, via Jupiter
const quote = await fetch(`${JUP}/quote?inputMint=SOL&outputMint=$LUNA&amount=${lamports}&slippageBps=500`);
const swapTx = await fetch(`${JUP}/swap`, { quoteResponse: quote, userPublicKey: TREASURY });
treasury.sign(swapTx); await send(swapTx); // SOL -> $LUNA (on-chain, verifiable)
// 2) BURN every $LUNA we just bought (SPL burn -> total supply actually drops)
const bought = balanceAfter - balanceBefore;
const burnIx = createBurnInstruction(lunaAccount, LUNA_MINT, treasury, bought);
treasury.sign(burnTx); await send(burnTx); // $LUNA -> destroyed forever
return { swapSig, burnSig, lunaBurned: bought }; // both signatures logged + shown above
}