AI4Finance-Foundation / AI4Finance-Foundation/FinRobot

Token Safety Integration: Protect DeFi Operations with SafeAgent

Aperta
#96 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
8k
Fork
1.4k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## 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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.