-
Notifications
You must be signed in to change notification settings - Fork 26
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
Dashboard listens for wrong AuthorizationIncrease events #626
Comments
@cygnusv Based on @pdyraga comment it looks like we can also change the source of token-dashboard/src/store/staking-applications/slice.ts Lines 208 to 219 in 5875b44
Do you know if it's somehow possible to get that infrormation from For now @kpyszkowski has only changed the |
I don't think so (although please @vzotova correct me if I'm wrong), since that information seems specific to the sortition pool, not the staking contract. I see 2 alternatives:
|
The consensus we had with @pdyraga and @vzotova was that, for authorization purposes, we'd look for events only in the Staking contract, since applications may have different internal semantics. See threshold-network/solidity-contracts#88 (comment)
However, during the work for #603, we've detected that the dashboard listens for events on the application:
token-dashboard/src/hooks/staking-applications/useSubscribeToAuthorizationIncreasedEvent.ts
Lines 12 to 27 in bc59c7c
Coincidentally, tBTC and RB app contracts define
AuthorizationIncreased
events with the exact signature than those from the staking contract, so for their particular case, listening for app events work. However, this is problematic for the TACo app contract that doesn't define them in the same way (which shouldn't be a problem)The solution would be to listen for these events in the staking contract, as originally intended.
Tasks
The text was updated successfully, but these errors were encountered: