There is limit of maximum and minimum amount that can be deposit into `StakingPool.sol`. `StakingPool.sol::canDeposit` function will check if there is possibility of deposit or not. but the canDeposit function
doesn't check if the there is space for deposit and that space is in the correct limit bound(max and min), this wrong value will be reason that user think it can deposit but actually it can't be able due to less amount than minimum deposit limitation.
returning wrong value.
Manual Review, Visual Studio Code
check the return value against minimum deposit amount that allowed in StakingPool. and return correct space limit.
```solidity
function canDeposit() external view returns (uint256) {
uint256 max = getMaxDeposits();
if (max <= totalStaked) {
return 0;
} else {
-- return max - totalStaked;
++uint256 amount = max - totalStaked;
++ if(amount < getMinDeposit()) return 0;
++ return amount;
}
}
```
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.