mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-16 15:58:08 +00:00
Fix deviation percent for fixed-price crypto offers (#1411)
Some checks are pending
Some checks are pending
This commit is contained in:
parent
ea8badd3f6
commit
023e2bcd2f
1 changed files with 1 additions and 3 deletions
|
@ -402,9 +402,7 @@ abstract class OfferBookViewModel extends ActivatableViewModel {
|
|||
}
|
||||
|
||||
public Optional<Double> getMarketBasedPrice(Offer offer) {
|
||||
OfferDirection displayDirection = offer.isTraditionalOffer() ? direction :
|
||||
direction.equals(OfferDirection.BUY) ? OfferDirection.SELL : OfferDirection.BUY;
|
||||
return priceUtil.getMarketBasedPrice(offer, displayDirection);
|
||||
return priceUtil.getMarketBasedPrice(offer, direction);
|
||||
}
|
||||
|
||||
String formatMarketPriceMarginPct(Offer offer) {
|
||||
|
|
Loading…
Reference in a new issue