mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
2d7f5c4080
* update sidebar order * update event backticks * fix broken links * fix spelling
21 lines
493 B
Markdown
21 lines
493 B
Markdown
<!--
|
|
order: 3
|
|
-->
|
|
|
|
# Messages
|
|
|
|
Users claim rewards using a `MsgClaimReward`.
|
|
|
|
```go
|
|
// 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
|