Fix trading logic for trivial improvement
This commit is contained in:
parent
e63980858e
commit
135dc0b19e
@ -287,7 +287,7 @@ impl Bot {
|
|||||||
self.buy_prices
|
self.buy_prices
|
||||||
.get(&item_id)
|
.get(&item_id)
|
||||||
.map(|int| 0 - *int as i32)
|
.map(|int| 0 - *int as i32)
|
||||||
.unwrap_or(i32::MAX)
|
.unwrap_or(i32::MIN)
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user