https://github.com/tohrxyz/notificator
Bot that observes AAVE position and sends health factor through Matrix protocol
https://github.com/tohrxyz/notificator
aave arbitrum defi go golang matrix matrix-protocol
Last synced: 10 months ago
JSON representation
Bot that observes AAVE position and sends health factor through Matrix protocol
- Host: GitHub
- URL: https://github.com/tohrxyz/notificator
- Owner: tohrxyz
- Created: 2024-10-07T14:52:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-12T23:43:48.000Z (over 1 year ago)
- Last Synced: 2024-12-13T04:00:32.366Z (over 1 year ago)
- Topics: aave, arbitrum, defi, go, golang, matrix, matrix-protocol
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Notificator
Service that observes DeFi positions on AAVE lending protocol for given eth account and returns useful data, such as health factor.
Then it uses Matrix protocol, to notify person about it (thanks [matrix-commander](https://github.com/8go/matrix-commander))
### Current functionality
The program runs indifinitely (until it crashes lol) and periodically (1 hour) fetches data from TheGraph DeFi protocol that queries AAVE v3 Arbitrum position
for specified ETH account (Arb ETH) and then it sends health factor to specified matrix room ID as a message.
`Health Factor: 1.59 @ 2024-10-09 19:27:16`

## How to run
1. have [matrix-commander](https://github.com/8go/matrix-commander) installed and logged-in
2. have [The Graph](https://thegraph.com/studio/) api key
3. have Golang installed (ofc)
4. set env vars to `.env` (see `.env.example`)
5. Run it
```sh
$ go run main.go
```
### or you can build it
```sh
$ go build -o notificator
```
```sh
$ ./notificator
```
or in the background
```sh
$ nohup ./notificator nohup.out
```
## Contribute
All contributions are welcome, I'm building something for myself, but it might satisfy even somebody else's needs. Let's make good shit together