Skip to content

Commit dbb3489

Browse files
committed
fix(predict): use MINIMUM_BET directly for validation
1 parent 6f907f4 commit dbb3489

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

app/components/UI/Predict/views/PredictBuyPreview/PredictBuyPreview.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -196,20 +196,10 @@ const PredictBuyPreview = () => {
196196
const providerFee = preview?.fees?.providerFee ?? 0;
197197
const total = currentValue + providerFee + metamaskFee;
198198

199-
const minimumBetFees = useMemo(
200-
() => (MINIMUM_BET * (preview?.fees?.totalFeePercentage ?? 0)) / 100,
201-
[preview?.fees?.totalFeePercentage],
202-
);
203-
204-
// Validation constants and states
205-
const minimumBetWithFees = useMemo(
206-
() => MINIMUM_BET + minimumBetFees,
207-
[minimumBetFees],
208-
);
209199
const hasInsufficientFunds = total > balance;
210200
const isBelowMinimum = currentValue > 0 && currentValue < MINIMUM_BET;
211201
const canPlaceBet =
212-
currentValue >= minimumBetWithFees &&
202+
currentValue >= MINIMUM_BET &&
213203
!hasInsufficientFunds &&
214204
preview &&
215205
!isLoading &&

0 commit comments

Comments
 (0)