Skip to content

Commit

Permalink
Use calculated offer maker fee, do not re-calculate it
Browse files Browse the repository at this point in the history
  • Loading branch information
ghubstan committed Dec 1, 2021
1 parent 946ca46 commit d57d6e9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/main/java/bisq/core/api/model/OfferInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
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;

Expand Down Expand Up @@ -168,9 +167,7 @@ private static OfferInfoBuilder getBuilder(Offer offer, boolean isMyOffer) {
}

private static long getMakerFee(Offer offer, boolean isMyOffer) {
return isMyOffer
? requireNonNull(CoinUtil.getMakerFee(false, offer.getAmount())).value
: 0;
return isMyOffer ? offer.getMakerFee().value : 0;
}

///////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit d57d6e9

Please sign in to comment.