Browse Source

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.
compile-for-aarch64
Daniel Karzel 3 years ago
parent
commit
0ff12d9be3
No known key found for this signature in database GPG Key ID: 30C3FC2E438ADB6E
  1. 2
      daemon/src/model/cfd.rs

2
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,

Loading…
Cancel
Save