do not sync trade wallet on deletion if deposit not requested

This commit is contained in:
woodser 2024-02-25 11:08:58 -05:00
parent be90b317f2
commit 2c0275e336

View File

@ -949,7 +949,7 @@ public abstract class Trade implements Tradable, Model {
}
// wallet must be synced
if (!isSyncedWithinTolerance()) {
if (isDepositRequested() && !isSyncedWithinTolerance()) {
log.warn("Wallet is not synced for {} {}, syncing", getClass().getSimpleName(), getId());
syncWallet(true);
}