mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Use calculated offer maker fee, do not re-calculate it
This commit is contained in:
parent
946ca460ef
commit
d57d6e9852
@ -20,7 +20,6 @@ package bisq.core.api.model;
|
||||
import bisq.core.api.model.builder.OfferInfoBuilder;
|
||||
import bisq.core.offer.Offer;
|
||||
import bisq.core.offer.OpenOffer;
|
||||
import bisq.core.util.coin.CoinUtil;
|
||||
|
||||
import bisq.common.Payload;
|
||||
|
||||
@ -168,9 +167,7 @@ public class OfferInfo implements Payload {
|
||||
}
|
||||
|
||||
private static long getMakerFee(Offer offer, boolean isMyOffer) {
|
||||
return isMyOffer
|
||||
? requireNonNull(CoinUtil.getMakerFee(false, offer.getAmount())).value
|
||||
: 0;
|
||||
return isMyOffer ? offer.getMakerFee().value : 0;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user