fix MIN_EXT_AMOUNT_LIMIT check

This commit is contained in:
Drygin 2022-01-26 15:41:30 +03:00
parent 448ec8c1ae
commit 9cecb7b3ec

View File

@ -296,7 +296,7 @@ contract TornadoPool is MerkleTreeWithHistory, IERC20Receiver, ReentrancyGuard,
} }
function _configureLimits(uint256 _minimalWithdrawalAmount, uint256 _maximumDepositAmount) internal { function _configureLimits(uint256 _minimalWithdrawalAmount, uint256 _maximumDepositAmount) internal {
require(_minimalWithdrawalAmount < MIN_EXT_AMOUNT_LIMIT, "minimalWithdrawal over limit"); require(_minimalWithdrawalAmount <= MIN_EXT_AMOUNT_LIMIT, "minimalWithdrawal over limit");
minimalWithdrawalAmount = _minimalWithdrawalAmount; minimalWithdrawalAmount = _minimalWithdrawalAmount;
maximumDepositAmount = _maximumDepositAmount; maximumDepositAmount = _maximumDepositAmount;
} }