https://github.com/kovart/challenge-5
Agent for a well-known security protocol 🤫
https://github.com/kovart/challenge-5
Last synced: 28 days ago
JSON representation
Agent for a well-known security protocol 🤫
- Host: GitHub
- URL: https://github.com/kovart/challenge-5
- Owner: kovart
- Created: 2021-10-26T22:57:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-26T22:57:14.000Z (about 4 years ago)
- Last Synced: 2025-01-17T08:37:10.945Z (12 months ago)
- Language: TypeScript
- Homepage:
- Size: 163 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compound Utilization Rate Token
## Description
This agent monitors Ethereum network and alerts if utilization rate of
the provided pools changes by a certain percentage within a certain period.
## Alert strategy
The agent fires the alarm only once, when it reaches an extremum within a specified time interval.
## Variables
##### ALERT_CHANGE_RATE: `number`
- The minimum change needed to trigger the agent
- Default `0.1` (10%)
##### WATCH_INTERVAL: `number`
- The interval during which the change is detected
- Default `3600` (60 minutes)
##### WATCH_TOKENS: `Array`
- Compound cToken pools
- Default `cUSDC`, `cDAI`, `cETH`
## Compound Configs
To make the agent more testable, all Compound configs are parsed
from the [compound-finance/compound-config](https://github.com/compound-finance/compound-config)
official repository and used depending on the `network` property provided in the block event.
## Supported Chains
- Ethereum
## Alerts
- COMP-UTILIZATION-RATE-0
- Fired when utilization rate in specified pools changes by a specified percentage or more within a specified interval
- Severity is always set to "medium"
- Severity is always set to "suspicious"
- `Metadata`
- `lowestRate` the lowest utilization rate within current interval
- `highestRate` the highest utilization rate within current interval
- `change` current utilization rate change