Fix swap btc + fix bot stoping

This commit is contained in:
2025-07-06 15:50:50 +07:00
parent f973be2e08
commit 46b43bce1a
3 changed files with 291 additions and 233 deletions

View File

@@ -24,7 +24,7 @@ public class SwapTokensRequest
/// The amount to swap
/// </summary>
[Required]
[Range(0.000001, double.MaxValue, ErrorMessage = "Amount must be greater than 0")]
[Range(0.0000000000001, double.MaxValue, ErrorMessage = "Amount must be greater than 0")]
public double Amount { get; set; }
/// <summary>
@@ -42,4 +42,4 @@ public class SwapTokensRequest
/// </summary>
[Range(0, 100, ErrorMessage = "Allowed slippage must be between 0 and 100")]
public double AllowedSlippage { get; set; } = 0.5;
}
}