Skip to content

Commit

Permalink
Add total stakes to the explorer registration page
Browse files Browse the repository at this point in the history
  • Loading branch information
Alenar committed Aug 10, 2023
1 parent b0beaa6 commit 2fff094
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mithril-explorer/src/app/registrations/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,16 @@ export default function Registrations() {
</tr>
<tr>
<td><strong>Signing at epoch:</strong></td>
<td>{signingEpoch}</td>
<td>{signingEpoch ?? '?'}</td>
</tr>
<tr>
<td><strong>Number of signers:</strong></td>
<td>{registrations?.length ?? 0}</td>
</tr>
<tr>
<td><strong>Total stakes:</strong></td>
<td><Stake lovelace={registrations?.reduce((acc, reg) => acc + reg.stake, 0) ?? 0}/></td>
</tr>
</tbody>
</Table>
</Row>
Expand Down

0 comments on commit 2fff094

Please sign in to comment.