File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -892,14 +892,15 @@ contract VaultHub is PausableUntilWithRoles {
892892 VaultConnection storage connection = _checkConnectionAndOwner (_vault);
893893 VaultRecord storage record = _vaultRecord (_vault);
894894
895- uint256 minPartialAmountInGwei = type ( uint256 ).max ;
895+ bool hasPartialWithdrawals = false ;
896896 for (uint256 i = 0 ; i < _amountsInGwei.length ; i++ ) {
897- if (_amountsInGwei[i] > 0 && _amountsInGwei[i] < minPartialAmountInGwei) {
898- minPartialAmountInGwei = _amountsInGwei[i];
897+ if (_amountsInGwei[i] > 0 ) {
898+ hasPartialWithdrawals = true ;
899+ break ;
899900 }
900901 }
901902
902- if (minPartialAmountInGwei < type ( uint256 ).max ) {
903+ if (hasPartialWithdrawals ) {
903904 _requireFreshReport (_vault, record);
904905
905906 /// @dev NB: Disallow partial withdrawals when the vault has obligations shortfall in order to prevent the
You can’t perform that action at this time.
0 commit comments