mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Enable fractional percentages in dispute payout calculation field
This commit is contained in:
parent
ce76389402
commit
6b0fcf5cfb
@ -963,7 +963,7 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
|
||||
|
||||
Coin penalizedPortionOfTradeAmount = Coin.ZERO;
|
||||
try {
|
||||
disputeResult.setPayoutAdjustmentPercent(compensationOrPenalty.getText().replaceAll("[^0-9]", ""));
|
||||
disputeResult.setPayoutAdjustmentPercent(compensationOrPenalty.getText().replaceAll("[^0-9,.]", ""));
|
||||
double percentPenalty = ParsingUtils.parsePercentStringToDouble(disputeResult.getPayoutAdjustmentPercent());
|
||||
penalizedPortionOfTradeAmount = Coin.valueOf((long) (contract.getTradeAmount().getValue() * percentPenalty));
|
||||
} catch (NumberFormatException | NullPointerException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user