Skip to content

Feature Request: Include the slashed amount in slash event #9138

Closed
@calvinlauyh

Description

@calvinlauyh

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

types.EventTypeSlash,

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions