Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chg: apply min deposit as fraction of the total supply too
  • Loading branch information
Denis Ermolin
Denis Ermolin committed Aug 27, 2021
commit 31055c11c480d83c7a503010426418c4a44c3a1f
2 changes: 1 addition & 1 deletion contracts/staking/stakeManager/StakeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ contract StakeManager is
bytes memory signerPubkey
) public onlyWhenUnlocked {
require(currentValidatorSetSize() < validatorThreshold, "no more slots");
require(amount >= minDeposit, "not enough deposit");
require(amount >= validatorState.amount.mul(minBidStakeFraction).div(MIN_BID_PRECISION), "not enough deposit");
_transferAndTopUp(user, msg.sender, heimdallFee, amount);
_stakeFor(user, amount, acceptDelegation, signerPubkey);
}
Expand Down