fix: paginate weinfo times and read min deposit from ranking_info
- weinfo.html now pages times with the API's zero-based page offset instead of block heights\n- bal.js renders page metadata and hides dead next links on the last page\n- index.html and terms.html read amount from /ranking_info/{chain}
This commit is contained in:
@@ -712,8 +712,9 @@ async function fetchData() {
|
||||
|
||||
async function fetchMinAmount() {
|
||||
const chain = getChain();
|
||||
try {
|
||||
const r = await fetch('/min_deposit/' + chain);
|
||||
try {
|
||||
const r = await fetch('/ranking_info/' + chain);
|
||||
const data = await r.json();
|
||||
const val = parseInt(data.amount, 10);
|
||||
if (isNaN(val)) throw new Error('invalid');
|
||||
minAmount = val;
|
||||
|
||||
Reference in New Issue
Block a user