Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: balance change monitoring #15

Open
pseudozach opened this issue Oct 21, 2022 · 3 comments
Open

feat: balance change monitoring #15

pseudozach opened this issue Oct 21, 2022 · 3 comments

Comments

@pseudozach
Copy link
Collaborator

client app should be able to

  • monitor x hour/y days balance change for the LP and expose this information on the dashboard
  • calculate total balance of all funds in custody + any funds currently locked in the swap contract and expose it on the dashboard
  • if total balance is negative for the last X time interval - initiate a circuit breaker to stop accepting swaps
@pseudozach
Copy link
Collaborator Author

feature should also post total balances as available regularly (every 1 day ?) to ensure LP can keep track of these - output should go to discord bot integration

@pseudozach
Copy link
Collaborator Author

pseudozach commented Nov 10, 2022

client app should be able to

  • monitor x hour/y days balance change for the LP and expose this information on the dashboard
  • calculate total balance of all funds in custody + any funds currently locked in the swap contract and expose it on the dashboard
  • if total balance is negative for the last X time interval - initiate a circuit breaker to stop accepting swaps

Feature delivered with pseudozach@712bde1

Screen Shot 2022-11-09 at 11 35 39 PM

Screen Shot 2022-11-10 at 12 16 41 AM

Pending:

  • feature should also post total balances as available regularly (every 1 day ?) to ensure LP can keep track of these - output should go to discord bot integration

@pseudozach
Copy link
Collaborator Author

added daily balance push to discord as part of notification provider: pseudozach@9b11ae3

Pending:

  • Check and add funds that are currently locked in the swap contract to the tracked balance.
  • Clean up DB to avoid disk issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant