mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Enable fractional percentages in dispute payout calculation field
This commit is contained in:
parent
ce76389402
commit
6b0fcf5cfb
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue