Skip to content

Commit 74f8e48

Browse files
author
ffranr
authored
Merge pull request #1353 from Roasbeef/expiry-grace-period
rfq: reduce min expiry to 10 seconds
2 parents 9202f08 + c07aa82 commit 74f8e48

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/rfq-and-decimal-display.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ use a price oracle, but its role is different for those parties:
369369
tasked with validating exchange rates offered to them by the edge node, to
370370
make sure they aren't proposing absurd rates (by accident or on purpose).
371371

372+
**NOTE**: By default, the _minimum_ quote expiry at tapd node will accept is _10
373+
seconds_.
374+
372375
Due to the fundamentally different roles of the price oracle for both parties,
373376
it is expected that the actual implementation for the price oracle is also
374377
different among the parties.

rfq/negotiator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
const (
1818
// minAssetRatesExpiryLifetime is the minimum asset rates expiry
1919
// lifetime in seconds.
20-
minAssetRatesExpiryLifetime = 60
20+
minAssetRatesExpiryLifetime = 10
2121

2222
// DefaultAcceptPriceDeviationPpm is the default price deviation in
2323
// parts per million that is accepted by the RFQ negotiator.

0 commit comments

Comments
 (0)