mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-12-11 20:33:32 +01: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