Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions script/StakeFactory.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ contract StakeFactoryScript is ScriptBase {

uint256 stakeNeeded = _checkCurrentStake(stakeAmountWei);

if (stakeNeeded < 0) {
if (stakeNeeded == 0) {
console.log("Factory already has enough stake");
return;
}
Expand Down Expand Up @@ -75,7 +75,7 @@ contract StakeFactoryScript is ScriptBase {

uint256 currentStake = factoryDepositInfo.stake;

if (currentStake > requiredStakeAmountWei) {
if (currentStake >= requiredStakeAmountWei) {
console.log("Factory already has enough stake: ", currentStake);
stakeNeeded = 0;
} else {
Expand Down
4 changes: 2 additions & 2 deletions script/StakeWebAuthnFactory.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ contract StakeWebAuthnFactoryScript is ScriptBase {

uint256 stakeNeeded = _checkCurrentStake(stakeAmountWei);

if (stakeNeeded < 0) {
if (stakeNeeded == 0) {
console.log("Factory already has enough stake");
return;
}
Expand Down Expand Up @@ -75,7 +75,7 @@ contract StakeWebAuthnFactoryScript is ScriptBase {

uint256 currentStake = factoryDepositInfo.stake;

if (currentStake > requiredStakeAmountWei) {
if (currentStake >= requiredStakeAmountWei) {
console.log("WebAuthn Factory already has enough stake: ", currentStake);
stakeNeeded = 0;
} else {
Expand Down
Loading