Skip to content

Bot that observes AAVE position and sends health factor through Matrix protocol

Notifications You must be signed in to change notification settings

tohrxyz/notificator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Bot that observes AAVE position and sends health factor through Matrix protocol

Topics

Resources

Stars

Watchers

Forks

Languages