Menu
Home
About
Our Role
Goals
The Team
Roadmap
Tokenomics
How To Buy
Knowledge Base
Contacts
Sitemap & Links
A.I.
Chart
Shop
IMMORTALITY
🏠
⬇️
Off-Chain Public Service Swaps
New name
B
I
U
S
link
image
code
HTML
list
Show page
Syntax
{html} <style> .swap_container { font-family: Arial, sans-serif; background: #fff; padding: 2rem; text-align: center; } .swap_container .swap_form { background: #fff; padding: 2rem; max-width: 90%; margin: auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 2rem; } .swap_container input, .swap_container select, .swap_container button { width: 100%; padding: 0.75rem; margin-top: 0.75rem; border-radius: 4px; border: 1px solid #ccc; box-sizing: border-box; } /* Honeypot styling - Must be invisible to humans but visible to bots */ .v-hidden { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; } .swap_container button { background: #007bff; color: white; border: none; cursor: pointer; font-size: 16px; font-weight: bold; } .swap_container button:hover { background: #0056b3; } .swap_container .send-address { background: #eef; padding: 0.75rem; border-radius: 4px; margin-top: 1rem; font-weight: bold; } .form-divider { border: 0; height: 1px; background: #e0e0e0; margin: 2rem 0; } </style> <div class="swap_container"> <form id="swapForm" action="submit.php" method="POST" class="swap_form"> <h3>You send your coin, we send Immortality Coin (IMT)</h3> <input type="hidden" name="swap_type" value="to_imt"> <div class="v-hidden" aria-hidden="true"> <input type="text" name="full_name_field" tabindex="-1" autocomplete="off"> <input type="checkbox" name="agree_to_terms_hidden" value="1" tabindex="-1" autocomplete="off"> </div> <input type="hidden" name="form_load_time" class="loadTimeField"> <input type="hidden" name="anti_spam_token" class="spamTokenField"> <label for="coin">Select coin you will send:</label> <select name="coin" id="coin" required> <option value="XMR">Monero (XMR)</option> <option value="ZEC">Zcash (ZEC)</option> <option value="BTC">Bitcoin (BTC)</option> <option value="ETH">Ethereum (ETH)</option> <option value="BNB">Binance Coin (BNB)</option> </select> <div class="send-address" id="sendTo"> <span id="sendText">Send Monero to this address:</span><br> <span id="address" style="font-size: 16px; word-break: break-all; overflow-wrap: break-word; font-family: monospace;">42WrVEPfDFhdMY93D65nLajJYtd2xA9Dbea6y4dAs8MJELfHCWsfr9AGfc6P52u91XNeCm5m5QkU5NWzKcXS5BXJGDdcKZG</span> </div> <label for="amount">Amount (in selected coin):</label> <input type="number" name="amount" id="amount" min="0.0001" step="0.0001" value="1.00" required> <label for="equivalent">You get in IMT:</label> <input type="text" name="equivalent" id="equivalent" value="100.00 IMT" readonly> <label for="return_address">Return Address, where should we send your IMT (BEP20):</label> <input type="text" name="return_address" id="return_address" placeholder="0x..." required> <button type="submit" id="submitBtn">Submit Swap Request</button> </form> <hr class="form-divider"> <form id="swapFromImtForm" action="submit.php" method="POST" class="swap_form"> <h3>You send Immortality Coin (IMT), we send your preferred coin</h3> <input type="hidden" name="swap_type" value="from_imt"> <div class="v-hidden" aria-hidden="true"> <input type="text" name="full_name_field" tabindex="-1" autocomplete="off"> <input type="checkbox" name="agree_to_terms_hidden" value="1" tabindex="-1" autocomplete="off"> </div> <input type="hidden" name="form_load_time" class="loadTimeField"> <input type="hidden" name="anti_spam_token" class="spamTokenField"> <label for="imt_amount">Amount of IMT you will send:</label> <input type="number" name="imt_amount" id="imt_amount" min="1" step="1" value="1000" required> <label for="receive_coin">Select coin you want to receive:</label> <select name="receive_coin" id="receive_coin" required> <option value="XMR">Monero (XMR)</option> <option value="ZEC">Zcash (ZEC)</option> <option value="BTC">Bitcoin (BTC)</option> <option value="ETH">Ethereum (ETH)</option> <option value="BNB">Binance Coin (BNB)</option> </select> <div class="send-address" id="sendImtTo"> <span>Send IMT (BEP20) to this address:</span><br> <span style="font-size: 16px; word-break: break-all; font-family: monospace;">0x90ADd8453D8Cd3F1c3FF336F9C07de6a63C0E979</span> </div> <label for="receive_equivalent">You get in selected coin:</label> <input type="text" name="receive_equivalent" id="receive_equivalent" readonly> <label for="return_address_coin">Return Address, where should we send your coin:</label> <input type="text" name="return_address" id="return_address_coin" placeholder="Your coin wallet address..." required> <button type="submit">Submit Swap Request</button> </form> <small>***Fees: All fees are third party fees, gas, miners of the respective coins only. No additional fees. <br>***Rates are approximates from time of submission. <br>***48 hours turnaround time </small> <script src="https://cdn.jsdelivr.net/npm/ethers@5/dist/ethers.umd.min.js"></script> <script> const rates = { BTC: 103077778404, ETH: 57432099870, XMR: 9422984756, ZEC: 1324748634, BNB: 21224535719 }; const addresses = { XMR: "42WrVEPfDFhdMY93D65nLajJYtd2xA9Dbea6y4dAs8MJELfHCWsfr9AGfc6P52u91XNeCm5m5QkU5NWzKcXS5BXJGDdcKZG", ZEC: "u1euehvjpyj3qt9rvee6u4fjqy80c0xg4test8ypprpgk3nhste550jzurlxcaxjsqv0k4plkk7tunfx55guxag7vdv2lquapcn915pdkzy56kcaljqsg7ypfqc4fesfzh32tw0cv6kjcd5h2efc3lukjr9vaa2xn99hqjtwg5c304qh2jcsfkdpnkx2gxvlayn3f35mqs9dpxjtj7st5", BTC: "1BP42g2tQnAmGguea9kjfQuiJrcphDoGPr", ETH: "0x7e7Ca71BDD4d3c67bB73E9b2AAaf7be165cDFBfa", BNB: "0x90ADd8453D8Cd3F1c3FF336F9C07de6a63C0E979", IMT_DEPOSIT: "0x90ADd8453D8Cd3F1c3FF336F9C07de6a63C0E979" // Used for the "Sell IMT" form }; const coinNames = { XMR: "Monero", ZEC: "Zcash", BTC: "Bitcoin", ETH: "Ethereum", BNB: "Binance Coin" }; // Anti-Spam Logic (Applies to both forms) const genToken = () => btoa("IMT_SECURE_" + new Date().getFullYear()); document.querySelectorAll('.loadTimeField').forEach(f => f.value = Date.now()); document.querySelectorAll('.spamTokenField').forEach(f => f.value = genToken()); // --- FORM 1 LOGIC (Coin -> IMT) --- const coinSelect = document.getElementById('coin'); const amountInput = document.getElementById('amount'); const equivalentField = document.getElementById('equivalent'); const addressSpan = document.getElementById('address'); const sendText = document.getElementById('sendText'); const form1 = document.getElementById('swapForm'); function updateView1() { const coin = coinSelect.value; const amt = parseFloat(amountInput.value || 0); const rate = rates[coin] || 1; const imtEquivalent = (amt * rate).toFixed(0); equivalentField.value = imtEquivalent + " IMT"; addressSpan.innerText = addresses[coin] || "—"; sendText.innerText = "Send " + (coinNames[coin] || coin) + " to this address:"; } coinSelect.addEventListener('change', updateView1); amountInput.addEventListener('input', updateView1); form1.addEventListener('submit', e => { e.preventDefault(); const coin = coinSelect.value; const addr = addresses[coin]; const amt = amountInput.value; let uri = ""; switch (coin) { case "BTC": uri = `bitcoin:${addr}?amount=${amt}`; break; case "XMR": uri = `monero:${addr}?tx_amount=${amt}`; break; case "ZEC": uri = `zcash:${addr}?amount=${amt}`; break; case "ETH": case "BNB": const wei = ethers.utils.parseUnits(amt, "ether").toString(); uri = `ethereum:${addr}?value=${wei}`; break; } if (uri) window.location.href = uri; setTimeout(() => form1.submit(), 2000); }); // --- FORM 2 LOGIC (IMT -> Coin) --- const imtAmountInput = document.getElementById('imt_amount'); const receiveCoinSelect = document.getElementById('receive_coin'); const receiveEquivalentField = document.getElementById('receive_equivalent'); const form2 = document.getElementById('swapFromImtForm'); function updateView2() { const coin = receiveCoinSelect.value; const imtAmt = parseFloat(imtAmountInput.value || 0); const rate = rates[coin] || 1; // Calculate equivalent coin amount based on IMT sent const coinEquivalent = (imtAmt / rate).toFixed(8); // 8 decimals for crypto receiveEquivalentField.value = coinEquivalent + " " + coin; } receiveCoinSelect.addEventListener('change', updateView2); imtAmountInput.addEventListener('input', updateView2); form2.addEventListener('submit', e => { e.preventDefault(); // Try to open user's Web3 wallet to send IMT (BEP20) const imtAddress = addresses.IMT_DEPOSIT; const uri = `ethereum:${imtAddress}`; window.location.href = uri; setTimeout(() => form2.submit(), 2000); }); // Initialize both views window.addEventListener('DOMContentLoaded', () => { updateView1(); updateView2(); }); </script> </div> {/html}
Password
Summary of changes
📜
⏱️
⬆️