mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-25 07:19:30 -05:00
Fix deviation percent for fixed-price crypto offers (#1411)
This commit is contained in:
parent
ea8badd3f6
commit
023e2bcd2f
@ -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 New Issue
Block a user