Fix proxy build

This commit is contained in:
2025-09-17 16:10:34 +07:00
parent 81d9b4527b
commit e57b48da7c
3 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
using Managing.Application.Abstractions.Grains;
using Managing.Application.Abstractions.Repositories;
using Managing.Common;
using Managing.Domain.Backtests;
using Managing.Domain.Bots;
using Managing.Domain.Candles;
@@ -91,7 +92,7 @@ public class BacktestTradingBotGrain : Grain, IBacktestTradingBotGrain
// Check if wallet balance fell below 10 USDC and break if so
var currentWalletBalance = tradingBot.WalletBalances.Values.LastOrDefault();
if (currentWalletBalance < 10m)
if (currentWalletBalance < Constants.GMX.Config.MinimumPositionAmount)
{
_logger.LogWarning(
"Backtest stopped early: Wallet balance fell below 10 USDC (Current: {CurrentBalance:F2} USDC) at candle {CurrentCandle}/{TotalCandles} from {CandleDate}",