-
Notifications
You must be signed in to change notification settings - Fork 16
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
Check bonded ETH for operators #48
base: main
Are you sure you want to change the base?
Conversation
We are getting bond creation events to obtain values of bonds created for all the ECDSA operators.
65110d7
to
21cf9d4
Compare
We need to respect bonds release and seizure in calculating currently bonded value. What's more we need to respect the fact that value can be deposited as a return from tBTC after seizing the whole bond and keeping there just some part of it.
I was testing this script locally with four operators:
Scenario 1 ✅
Initial state:
Created keep
Intermediate state:
Closed keep End state:
Scenario 2 ❌
Initial state:
Created keep
Created keep
Created keep
Intermediate state:
Seized bonds from keep End state:
Problem: Please see that Scenario 3 ❌
Initial state:
Note that Returned End state:
Problem: Please see that the |
We are getting bond creation events to obtain values of bonds created for all the ECDSA operators.