Off-Chain Public Service Swaps
This revision is from 2025/07/29 06:48. You can Restore it.
You send your coin, we send Immortality coin.
{html}
<style>
body { font-family: Arial, sans-serif; background: #f2f2f2; padding: 2rem; text-align: center; }
form { background: #fff; padding: 2rem; max-width: 500px; margin: auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
input, select, button {
width: 100%; padding: 0.75rem; margin-top: 0.75rem;
border-radius: 4px; border: 1px solid #ccc;
}
button {
background: #007bff; color: white; border: none; cursor: pointer;
}
button:hover { background: #0056b3; }
</style>
</head>
<body>
<h2>IMT Public Swap Service</h2>
<form action="submit.php" method="POST">
<label>Select Coin to Receive:</label>
<select name="coin" required>
<option value="XMR">Monero (XMR)</option>
<option value="WOW">Wownero (WOW)</option>
<option value="FIRO">Firo (FIRO)</option>
<option value="ZEC">Zcash (ZEC)</option>
<option value="ARRR">Pirate Chain (ARRR)</option>
<option value="PART">Particl (PART)</option>
<option value="DASH">Dash (DASH)</option>
<option value="BEAM">Beam (BEAM)</option>
<option value="BTC">Bitcoin (BTC)</option>
<option value="ETH">Ethereum (ETH)</option>
</select>
<label>Amount in Monero (XMR):</label>
<input type="number" name="amount" id="amount" min="0" step="0.01" required>
<label>Estimated Equivalent:</label>
<input type="text" name="equivalent" id="equivalent" readonly>
<label>Your Return Address (in selected coin):</label>
<input type="text" name="return_address" required>
<p><strong>Send XMR to:</strong><br>89A1nYourStaticMoneroAddressGoesHere</p>
<button type="submit">Submit Swap Request</button>
</form>
<script>
const rates = {
XMR: 1, WOW: 200, FIRO: 5, ZEC: 3, ARRR: 8, PART: 1.5,
DASH: 4, BEAM: 10, BTC: 0.000015, ETH: 0.0003
};
const amountInput = document.getElementById('amount');
const coinSelect = document.querySelector('select[name="coin"]');
const equivalentField = document.getElementById('equivalent');
function updateEquivalent() {
const amt = parseFloat(amountInput.value || 0);
const coin = coinSelect.value;
const rate = rates[coin] || 1;
equivalentField.value = (amt * rate).toFixed(6) + ' ' + coin;
}
amountInput.addEventListener('input', updateEquivalent);
coinSelect.addEventListener('change', updateEquivalent);
</script>
{/HTML}
IMMORTALITY