mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
rename trade getPayoutAmount() to getPayoutAmountBeforeCost()
This commit is contained in:
parent
7bfba15109
commit
948be8ce29
5 changed files with 6 additions and 6 deletions
|
@ -31,7 +31,7 @@ public class ArbitratorTrade extends Trade {
|
|||
}
|
||||
|
||||
@Override
|
||||
public BigInteger getPayoutAmount() {
|
||||
public BigInteger getPayoutAmountBeforeCost() {
|
||||
throw new RuntimeException("Arbitrator does not have a payout amount");
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ public abstract class BuyerTrade extends Trade {
|
|||
}
|
||||
|
||||
@Override
|
||||
public BigInteger getPayoutAmount() {
|
||||
public BigInteger getPayoutAmountBeforeCost() {
|
||||
checkNotNull(getAmount(), "Invalid state: getTradeAmount() = null");
|
||||
return getAmount().add(getBuyerSecurityDepositBeforeMiningFee());
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ public abstract class SellerTrade extends Trade {
|
|||
}
|
||||
|
||||
@Override
|
||||
public BigInteger getPayoutAmount() {
|
||||
public BigInteger getPayoutAmountBeforeCost() {
|
||||
return getSellerSecurityDepositBeforeMiningFee();
|
||||
}
|
||||
|
||||
|
|
|
@ -1200,7 +1200,7 @@ public abstract class Trade implements Tradable, Model {
|
|||
// Abstract
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
public abstract BigInteger getPayoutAmount();
|
||||
public abstract BigInteger getPayoutAmountBeforeCost();
|
||||
|
||||
public abstract boolean confirmPermitted();
|
||||
|
||||
|
|
|
@ -223,9 +223,9 @@ public class PendingTradesViewModel extends ActivatableWithDataModel<PendingTrad
|
|||
return sellerState;
|
||||
}
|
||||
|
||||
public String getPayoutAmount() {
|
||||
public String getPayoutAmountBeforeCost() {
|
||||
return dataModel.getTrade() != null
|
||||
? HavenoUtils.formatXmr(dataModel.getTrade().getPayoutAmount(), true)
|
||||
? HavenoUtils.formatXmr(dataModel.getTrade().getPayoutAmountBeforeCost(), true)
|
||||
: "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue