stakwork / sphinx-relay

Node.js wrapper for communication between sphinx client and lightning node.
MIT License
247 stars 71 forks source link

liquidity alerting #656

Open Evanfeenstra opened 1 year ago

Evanfeenstra commented 1 year ago

if liquidity gets low (if the balance in all channels is close to the reserve amount) we need to send some kind of alert. Maybe we can ping Hub server with some route that sends an SMS to remind us to check channel liquidity?

Evanfeenstra commented 1 year ago

or should alerts go into a table? and node operator (or admin if its proxy relay) will see an alert in the app as soon as they open the app

kevkevinpal commented 1 year ago

I was think we could create a tribe for notes to self which only the admin can see and then create a bot for liquidity alerts that messages that tribe? @Evanfeenstra let me know if that also makes sense.

Not sure how SMS would work there does the bot send an alert to your phone?

Evanfeenstra commented 1 year ago

ya a bot is probably the first thing to do here