Adjust % value for offer price tolerance window

- There have been some reports that the 0,5% value is too narrow so we
increase it to 1%.
This commit is contained in:
Manfred Karrer 2019-01-04 13:50:38 +01:00
parent 39f3c6effe
commit f12ff5ce92
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -70,11 +70,11 @@ import static com.google.common.base.Preconditions.checkNotNull;
@Slf4j
public class Offer implements NetworkPayload, PersistablePayload {
// We allow max. 0.5 % difference between own offerPayload price calculation and takers calculation.
// We allow max. 1 % difference between own offerPayload price calculation and takers calculation.
// Market price might be different at maker's and takers side so we need a bit of tolerance.
// The tolerance will get smaller once we have multiple price feeds avoiding fast price fluctuations
// from one provider.
final static double PRICE_TOLERANCE = 0.005;
final static double PRICE_TOLERANCE = 0.01;
///////////////////////////////////////////////////////////////////////////////////////////
// Enums