Skip to content

Implement overpayment review guard conditions #357

Description

@edehvictor

Summary

Add contract states for flagging suspected payroll overpayment without enabling unsafe unilateral fund clawback.

Why This Matters

Overpayment handling needs accountability, but payroll systems should avoid giving admins a dangerous hidden reversal switch.

Suggested Files

  • contracts/src/reviews.rs
  • contracts/src/payroll.rs
  • contracts/src/events.rs
  • contracts/tests/overpayment_review.rs

Tasks

  • Define overpayment review records linked to a payroll run.
  • Block archival while a review is open.
  • Require explicit resolution reason before closing review.
  • Add tests proving settlement is not silently reversed.

Acceptance Criteria

  • Overpayment reviews can pause cleanup without reversing settled payments.
  • Review closure requires authorized role and reason.
  • Events are privacy-safe.
  • Tests cover open, resolve, and unauthorized paths.

Coordination

Join the Telegram channel for proper coordination: https://t.me/zkpayroll

Activity

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

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions