Skip to content

Allow zero security bond allowances in the UI#221

Merged
KillariDev merged 1 commit into
mainfrom
t3code/allow-zero-security-bond
May 19, 2026
Merged

Allow zero security bond allowances in the UI#221
KillariDev merged 1 commit into
mainfrom
t3code/allow-zero-security-bond

Conversation

@KillariDev
Copy link
Copy Markdown
Collaborator

Summary

  • Allow users to set a security bond allowance to 0 while still rejecting negative values and non-zero values below the minimum.
  • Update security vault guard messages and workflow availability to treat zero as a valid allowance input.
  • Hide manager addresses from the security pool overview and workflow details.
  • Add and update tests covering zero-allowance behavior, minimum-threshold validation, and manager-address removal.

Testing

  • Not run (PR content only)
  • Covered by updated unit tests in ui/ts/tests/securityVaultGuards.test.ts, ui/ts/tests/securityVaultSection.test.tsx, ui/ts/tests/securityPoolWorkflowSection.test.tsx, and ui/ts/tests/securityPoolsSection.test.ts

- Permit clearing security bond allowance to zero
- Keep minimum enforced for non-zero allowances
- Update guards, workflow UI, and tests
@KillariDev KillariDev merged commit 0d4a83b into main May 19, 2026
0 of 6 checks passed
@KillariDev KillariDev deleted the t3code/allow-zero-security-bond branch May 19, 2026 08:13
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