vacuumlabs / adalite-backend-service

Icarus, a reference implementation for a lightweight wallet developed by the IOHK Engineering Team.
Apache License 2.0
2 stars 7 forks source link

Catalyst rewards not included in rewards balance #116

Closed refi93 closed 3 years ago

refi93 commented 3 years ago

We've got a report from a user participating in Catalyst voting that Adalite shows them a negative rewards balance. This is likely the result of the Catalyst rewards being recorded in a separate table. Allegedly, there is "treasury" table for that, which we currently don't include in our rewards balance computation: https://github.com/vacuumlabs/adalite-backend-service/blob/develop/src/db-api.js#L357

As a result, users that participated in Catalyst are unable to perform withdrawals in Adalite as the balance recorded in Adalite is misaligned with the real balance in the blockchain