-
Notifications
You must be signed in to change notification settings - Fork 1
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
Sm 352 seeker staking #172
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work 👍
dadef6a
to
3b38c2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow awesome!!! Very cool PR!!! I am glad to review this PR! Thanks Nick!!!!!
StakedErrors err = _isSeekerStakedError(node, seeker.seekerId); | ||
if (err == StakedErrors.NIL) { | ||
_unstakeSeeker(node, seeker.seekerId); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I dont think we should auto unstake for them. They should do this themselves, or just transfer the seeker ownership. This code needs a comment to warn users, here or in the @notice
comment. But I think we should just revert here instead of auto unstake for the user. It makes the code clearer and be strict for what it should do. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually did this on Johns recommendation, I think I tend to agree with your pov though. #172 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the user should have to unstake
then stake
again (2 transactions) just to move their staked seeker.
I agree that the @notice comment should mention that it will unstake the seeker if it is already staked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!!! GREAT PR!!!!
Implements the interface and contract for Seeker Staking.