AI4Finance-Foundation / AI4Finance-Foundation/FinRobot

Token Safety Integration: Protect DeFi Operations with SafeAgent

Đang mở
#96 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
8k
Fork
1.4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.