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(contracts): integrate BoltChallenger in BoltManager #238

Open
Tracked by #259
merklefruit opened this issue Sep 24, 2024 · 0 comments
Open
Tracked by #259

feat(contracts): integrate BoltChallenger in BoltManager #238

merklefruit opened this issue Sep 24, 2024 · 0 comments
Assignees
Labels
C: smart-contracts Component: smart contracts

Comments

@merklefruit
Copy link
Collaborator

merklefruit commented Sep 24, 2024

Task

As outlined in this comment:

// TODO: remove onlyOwner modifier and gate the slashing logic behind the BoltChallenger

We need to integrate the challenger logic to gate slashing requests.

Context

Slashing requests are currently gated behind an onlyOwner function. To remove this permissioned requirement,
we need to use the challenger as oracle for slashing requests. This is essentially a way to determine if the
slashing request is legit and should be executed or not.

The way we do this is by reading from the challenger's storage to see if a breached challenge occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: smart-contracts Component: smart contracts
Projects
None yet
Development

No branches or pull requests

2 participants