diff --git a/src/app/(authenticated)/strategies/StrategyCard.tsx b/src/app/(authenticated)/strategies/StrategyCard.tsx index b8d1682..9feec42 100644 --- a/src/app/(authenticated)/strategies/StrategyCard.tsx +++ b/src/app/(authenticated)/strategies/StrategyCard.tsx @@ -73,7 +73,7 @@ const getConditionName = (type: string): string => { case 'marketCap': return 'Market Cap'; case 'blacklist': - return 'Blacklist'; + return 'Prevention: '; case 'price': return 'Price'; case 'age': @@ -101,7 +101,9 @@ const ConditionBadge: React.FC<{ condition: BuyCondition | SellCondition }> = ({ return `${condition.days} day${condition.days !== 1 ? 's' : ''}`; } if (isBlacklistCondition(condition)) { - return `${condition.checkDollarSign ? '$' : ''}${condition.checkBlacklist ? 'BL' : ''}`; + return `${condition.checkDollarSign ? '$ ' : ''}${ + condition.checkBlacklist ? 'scam names' : '' + }`; } if ('value' in condition) { const addDollarSign = @@ -154,7 +156,7 @@ const BuyConditions: React.FC<{
- {`Buy $${buy.action.amount}`} + {`Buy ${buy.action.amount} TON`}
diff --git a/src/app/components/StrategyForm/BuyStrategyStep.tsx b/src/app/components/StrategyForm/BuyStrategyStep.tsx index 9a23e79..9a788e7 100644 --- a/src/app/components/StrategyForm/BuyStrategyStep.tsx +++ b/src/app/components/StrategyForm/BuyStrategyStep.tsx @@ -85,8 +85,7 @@ export const BuyStrategyStep: React.FC = ({ onNext, onPrev ( control={control} render={({ field }) => ( field.onChange(e.target.checked)} /> @@ -250,7 +250,7 @@ function getConditionLabel(type: BuyCondition['type']): string { case 'age': return 'Age'; case 'blacklist': - return 'Blacklist'; + return 'Scam Prevention'; } } diff --git a/src/app/components/StrategyForm/SettingsStrategyStep.tsx b/src/app/components/StrategyForm/SettingsStrategyStep.tsx index a42ac13..97789c7 100644 --- a/src/app/components/StrategyForm/SettingsStrategyStep.tsx +++ b/src/app/components/StrategyForm/SettingsStrategyStep.tsx @@ -46,14 +46,14 @@ export const SettingsStrategyStep: React.FC<{ onNext: () => void }> = memo(({ on control={control} render={({ field }) => ( field.onChange(value)} error={ errors.maxBetAmount?.message || (!isMaxBetAmountValid - ? `Max bet amount exceeds your current balance of $${balance}` + ? `Max bet amount exceeds your current balance of ${balance} TON` : undefined) } placeholder='Enter the maximum bet amount' diff --git a/src/app/components/StrategyForm/strategySchema.ts b/src/app/components/StrategyForm/strategySchema.ts index aefb4b7..f10d709 100644 --- a/src/app/components/StrategyForm/strategySchema.ts +++ b/src/app/components/StrategyForm/strategySchema.ts @@ -81,7 +81,7 @@ export const strategySchema = z if (data.buy && data.buy.action.amount > data.maxBetAmount) { ctx.addIssue({ code: z.ZodIssueCode.custom, - message: `Buy amount cannot exceed the maximum bet amount of $${data.maxBetAmount}`, + message: `Buy amount cannot exceed the maximum bet amount of ${data.maxBetAmount} TON`, path: ['buy', 'action', 'amount'], }); }