What problem does it solve? Auditing TON blockchain smart contracts written in FunC requires deep knowledge of platform-specific pitfalls like integer-as-boolean misuse, fake Jetton transfer notifications, and unvalidated forward TON amounts. This Skill systematically detects these three critical vulnerability patterns so auditors and developers catch them before deployment. ## Core Features & Use Cases - Boolean Logic Analysis: Detects positive integers used as booleans in FunC, where the bitwise NOT operator ~ produces unexpected truthy results (e.g., ~1 = -2). - Fake Jetton Detection: Identifies transfer_notification handlers that fail to validate the sender against the stored Jetton wallet address, preventing unauthorized token crediting. - Gas & Forward Amount Review: Flags user-controlled forward_ton_amount values that lack msg_value validation, which can drain contract balances. - Use Case: Before launching a TON staking dApp, run this Skill against your contracts/*.fc files to receive a severity-ranked report with vulnerable code snippets, attack scenarios, and secure mitigation patterns. ## Quick Start Scan the FunC contracts in this repository for TON-specific vulnerabilities and report any findings with severity and fixes.