Change Insufficient Allowance message to High network fee

This commit is contained in:
2025-10-17 14:45:21 +07:00
parent 3f1b5f09e0
commit acea43ec71
3 changed files with 48 additions and 5 deletions

View File

@@ -109,11 +109,16 @@ public class InsufficientFundsException : Exception
"Your wallet doesn't have enough ETH to pay for transaction gas fees.\n" +
"Please add ETH to your wallet and try again.",
InsufficientFundsType.InsufficientAllowance =>
"❌ Insufficient Token Allowance\n" +
"The trading contract doesn't have permission to spend your tokens.\n" +
"Please approve token spending in your wallet and try again.",
// InsufficientFundsType.InsufficientAllowance =>
// "❌ Insufficient Token Allowance\n" +
// "The trading contract doesn't have permission to spend your tokens.\n" +
// "Please approve token spending in your wallet and try again.",
InsufficientFundsType.InsufficientAllowance =>
"❌ High Network Fee\n" +
"The gas fee for this position is too high.\n" +
"Position opening rejected.",
InsufficientFundsType.InsufficientBalance =>
"❌ Insufficient Token Balance\n" +
"Your wallet doesn't have enough tokens for this trade.\n" +