-
Notifications
You must be signed in to change notification settings - Fork 48
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
check rewardDepositors amount is not too big #66
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.
looks good to me
@@ -601,6 +603,7 @@ contract HATVaults is Governable, HATMaster { | |||
**/ | |||
function deposit(uint256 _pid, uint256 _amount) external { | |||
require(!poolDepositPause[_pid], "deposit paused"); | |||
require(_amount >= MINIMUM_DEPOSIT, "amount less than 1e6"); |
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.
seems to me that if you add the check to rewardDepositors you do not need it here
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.
setting minimum deposit as some other advantages (e.g no need to deal with dust)
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
* check the amount is not too big * MINIMUM_DEPOSIT
No description provided.