mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-28 09:24:15 -04:00
Fix bug with mining fee
This commit is contained in:
parent
756966c965
commit
864c7a15db
2 changed files with 4 additions and 4 deletions
|
@ -316,10 +316,9 @@ class PendingTradesModel extends UIModel {
|
||||||
|
|
||||||
// TODO handle overpaid collateral
|
// TODO handle overpaid collateral
|
||||||
if (isOfferer())
|
if (isOfferer())
|
||||||
return getTrade().getTradeAmount().add(getTrade().getOffer().getCollateralAmount()).subtract(FeePolicy
|
return getTrade().getTradeAmount().add(getTrade().getOffer().getCollateralAmount());
|
||||||
.TX_FEE);
|
|
||||||
else
|
else
|
||||||
return getTrade().getCollateralAmount().subtract(FeePolicy.TX_FEE);
|
return getTrade().getCollateralAmount();
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
package io.bitsquare.gui.main.orders.pending;
|
package io.bitsquare.gui.main.orders.pending;
|
||||||
|
|
||||||
|
import io.bitsquare.btc.FeePolicy;
|
||||||
import io.bitsquare.btc.WalletFacade;
|
import io.bitsquare.btc.WalletFacade;
|
||||||
import io.bitsquare.gui.PresentationModel;
|
import io.bitsquare.gui.PresentationModel;
|
||||||
import io.bitsquare.gui.components.Popups;
|
import io.bitsquare.gui.components.Popups;
|
||||||
|
@ -150,7 +151,7 @@ public class PendingTradesPM extends PresentationModel<PendingTradesModel> {
|
||||||
}
|
}
|
||||||
|
|
||||||
String getAmountToWithdraw() {
|
String getAmountToWithdraw() {
|
||||||
return formatter.formatCoinWithCode(model.getAmountToWithdraw());
|
return formatter.formatCoinWithCode(model.getAmountToWithdraw().subtract(FeePolicy.TX_FEE));
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue