EmerisHQ / demeris-backend

Monorepo containing all the Demeris backend code and infrastructure definitions.
GNU Affero General Public License v3.0
8 stars 1 forks source link

Fix duplicated staking balances in api-server #786

Closed Pitasi closed 2 years ago

Pitasi commented 2 years ago

The recent PR https://github.com/EmerisHQ/demeris-api-server/pull/135 updated the calculation for taking into account slashed validators.

We deployed the feature under a feature flag to test it, and found some problems. See this address:

According to mintscan (https://www.mintscan.io/sifchain/account/sif1qsqk07wmuc2f3hwtph3dk4sv9ndjyz3e8zy6n2) the new staking balance is correct, but the other balances are duplicated.