Currently there is an AdminAddSolver action (src/app/admin_add_solver.rs) that allows adding dispute solvers through the Mostro protocol. However, there is no corresponding action to remove a solver.
If an admin needs to revoke solver privileges from a user, the only option is to manually update the database which is not practical for production environments.
Proposal
Add a new admin action that allows revoking solver privileges from a user via the Mostro protocol.
The action name is open for discussion, some options:
AdminRemoveSolver
AdminDelSolver
AdminDeleteSolver
The implementation would mirror AdminAddSolver:
- Receive the solver's pubkey as payload
- Verify the sender is Mostro's own pubkey (admin check)
- Check that the user exists and is currently a solver, return an error otherwise
- Set
is_solver = 0 for the given user in the database
- Send confirmation message back to admin
Currently there is an
AdminAddSolveraction (src/app/admin_add_solver.rs) that allows adding dispute solvers through the Mostro protocol. However, there is no corresponding action to remove a solver.If an admin needs to revoke solver privileges from a user, the only option is to manually update the database which is not practical for production environments.
Proposal
Add a new admin action that allows revoking solver privileges from a user via the Mostro protocol.
The action name is open for discussion, some options:
AdminRemoveSolverAdminDelSolverAdminDeleteSolverThe implementation would mirror
AdminAddSolver:is_solver = 0for the given user in the database