-
Notifications
You must be signed in to change notification settings - Fork 45
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
Locked SOV Contract #219
Locked SOV Contract #219
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! Would approve it, but waiting for the tests before doing so ;)
contracts/locked/LockedSOV.sol
Outdated
* @return _duration This returns 2419200. | ||
* @dev This is calculated based on 4 * 7 days * 24 hours * 60 minutes * 60 seconds. | ||
*/ | ||
function fourWeeks() public pure returns (uint256 _duration) { |
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.
why not just using a constant?
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.
Changed in 540d9bd
contracts/locked/LockedSOV.sol
Outdated
* @notice Stakes tokens for a user who already have a vesting created. | ||
* @dev The user should already have a vesting created, else this function will throw error. | ||
*/ | ||
function stakeTokens() external { |
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 would find it nice if there would be a function which
- withdraws the unlocked tokens and
- stakes the locked tokens
at once
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.
Added in a57eae8
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.
deposit
function is vulnerable
LockedSOV Contract General Explanation: https://docs.google.com/document/d/1nUzZSjmliifOPsY5SmSTUf_hCA1l_TIsoY9rPy8y7-Y/
A more detailed update on the explanation will be done soon.