rename min_amount endpoint to min_deposit

This commit is contained in:
2026-07-05 20:47:12 -04:00
parent 2077b5b931
commit ea66de0693
2 changed files with 2 additions and 2 deletions

View File

@@ -444,7 +444,7 @@ async function fetchData() {
async function fetchMinAmount() { async function fetchMinAmount() {
const chain = getChain(); const chain = getChain();
try { try {
const r = await fetch('/min_amount/' + chain); const r = await fetch('/min_deposit/' + chain);
const val = parseInt(await r.text(), 10); const val = parseInt(await r.text(), 10);
if (isNaN(val)) throw new Error('invalid'); if (isNaN(val)) throw new Error('invalid');
minAmount = val; minAmount = val;

View File

@@ -177,7 +177,7 @@ footer a{color:var(--accent);text-decoration:none}
(async function() { (async function() {
const chain = location.hash ? location.hash.slice(1) : 'bitcoin'; const chain = location.hash ? location.hash.slice(1) : 'bitcoin';
try { try {
const r = await fetch('/min_amount/' + chain); const r = await fetch('/min_deposit/' + chain);
const val = parseInt(await r.text(), 10); const val = parseInt(await r.text(), 10);
if (!isNaN(val)) { if (!isNaN(val)) {
document.getElementById('thr-min').textContent = Number(val).toLocaleString('en-US'); document.getElementById('thr-min').textContent = Number(val).toLocaleString('en-US');