Granola-Team / mina-block-explorer

Web application for the Mina blockchain
Apache License 2.0
8 stars 6 forks source link

Problem: the (next)stakes ledger pages uses `balance` for the `STAKE` column #625

Closed trevorbernard closed 5 months ago

trevorbernard commented 5 months ago

The total stake for an account can be queried with the following GQL:

{
  stakes(query:{epoch: 77}) {
    delegationTotals {
      totalDelegated
    }
  }
}

Use total delegated rather than the balance

jhult commented 5 months ago

Relates to https://github.com/Granola-Team/mina-indexer/issues/890