Distribution Total will always be empty in emitted events #720
Labels
good first issue
Good for newcomers
scope: UI
Addressing UX changes and improvements to user interface
source: audit
To indicate an issue found during an audit.
fpTokens are retrieved to emit events after all funds are already sent out, so it should always be empty
interchain-security/x/ccv/consumer/keeper/distribution.go
Line 21 in 463ec20
This function sends all funds out of the FeeCollector ModuleAccount:
interchain-security/x/ccv/consumer/keeper/distribution.go
Line 53 in 463ec20
This then gets called after which should return empty coins:
interchain-security/x/ccv/consumer/keeper/distribution.go
Line 131 in 463ec20
Thus this event is always going to just emit empty coins on the DistributionTotal attribute:
interchain-security/x/ccv/consumer/keeper/distribution.go
Line 145 in 463ec20
The text was updated successfully, but these errors were encountered: