Closed
Description
Summary
Right now the slash
event returns only the address, current power and reason for slashing. However, it does not cover how much is slashed.
Problem Definition
I am working on an chain data indexer, and I am unable to get the slashed amount unless I port the logic and calcuate. However, doing my own calculation may introduce inaccuracy and inconsistent with the Cosmos SDK.
Proposal
I would like to request adding a new key-value pair to the slash
event:
burned
- which is the token burn from the slashing
In the current implementation, the Slash
method of StakingKeeper
is called after slash
event is emitted
cosmos-sdk/x/slashing/keeper/keeper.go
Line 70 in b219c54
If we can update the slash
keeper's Slash
method to return the slashed token, then it can be included in the event.
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned
Metadata
Metadata
Assignees
Labels
No labels
Activity