Skip to content

Commit

Permalink
fix: stakingPoolRequirementsUnmet condition (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
grezle authored Oct 18, 2022
1 parent b769d9c commit 081f974
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/staking/StakingPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ contract StakingPool is
modifier stakingPoolRequirementsUnmet() {
//slither-disable-next-line timestamp
require(
_hasTotalMinimumStake() &&
!_hasTotalMinimumStake() &&
(block.timestamp > _stakingPoolConfig.epochStartTimestamp),
"StakingPool: requirements unmet"
);
Expand Down
3 changes: 2 additions & 1 deletion test/contracts/staking/staking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,8 @@ describe('Staking Pool Tests', () => {

describe('withdraw without rewards', () => {
let epochStartTimestamp: number
const amount = BigNumber.from(MIN_TOTAL_POOL_STAKE)
// this amount must always be less than the MIN_TOTAL_POOL_STAKE for these tests
const amount = BigNumber.from(MIN_TOTAL_POOL_STAKE).div(2)

beforeEach(async () => {
epochStartTimestamp = (await getTimestampNow()) + START_DELAY
Expand Down

0 comments on commit 081f974

Please sign in to comment.