Decrease the tolerance window for offers

This commit is contained in:
Manfred Karrer 2018-12-06 17:50:57 +01:00
parent a27666c0e4
commit 913bc41928
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. 2 % difference between own offerPayload price calculation and takers calculation.
// We allow max. 0.5 % 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.02;
final static double PRICE_TOLERANCE = 0.005;
///////////////////////////////////////////////////////////////////////////////////////////
// Enums