-
Notifications
You must be signed in to change notification settings - Fork 11
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
StakingEscrow: function to wrap and topUp stake in threshold staking … #122
Conversation
55d2ecb
to
5034202
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.
🎸 - very minor comment. Looks great!
vendingMachine.wrap(wrappedTokenAmount); | ||
tToken.approve(address(tStaking), tTokenAmount); | ||
tStaking.topUp(info.stakingProvider, uint96(tTokenAmount)); |
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.
😍
StakerInfo storage info = stakerInfo[msg.sender]; | ||
require(info.stakingProvider != address(0), "There is no stake in T staking contract"); | ||
require( | ||
tStaking.stakedNu(info.stakingProvider) == 0, |
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.
Is it possible that stakedNu()
will be removed at some point?
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.
yep, it will be in second upgrade for threshold staking contract for removing legacy
87ad4b8
to
29b227c
Compare
…contract without withdrawing to staker's account
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
…contract without withdrawing to staker's account