-
Notifications
You must be signed in to change notification settings - Fork 50
Contracts review feedback - round 1 #2154
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
Conversation
Caution Review failedThe pull request is closed. WalkthroughRenamed several custom error identifiers across arbitration contracts and tests; added Changes
Sequence Diagram(s)sequenceDiagram
participant Caller as Caller
participant SortMod as SortitionModule
participant StakeStore as Stake storage
rect #E6F8E6
Note over Caller,SortMod: New flow (this PR)
Caller->>SortMod: setStakePenalty(courtID, account, ...)
SortMod->>SortMod: compute availablePenalty & newCourtStake
SortMod->>StakeStore: _setStake(account, courtID, newCourtStake)
SortMod-->>Caller: return (uses newCourtStake as current)
end
rect #FAEBE6
Note over Caller,SortMod: Previous flow (before PR)
Caller->>SortMod: setStakePenalty(courtID, account, ...)
SortMod->>SortMod: compute availablePenalty & newCourtStake
SortMod->>StakeStore: _setStake(account, courtID, newCourtStake)
SortMod->>StakeStore: _stakeOf(account, courtID) -- re-read stake
SortMod-->>Caller: return (used re-read stake)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Comment |
❌ Deploy Preview for kleros-v2-testnet-devtools failed. Why did it fail? →
|
✅ Deploy Preview for kleros-v2-testnet ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for kleros-v2-neo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
PR-Codex overview
This PR focuses on improving error handling and documentation clarity in the
KlerosCore
and related contracts, along with renaming errors for consistency. It also modifies some function parameters and improves comments for better understanding.Detailed summary
InvalidDisputKitParent
toInvalidDisputeKitParent
.MinStakeHigherThanChildCourt
.Summary by CodeRabbit