Check pushFundsToKeepGroup zero case
In order to rely less on the external implementation's functionality in case a zero parameter is received,
ensure that returnPartialSignerBonds is not called
with a zero value.
@@ -438,10 +438,13 @@ library DepositUtils {
/// @return True if successful, otherwise revert.
function pushFundsToKeepGroup(Deposit storage _d, uint256 _ethValue) internal returns (bool) {
require(address(this).balance >= _ethValue, "Not enough funds to send");
+ if(_ethValue > 0){
IBondedECDSAKeep _keep = IBondedECDSAKeep(_d.keepAddress);
_keep.returnPartialSignerBonds.value(_ethValue)();
return true;
}
+ return false;
+ }
/// @notice Get TBTC amount required for redemption assuming _redeemer
/// is this deposit's TDT holder.
