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

check rewardDepositors amount is not too big #66

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

orenyodfat
Copy link
Contributor

No description provided.

@orenyodfat orenyodfat requested a review from shayzluf July 26, 2021 07:44
@orenyodfat orenyodfat changed the title check the amount is not too big check rewardDepositors amount is not too big Jul 26, 2021
Copy link
Collaborator

@jellegerbrandy jellegerbrandy 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 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");
Copy link
Collaborator

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

Copy link
Contributor Author

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)

Copy link
Contributor

@shayzluf shayzluf left a comment

Choose a reason for hiding this comment

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

lgtm

@orenyodfat orenyodfat merged commit 4df03fa into develop Jul 29, 2021
shayzluf pushed a commit that referenced this pull request Jan 16, 2022
* check the amount is not too big

* MINIMUM_DEPOSIT
@jellegerbrandy jellegerbrandy deleted the rewardDepositorConstraints branch May 25, 2022 14:23
jellegerbrandy added a commit that referenced this pull request Dec 4, 2023
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