Browse Source

Clarify name of constructor

remove-long-heartbeat-interval-in-debug-mode
Thomas Eizinger 3 years ago
parent
commit
21b4490536
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 2
      daemon/src/db.rs
  2. 2
      daemon/src/maker_cfd.rs
  3. 2
      daemon/src/model/cfd.rs

2
daemon/src/db.rs

@ -398,7 +398,7 @@ mod tests {
impl Order {
fn dummy() -> Self {
Order::new(
Order::new_short(
Price::new(dec!(1000)).unwrap(),
Usd::new(dec!(100)),
Usd::new(dec!(1000)),

2
daemon/src/maker_cfd.rs

@ -730,7 +730,7 @@ where
time::OffsetDateTime::now_utc() + self.settlement_interval,
)?;
let order = Order::new(
let order = Order::new_short(
price,
min_quantity,
max_quantity,

2
daemon/src/model/cfd.rs

@ -149,7 +149,7 @@ pub struct Order {
}
impl Order {
pub fn new(
pub fn new_short(
price: Price,
min_quantity: Usd,
max_quantity: Usd,

Loading…
Cancel
Save