Skip to content

feat: add GlobalKillCondition for deal/cert/scrip#96

Open
Detoo wants to merge 1 commit into
developfrom
feat/global-kill-switch
Open

feat: add GlobalKillCondition for deal/cert/scrip#96
Detoo wants to merge 1 commit into
developfrom
feat/global-kill-switch

Conversation

@Detoo
Copy link
Copy Markdown
Contributor

@Detoo Detoo commented May 12, 2026

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 36b5725bbd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +37 to +40
function lowerKill() external onlyOwner {
if (killVotes[msg.sender]) {
killVotes[msg.sender] = false;
killCount--;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Allow owners to clear stale kill votes

Because lowerKill() only clears killVotes[msg.sender], a raised vote becomes unremovable if that owner later loses OWNER_ROLE in BorgAuth (role rotation, compromise response, or accidental demotion). In that state, killCount stays nonzero forever, so checkCondition and checkTransferRestriction permanently block deal finalization and transfers. This introduces a platform-wide freeze path that current owners cannot recover from.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

understood. Other owners could still add him back if it was a mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant