From a905f0ce5335ad9f42019ca430a9d5ff2eb3bc16 Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 21 Jun 2024 09:59:24 +0200 Subject: [PATCH] fixes crash in market buffer again --- Tools/TestNetRewarder/MarketBuffer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/TestNetRewarder/MarketBuffer.cs b/Tools/TestNetRewarder/MarketBuffer.cs index b03ad7a..d8ec91d 100644 --- a/Tools/TestNetRewarder/MarketBuffer.cs +++ b/Tools/TestNetRewarder/MarketBuffer.cs @@ -67,7 +67,7 @@ namespace TestNetRewarder private int GetTotalSize(Ask ask) { var nSlots = Convert.ToInt32(ask.Slots); - var slotSize = Convert.ToInt32(ask.SlotSize); + var slotSize = (int)ask.SlotSize; return nSlots * slotSize; } }