From 0ff12d9be3a2609efad0d4348ebf8bb14aa3a5fc Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Fri, 8 Oct 2021 14:09:40 +1100 Subject: [PATCH] Set term to `24` hours Note: Since our sliding window of `next_24_hours` in the oracle actor is current hour `+[1..24]` the window should always be able to handle fetching an event of current hour + 1. --- daemon/src/model/cfd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/model/cfd.rs b/daemon/src/model/cfd.rs index b7dc2a4..49d4984 100644 --- a/daemon/src/model/cfd.rs +++ b/daemon/src/model/cfd.rs @@ -102,7 +102,7 @@ pub struct Order { #[allow(dead_code)] // Only one binary and the tests use this. impl Order { - pub const TERM: Duration = Duration::hours(8); + pub const TERM: Duration = Duration::hours(24); pub fn new( price: Usd,