Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.3 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.3 KB

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)

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

image

How to run

  1. have matrix-commander installed and logged-in
  2. have The Graph api key
  3. have Golang installed (ofc)
  4. set env vars to .env (see .env.example)
  5. Run it
$ go run main.go

or you can build it

$ go build -o notificator
$ ./notificator

or in the background

$ 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