Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add owner to StakeDeposited #52

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Conversation

alexkeating
Copy link
Collaborator

Description

  • Add owner to StakeDeposited

@alexkeating alexkeating marked this pull request as ready for review February 6, 2024 15:58
Copy link

github-actions bot commented Feb 6, 2024

Coverage after merging chore/add-owner-to-stake-deposited into main will be

100.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   UniStaker.sol99.31%95.83%100%100%383
   V3FactoryOwner.sol100%100%100%100%

Copy link
Collaborator

@wildmolasses wildmolasses left a comment

Choose a reason for hiding this comment

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

lgtm, just a note on sibling PR

@@ -426,7 +428,7 @@ contract UniStaker is INotifiableRewardReceiver, ReentrancyGuard, Multicall {
delegatee: _delegatee,
beneficiary: _beneficiary
});
emit StakeDeposited(_depositId, _amount, _amount);
emit StakeDeposited(msg.sender, _depositId, _amount, _amount);
Copy link
Collaborator

Choose a reason for hiding this comment

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

a note here that this will turn into deposit.owner when #43 is merged. whichever is merged first, we should take care to update in the correct place.

Suggested change
emit StakeDeposited(msg.sender, _depositId, _amount, _amount);
emit StakeDeposited(deposit.owner, _depositId, _amount, _amount);

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good call out @wildmolasses, looks like this one will make it in first so please be sure to rebase, thanks!

Copy link
Collaborator

@apbendi apbendi left a comment

Choose a reason for hiding this comment

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

Looks good thanks @alexkeating

@@ -426,7 +428,7 @@ contract UniStaker is INotifiableRewardReceiver, ReentrancyGuard, Multicall {
delegatee: _delegatee,
beneficiary: _beneficiary
});
emit StakeDeposited(_depositId, _amount, _amount);
emit StakeDeposited(msg.sender, _depositId, _amount, _amount);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good call out @wildmolasses, looks like this one will make it in first so please be sure to rebase, thanks!

@apbendi apbendi merged commit 6b2d20e into main Feb 7, 2024
4 checks passed
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.

3 participants