AI4Finance-Foundation / AI4Finance-Foundation/FinRobot
Token Safety Integration: Protect DeFi Operations with SafeAgent
- Vorherrschende Sprache
- Jupyter Notebook
- Sterne
- 8k
- Forks
- 1.4k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## Token Safety for FinRobot
### Proposal
FinRobot agents that interact with DeFi/crypto markets need safety checks before executing trades or analyzing tokens. SafeAgent provides this as a simple API call or MCP server integration.
### What SafeAgent provides
- **Safety score (0-100)** for any ERC-20 token across 6 EVM chains
- **27 scam pattern detection**: honeypots, hidden mints, ownership exploits, fee traps
- **Real honeypot simulation** via actual DEX swap testing
- **DeFi yields, gas prices, token price data**
### Integration
```python
# Direct API — no dependencies needed
import requests
r = requests.get("https://cryptogenesis.duckdns.org/scan",
params={"address": "0x...", "chain": "base"})
safety = r.json()
# Returns: safety_score (0-100), verdict, flags, risk breakdown
```
### Use case
Before FinRobot executes a DeFi trade:
1. Check token safety score
2. If score < 80, flag as risky
3. If honeypot detected, block the trade entirely
### Links
- GitHub: https://github.com/Aigen-Protocol/aigen-protocol
- MCP: `POST https://cryptogenesis.duckdns.org/mcp` (38 tools)
- Latest report: [Base Token Safety April 2026](https://github.com/Aigen-Protocol/aigen-workspace/blob/main/reports/base-token-safety-april2026.md)
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.