Change Insufficient Allowance message to High network fee
This commit is contained in:
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user