diff --git a/crates/erc20_payment_lib/src/sender/batching.rs b/crates/erc20_payment_lib/src/sender/batching.rs index bfc30cab..64cc5a74 100644 --- a/crates/erc20_payment_lib/src/sender/batching.rs +++ b/crates/erc20_payment_lib/src/sender/batching.rs @@ -84,7 +84,9 @@ pub async fn gather_transactions_pre( } } if let Some(deposit_id) = f.deposit_id.as_ref() { - if f.deposit_finish > 0 { + if f.deposit_finish > 0 && + Address::from_str(&f.receiver_addr).ok() == Some(Address::zero()) + && U256::from_dec_str(&f.token_amount).ok() == Some(U256::zero()) { log::info!( "Creating close deposit transaction for deposit id: {}", deposit_id