mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Change var name
This commit is contained in:
parent
0e020e8987
commit
3e14bd3fbe
@ -136,9 +136,9 @@ public class TradeInfo implements Payload {
|
|||||||
OfferInfo offerInfo = isMyOffer ? toMyOfferInfo(bsqSwapTrade.getOffer()) : toOfferInfo(bsqSwapTrade.getOffer());
|
OfferInfo offerInfo = isMyOffer ? toMyOfferInfo(bsqSwapTrade.getOffer()) : toOfferInfo(bsqSwapTrade.getOffer());
|
||||||
// A BSQ Swap miner tx fee is paid in full by the BTC seller (buying BSQ).
|
// A BSQ Swap miner tx fee is paid in full by the BTC seller (buying BSQ).
|
||||||
// The BTC buyer's payout = tradeamount minus his share of miner fee.
|
// The BTC buyer's payout = tradeamount minus his share of miner fee.
|
||||||
var iAmBtcSeller = (isMyOffer && bsqSwapTrade.getOffer().getDirection().equals(SELL))
|
var isBtcSeller = (isMyOffer && bsqSwapTrade.getOffer().getDirection().equals(SELL))
|
||||||
|| (!isMyOffer && bsqSwapTrade.getOffer().getDirection().equals(BUY));
|
|| (!isMyOffer && bsqSwapTrade.getOffer().getDirection().equals(BUY));
|
||||||
var txFeeInBtc = iAmBtcSeller
|
var txFeeInBtc = isBtcSeller
|
||||||
? bsqSwapTrade.getTxFee().value
|
? bsqSwapTrade.getTxFee().value
|
||||||
: 0L;
|
: 0L;
|
||||||
// A BSQ Swap trade fee is paid in full by the BTC buyer (selling BSQ).
|
// A BSQ Swap trade fee is paid in full by the BTC buyer (selling BSQ).
|
||||||
|
Loading…
Reference in New Issue
Block a user