From 5859bbebcf7fe8c09e9ceb87ae3382a41cd120d2 Mon Sep 17 00:00:00 2001 From: Kirill Fedoseev Date: Wed, 30 Aug 2023 08:23:50 -0500 Subject: [PATCH] Remove redundant zero check --- src/zkbob/utils/ZkBobAccounting.sol | 1 - 1 file changed, 1 deletion(-) diff --git a/src/zkbob/utils/ZkBobAccounting.sol b/src/zkbob/utils/ZkBobAccounting.sol index 400c998..bc5e3a9 100644 --- a/src/zkbob/utils/ZkBobAccounting.sol +++ b/src/zkbob/utils/ZkBobAccounting.sol @@ -212,7 +212,6 @@ contract ZkBobAccounting is IZkBobAccounting, Ownable { require(_dailyUserDepositCap >= _depositCap, "ZkBobAccounting: daily user deposit cap too low"); require(_dailyDepositCap >= _dailyUserDepositCap, "ZkBobAccounting: daily deposit cap too low"); require(_tvlCap >= _dailyDepositCap, "ZkBobAccounting: tvl cap too low"); - require(_dailyWithdrawalCap > 0, "ZkBobAccounting: zero daily withdrawal cap"); require( _dailyUserDirectDepositCap >= _directDepositCap, "ZkBobAccounting: daily user direct deposit cap too low" );