Skip to content

Monitor your AAVE account's health factor (with easy integration to signal-monitoring)

Notifications You must be signed in to change notification settings

jooray/AAVE_Account_Health_Factor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AAVE Account Health Factor Check

Repeatable solution to find the current Health Factor of a specified AAVE Wallet Address.

Solution Requirements

Install with npm install

Environment Variables

  • userAddress: This is the wallet address of the user you would like to check the Health Factor of.
  • contractAddress: The address on the network of the AAVE Pool Smart Contract for V3. The current values that you can use for the mainnets (please check the above link as these may be outdated):
    • This project also works with spark.fi, which is a fork of Aave: 0xC13e21B648A5Ee794902342038FF3aDAB66BE987
  • healthFactorThreshold: What health factor is acceptable. If health factor is lower than this threshold, error is printed and process exits with error code Default: 1.5

Example list of nodes:

export jsonRpcUrls="https://cloudflare-eth.com/;https://rpc.ankr.com/eth;https://eth.llamarpc.com;https://eth-mainnet.public.blastapi.io;https://rpc.flashbots.net/;https://ethereum.publicnode.com"

Health Factor

The health factor is obtained by querying the AAVE Pool smart contract and making use of it's ability to return a health factor for a given account.

Integration with monitoring

I use my own signal-monitoring infrastructure to get notified using Signal when health decreases.

Check out an example setup in examples directory to see how to set it up (after setting up signal-monitoring first).

Author

Brandon Grant
Email
with modifications by Juraj Bednar
Project Github

About

Monitor your AAVE account's health factor (with easy integration to signal-monitoring)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%