Skip to content

Commit

Permalink
add val address
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Jan 30, 2024
1 parent d498f07 commit 136654f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions staking.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ class StakingPage {
"status": val.status,
"tokens": parseFloat(val.tokens)/1e18,
"delegator_share": parseFloat(val.delegator_shares)/parseFloat(val.tokens),
"update_time": val.commission.update_time
"update_time": val.commission.update_time,
"val_address": val.operator_address
};
rows2.push( row);
console.log("val", i, row);
}
rows2.sort((a,b)=>{return -a.tokens+b.tokens;});
console.log(rows2);
entry.appendChild(makeTableElement2(rows2, ["moniker", "address", "jailed", "status", "tokens", "delegator_share", "update_time"]));
entry.appendChild(makeTableElement2(rows2, ["moniker", "address", "jailed", "status", "tokens", "delegator_share", "update_time","val_address"]));
}
}

Expand Down

0 comments on commit 136654f

Please sign in to comment.