graph TD
A[Start Token Monitor] --> B[Load Active Token List]
B --> C[Token Loop]
C --> D[Fetch Updated Metrics]
D --> E{Compare to Thresholds}
E -->|Below Threshold| F[Generate Alert Message]
E -->|Above Threshold| G[Update Data Store]
F --> H[Send Telegram Alert]
G --> I[Check Token Age]
H --> I
I -->|> 1 Month| J[Remove from Monitoring]
I -->|≤ 1 Month| K[Keep in Active List]
J --> L[Update Final Dataset]
K --> L
L --> M{More Tokens?}
M -->|Yes| C
M -->|No| N[Wait for Next Interval]
N --> B
subgraph Metrics Check
D
E
end
subgraph Alert System
F
H
end
subgraph Data Management
I
J
K
L
end