Close Keep before seizing signer bonds.
Close the keep releasing the signer bonds
@@ -372,6 +372,7 @@ library DepositUtils {
function seizeSignerBonds(Deposit storage _d) internal returns (uint256) {
uint256 _preCallBalance = address(this).balance;
IBondedECDSAKeep _keep = IBondedECDSAKeep(_d.keepAddress);
+ _keep.closeKeep();
_keep.seizeSignerBonds();
uint256 _postCallBalance = address(this).balance;
require(_postCallBalance > _preCallBalance, "No funds received, unexpected");
