diff --git a/core/src/main/java/bisq/core/dao/burningman/DelayedPayoutTxReceiverService.java b/core/src/main/java/bisq/core/dao/burningman/DelayedPayoutTxReceiverService.java index 22d7432b350..c792c06138b 100644 --- a/core/src/main/java/bisq/core/dao/burningman/DelayedPayoutTxReceiverService.java +++ b/core/src/main/java/bisq/core/dao/burningman/DelayedPayoutTxReceiverService.java @@ -71,14 +71,13 @@ public static boolean isHotfixActivated() { // than DPT_MIN_REMAINDER_TO_LEGACY_BM, otherwise we spend it as miner fee. // 25000 sat is about 5 USD @ 20k price. We use a rather high value as we want to avoid that the legacy BM // gets still payouts. - private static final long DPT_MIN_REMAINDER_TO_LEGACY_BM = 25000; + private static final long DPT_MIN_REMAINDER_TO_LEGACY_BM = isHotfixActivated() ? 25000 : 50000; // Min. fee rate for DPT. If fee rate used at take offer time was higher we use that. // We prefer a rather high fee rate to not risk that the DPT gets stuck if required fee rate would // spike when opening arbitration. private static final long DPT_MIN_TX_FEE_RATE = 10; - private final DaoStateService daoStateService; private final BurningManService burningManService; private int currentChainHeight; @@ -152,7 +151,9 @@ public List> getReceivers(int burningManSelectionHeight, // If we remove outputs it will be spent as miner fee. long minOutputAmount = Math.max(DPT_MIN_OUTPUT_AMOUNT, txFeePerVbyte * 32 * 2); // Sanity check that max share of a non-legacy BM is 20% over MAX_BURN_SHARE (taking into account potential increase due adjustment) - long maxOutputAmount = Math.round(spendableAmount * (BurningManService.MAX_BURN_SHARE * 1.2)); + long maxOutputAmount = isHotfixActivated() ? + Math.round(spendableAmount * (BurningManService.MAX_BURN_SHARE * 1.2)) : + Math.round(inputAmount * (BurningManService.MAX_BURN_SHARE * 1.2)); // We accumulate small amounts which gets filtered out and subtract it from 1 to get an adjustment factor // used later to be applied to the remaining burningmen share. double adjustment = 1 - burningManCandidates.stream()