Skip to content

Ensure totalAppRewardAmount never exceeds total issuance #4747

@adetokunbo

Description

@adetokunbo

Add an assertion in DbScanAppRewardStore that checks that the totalAppRewardAmount <= totalIssuance up to a small configurable tolerance (initially set to 0.001)
source

Make sure to never write any data if that assertion is false, as otherwise a restart of the SV app might nevertheless believe everything is in order and continue with the faulty reward issuance.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions