Anti-Rug Shield
The Anti-Rug Shield performs 8 comprehensive on-chain safety checks against any token. It produces a quantified safety score, per-check severity ratings, and an AI-generated risk summary.
Safety Checks
1. Contract Verification
Confirms that the token's source code is published and verified on the relevant block explorer. Unverified contracts cannot be audited and represent a significant risk.
2. Honeypot Detection
Executes a simulated swap transaction to verify that the token can actually be sold after purchase. Honeypot tokens allow buying but block selling, trapping user funds.
3. Owner Privileges
Analyzes the contract for dangerous administrative functions including:
- Pausing transfers
- Minting new tokens
- Blacklisting addresses
- Modifying fees after deployment
4. Liquidity Lock
Verifies whether LP tokens are locked and for how long. Unlocked liquidity can be withdrawn at any time, allowing the project owner to drain the pool.
5. Holder Concentration
Performs whale analysis across the top holders. If the top holders control more than 50% of the supply, this check is flagged as high risk.
6. Contract Age
Measures time since contract deployment. Newly deployed contracts carry higher risk due to lack of track record and community vetting.
7. Sell Tax
Executes a simulated buy followed by a sell to detect hidden transfer taxes. Some contracts impose excessive sell taxes (sometimes 100%) that are not visible in the contract parameters.
8. Liquidity Depth
Analyzes the price impact of a trade sized at 1% of the pool. Shallow liquidity means high slippage and vulnerability to manipulation.
Output
| Field | Description |
|---|---|
| Safety Score | 0--10 numeric score (10 = safest) |
| Risk Level | Classification: Low, Medium, High, Critical |
| Per-Check Severity | Individual severity rating for each of the 8 checks |
| Risk Summary | AI-generated natural language explanation of findings |
Integration
The Anti-Rug Shield is integrated as a warning banner in the swap interface. When a user selects a token with a low safety score, the banner displays the risk level and key findings before the swap is confirmed.
API
GET /api/safety/{token}
Returns the full safety report for the specified token address.