T09 · Insecure Skill Coding Practices
- Location
scripts/recommend.py:54- Finding
Documented Betting Safety Controls Are Not Enforced
- Content
View full analysis
BetRecommendation: ``` Only immediate balance thresholds and a consecutive-loss cooldown decision are implemented: ```python # Check stop-loss stop_loss_threshold = bankroll * (1 - config["stopLossPercent"] / 100) if current_balance <= stop_loss_threshold: return BetRecommendation( should_bet=False, amount=0, target_multiplier=0, confidence=100, risk_level="stop", reasoning="Stop-loss triggered. Session should end.", stop_loss_hit=True ) # Check take-profit take_profit_threshold = bankroll * (1 + config["takeProfitPercent"] / 100) if current_balance >= take_profit_threshold: return ...[truncated 3114 chars]- Remediation
View remediation
