Smart contracts and indexer health monitoring tool.
Name | Description |
---|---|
IndexerMonitor | Checks if the indexer is up to date with the latest blocks. Checks if the computed APY is valid. |
DistManagerMonitor | Checks if the DistManager contract has enough SHER tokens. |
ProtocolManagerMonitor | Checks if active protocols have enough active balance. |
ArbRestakeMonitor | Checks if there are any staking positions that can be arb-restaked. |
Requirements:
- python version
>=3.8.6
$ git clone https://github.com/sherlock-protocol/sherlock-v2-monitor.git
$ cd sherlock-v2-monitor
# Set up environment variables
$ cp .env.example .env
# Install dependencies
$ pip install -r requirements.txt
# Run monitor
$ python monitor.py
There are two environment variables necessary for sending notifications to a Telegram channel.
Telegram bot authentication token. See Telegram docs
Telegram Channel ID. There are various ways for getting the ID of a channel, but the easiest one is to forward a message, from that channel, to Json Dump Bot.
This project is licensed under the MIT License.