Skip to content

Add emergency per-key trading freezes - #1059

Merged
Chucks1093 merged 4 commits into
accesslayerorg:mainfrom
rajiabdulrahmon2020-ui:fix/issue-1051
Oct 29, 2026
Merged

Chucks1093 merged 4 commits into
accesslayerorg:mainfrom
rajiabdulrahmon2020-ui:fix/issue-1051

Conversation

@rajiabdulrahmon2020-ui

Copy link
Copy Markdown
Contributor

Summary

  • Add protocol-admin controls to freeze and unfreeze trading for an individual key.
  • Support optional freeze reason and expiry timestamp, with expired freezes reported as inactive.
  • Reject buy and sell activity on frozen keys with KeyFrozen and expose freeze status.

Closes #1051

Validation

  • cargo fmt --all -- --check
  • git diff --check

@drips-wave

drips-wave Bot commented Oct 17, 2026

Copy link
Copy Markdown

@rajiabdulrahmon2020-ui Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@rajiabdulrahmon2020-ui

Copy link
Copy Markdown
Contributor Author

@accesslayerorg I updated this branch from main and resolved the merge conflicts. Please review and merge when ready.

@Chucks1093

Copy link
Copy Markdown
Member

⚠️ Merge Conflict Detected

This PR currently has a merge conflict and cannot be merged until it is resolved.

Please rebase or merge the latest changes from the base branch into your branch and push again.

1 similar comment
@Chucks1093

Copy link
Copy Markdown
Member

⚠️ Merge Conflict Detected

This PR currently has a merge conflict and cannot be merged until it is resolved.

Please rebase or merge the latest changes from the base branch into your branch and push again.

@rajiabdulrahmon2020-ui

Copy link
Copy Markdown
Contributor Author

Note for maintainers: this PR adds no net change over main. Its only commit (c17f3f0) adds a parallel key-freeze implementation (KeyFrozen = 110) that duplicates creator-keys/src/key_freeze.rs already on main (KeyFrozen = 139, tests/key_freeze.rs). The branch now has a merge of main, so its tree matches main. Separately, main does not compile right now: creator-keys/src/lib.rs uses ContractError discriminant 148 twice (NoRetirementProposed and CircuitBreakerActive). Recommend closing this PR as superseded, or fixing the duplicate on main first.

Resolve merge conflicts in creator-keys/src/lib.rs and creator-keys/src/emergency_pause.rs
by keeping main's key freeze implementation (key_freeze.rs, KeyFrozen = 139, freeze_key,
get_freeze_status). The branch's duplicate freeze code is dropped; the resulting tree matches main.
@Chucks1093

Copy link
Copy Markdown
Member

CI Errors

@zeemscript

Copy link
Copy Markdown
Contributor

@Chucks1093 Synced this branch with the latest main, resolving the duplicate error-code conflict. The current upstream tree already contains this PR’s implementation, so the PR now has no unique diff against main. Please confirm whether you want this redundant PR closed. Fresh GitHub verify check is queued.

@Chucks1093
Chucks1093 merged commit cbe81a6 into accesslayerorg:main Oct 29, 2026
1 check passed
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.

Implement key freeze contract for emergency suspension of trading

3 participants