Skip to content

test(escrow): maturity gate boundary and zero-maturity behavior#293

Merged
mikewheeleer merged 1 commit into
Liquifact:mainfrom
Edoscoba:security/maturity-gate-audit
May 28, 2026
Merged

test(escrow): maturity gate boundary and zero-maturity behavior#293
mikewheeleer merged 1 commit into
Liquifact:mainfrom
Edoscoba:security/maturity-gate-audit

Conversation

@Edoscoba
Copy link
Copy Markdown
Contributor

Summary

Adds explicit tests for the settle maturity boundary: one second before maturity traps without mutating state, exactly at maturity succeeds, and maturity == 0 allows immediate settlement.

Also surfaces has_maturity_lock in the read API and init event so operators and indexers can distinguish “no maturity lock” from a positive ledger-time lock, with ADR and ledger-time documentation updates.

Validation:

  • cargo test
  • cargo clippy -p liquifact_escrow --all-targets -- -D warnings
  • cargo llvm-cov --features testutils --fail-under-lines 95 --summary-only -p liquifact_escrow

close #270

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@Edoscoba 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

@mikewheeleer mikewheeleer merged commit bd58211 into Liquifact:main May 28, 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.

Audit settle maturity gate for ledger-time skew and zero-maturity bypass

2 participants