Skip to content

Implement Monotonic Interest Index with Tests and Documentation#204

Open
icodeBisola wants to merge 5 commits intoCredenceOrg:mainfrom
icodeBisola:main
Open

Implement Monotonic Interest Index with Tests and Documentation#204
icodeBisola wants to merge 5 commits intoCredenceOrg:mainfrom
icodeBisola:main

Conversation

@icodeBisola
Copy link
Copy Markdown
Contributor

@icodeBisola icodeBisola commented Mar 29, 2026

Close #143
Close #156
Close #166

- Introduced a new module for calculating and enforcing a monotonic interest index to prevent accrual anomalies.
- Added functions for calculating the new index based on elapsed time and interest rate, ensuring non-decreasing behavior.
- Implemented ceiling division to handle precision loss and prevent backward movement of the index.
- Created comprehensive unit tests covering basic functionality, edge cases, and regression scenarios.
- Added documentation detailing the index's properties, calculation methods, and usage examples.

test: Add tests for grace window functionality in signed orders

- Developed tests for configurable post-deadline grace window behavior.
- Covered scenarios including strict mode acceptance, grace window acceptance, and replay protection.
- Ensured unauthorized changes to the grace window are properly restricted.

test: Create extensive tests for monotonic interest index

- Added a suite of tests to validate the monotonic interest index implementation.
- Included property-based tests to ensure consistent non-decreasing behavior across various inputs.
- Implemented regression tests for previously identified precision loss issues and edge cases.

docs: Add documentation for Monotonic Interest Index

- Created a detailed markdown document explaining the Monotonic Interest Index.
- Included sections on index representation, calculatstrategies.
- Pfix
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

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

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

Labels

None yet

Projects

None yet

1 participant