forked from bitcoinafterlife/bal-welist-website
rename min_amount endpoint to min_deposit
This commit is contained in:
@@ -444,7 +444,7 @@ async function fetchData() {
|
||||
async function fetchMinAmount() {
|
||||
const chain = getChain();
|
||||
try {
|
||||
const r = await fetch('/min_amount/' + chain);
|
||||
const r = await fetch('/min_deposit/' + chain);
|
||||
const val = parseInt(await r.text(), 10);
|
||||
if (isNaN(val)) throw new Error('invalid');
|
||||
minAmount = val;
|
||||
|
||||
Reference in New Issue
Block a user