Skip to content

test: add constant accrual accounting invariants#118

Merged
Schlagonia merged 2 commits into
constant_accualfrom
constant-accrual-invariant-tests
Jun 3, 2026
Merged

test: add constant accrual accounting invariants#118
Schlagonia merged 2 commits into
constant_accualfrom
constant-accrual-invariant-tests

Conversation

@Schlagonia

Copy link
Copy Markdown
Collaborator

Summary

  • add a constant accrual invariant handler with live profit/loss, queued report deltas, same-block accrual, unlock-time, fee, deposit, withdraw, redeem, and management sync actions
  • assert latched assets, buffer accounting, supply conservation, handler accounting properties, and ERC4626 preview/max invariants
  • add directed profit-locking edge cases around live losses, queued report losses/profits, and same-block accrual latching

Tests

  • forge test --match-contract ConstantAccrualInvariantTest -vv
  • forge test --match-path src/test/ProfitLocking.t.sol -vv
  • forge test -vv

@Schlagonia Schlagonia merged commit 0454726 into constant_accual Jun 3, 2026
3 checks passed
@Schlagonia Schlagonia deleted the constant-accrual-invariant-tests branch June 3, 2026 16:22
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