INNER CODE UNIT · JavaScript

rng

pamgarcia1993/robinhood-lp-bot · legacy/bot.js:91

  const rng = (p) => p ? `${CH.fmtMcap(p.rangeMcapLow)} → ${CH.fmtMcap(p.rangeMcapHigh)}` : "?";
  await send([
    `<b>Konfirmasi mint · Robinhood v3</b>`,
    `${st.meta.symbol} · fee ${(st.chosen.fee / 10000).toFixed(2)}% · deposit <b>${eth} ETH</b> · width ${cfg.lp.widthPct}%`,
    pS ? `📊 MCAP now: <b>${CH.fmtMcap(pS.mcapNow)}</b>` : "",
    ``,
    `🛡 <b>Single-side ETH</b> — range ${rng(pS)}`,
    `   0% token. Fee jalan cuma kalau MCAP masuk range. Aman dari rug.`,
    ``,
    `🎯 <b>In-range</b> — range ${rng(pI)}`,
    `   swap ~<b>${pI?.swapPct ?? "?"}%</b> modal → ${st.meta.symbol} duluan. Fee LANGSUNG jalan,`,
    `   tapi lu langsung pegang token (rug = rugi ${pI?.swapPct ?? "?"}% instan).`,
  ].filter(Boolean).join("\n"), { reply_markup: { inline_keyboard: [
    [{ text: `🎯 In-range (swap ~${pI?.swapPct ?? "?"}%)`, callback_data: "mint:inrange" }],
    [{ text: "🛡 Single-side ETH", callback_data: "mint:single" }],
    [{ text: "❌ Cancel", callback_data: "cancel" }],
  ] } });
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…