Skip to content

phylaxsystems/demo-spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark Demo

  • The demo is hosted by Phylax Systems
  • It can export logs and metrics to a Grafana Cloud or any loki/prometheus instance
  • This demo can be ran by any Phylax instance with an RPC endpoint to a mainnet Ethereum node

Env Variables

  • ETH_RPC: The url to the internal Reth node that runs alongside the hosted Phylax node

Alerts

User Health

  • Call getUserHealth for every call against the pool on Supply, Withdraw, Repay, and Borrow events
  • Alert triggers if belowLiquidationThreshold == true

Assets Liability

  • Call getAllReservesAssetLiability every 5 blocks.
  • Allert triggers when for a reserve i, we have assets[i] - liabilities[i] > 1000e18

Actions

A slack webhook to their internal slack for each alert

Releases

No releases published

Packages

No packages published