rename min_amount endpoint to min_deposit
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user