0g-chain/x/incentive/spec/03_messages.md
Denali Marsh 2d7f5c4080
[R4R] Better docs (#541)
* update sidebar order

* update event backticks

* fix broken links

* fix spelling
2020-06-03 14:54:31 -04:00

493 B

Messages

Users claim rewards using a MsgClaimReward.

// MsgClaimReward message type used to claim rewards
type MsgClaimReward struct {
	Sender sdk.AccAddress `json:"sender" yaml:"sender"`
	Denom  string         `json:"denom" yaml:"denom"`
}

State Modifications

  • Accumulated rewards for active claims are transferred from the kavadist module account to the users account as vesting coins
  • The corresponding claim object(s) are deleted from the store