From 135dc0b19ef2d87d32010236269fe0f67d3984de Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 8 Jul 2024 14:21:50 -0400 Subject: [PATCH] Fix trading logic for trivial improvement --- src/bot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.rs b/src/bot.rs index 61f4088..a8babbe 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -287,7 +287,7 @@ impl Bot { self.buy_prices .get(&item_id) .map(|int| 0 - *int as i32) - .unwrap_or(i32::MAX) + .unwrap_or(i32::MIN) }) };