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:
2026-11-06 21:10:20 -04:00
parent 33df29b7a8
commit c87ce760e2
4 changed files with 44 additions and 23 deletions

View File

@@ -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;