Add High network fees error message

This commit is contained in:
2025-10-10 22:40:44 +07:00
parent bdb254809e
commit e4fa4c6595
2 changed files with 13 additions and 7 deletions

View File

@@ -53,8 +53,8 @@ namespace Managing.Application.Trading.Handlers
if (currentGasFees > Constants.GMX.Config.MaximumGasFeeUsd)
{
throw new InsufficientFundsException(
$"Gas fee too high for position opening: {currentGasFees:F2} USD (threshold: {Constants.GMX.Config.MaximumGasFeeUsd} USD). Position opening cancelled.",
InsufficientFundsType.InsufficientEth);
$"Gas fee too high for position opening: {currentGasFees:F2} USD (threshold: {Constants.GMX.Config.MaximumGasFeeUsd} USD). Position opening rejected.",
InsufficientFundsType.HighNetworkFee);
}
}
}