Skip to content

Add totalStake to Staked and Unstaked events#306

Merged
bbenligiray merged 2 commits intomainfrom
add-totalstake-to-logs
Jul 7, 2021
Merged

Add totalStake to Staked and Unstaked events#306
bbenligiray merged 2 commits intomainfrom
add-totalstake-to-logs

Conversation

@bbenligiray
Copy link
Copy Markdown
Member

Title says all, just a small addition. stake() and unstake() update totalStake, so we want to emit it in the event for consistency.

@bbenligiray bbenligiray requested a review from acenolaza July 6, 2021 18:08
@bbenligiray bbenligiray self-assigned this Jul 6, 2021
Copy link
Copy Markdown
Contributor

@acenolaza acenolaza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

I'm just wondering if it would be useful to also have in these events the user.unstaked value that tells how much the user has for staking/withdrawal after the stake/unstake action.

@bbenligiray
Copy link
Copy Markdown
Member Author

I'm just wondering if it would be useful to also have in these events the user.unstaked value that tells how much the user has for staking/withdrawal after the stake/unstake action.

Definitely, made a new commit

@bbenligiray bbenligiray requested a review from acenolaza July 6, 2021 20:20
Copy link
Copy Markdown
Contributor

@acenolaza acenolaza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@bbenligiray bbenligiray merged commit cdf01b8 into main Jul 7, 2021
@bbenligiray bbenligiray deleted the add-totalstake-to-logs branch July 7, 2021 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants