Summary
Add explicit refund rules for cancelled, expired, disputed, and settled payroll runs so reserved funds can be returned safely without enabling hidden clawbacks.
Why This Matters
Refund logic sits close to employee trust. The contract must distinguish safe treasury release from dangerous post-settlement reversal behavior.
Suggested Files
contracts/src/refunds.rs
contracts/src/treasury.rs
contracts/src/payroll.rs
contracts/tests/refund_boundaries.rs
Tasks
Acceptance Criteria
Coordination
Join the Telegram channel for proper coordination: https://t.me/zkpayroll
Summary
Add explicit refund rules for cancelled, expired, disputed, and settled payroll runs so reserved funds can be returned safely without enabling hidden clawbacks.
Why This Matters
Refund logic sits close to employee trust. The contract must distinguish safe treasury release from dangerous post-settlement reversal behavior.
Suggested Files
contracts/src/refunds.rscontracts/src/treasury.rscontracts/src/payroll.rscontracts/tests/refund_boundaries.rsTasks
Acceptance Criteria
Coordination
Join the Telegram channel for proper coordination: https://t.me/zkpayroll