Skip to content

feat: Test suite – interest accrual over time#75

Open
observerr411 wants to merge 10 commits intoCreditra:mainfrom
observerr411:credit
Open

feat: Test suite – interest accrual over time#75
observerr411 wants to merge 10 commits intoCreditra:mainfrom
observerr411:credit

Conversation

@observerr411
Copy link

This closes #34

@greatest0fallt1me
Copy link
Contributor

resolve the conflicts

observerr411 and others added 2 commits February 24, 2026 07:07
…errors

- Added last_accrual_timestamp field to CreditLineData struct
- Removed unnecessary unit return types (-> ())
- Fixed inconsistent digit grouping in MAX_INTEREST_RATE_BPS constant
- Removed duplicate #[cfg(test)] attribute in interest_accrual tests
- All tests passing and clippy checks clean
@greatest0fallt1me
Copy link
Contributor

resolve the conflict

- Add credit_limit validation (must be > 0)
- Add interest_rate_bps validation (must be <= 10000)
- Add risk_score validation (must be <= 100)
- Add duplicate active credit line check
- Update panic messages to match test expectations
- All 92 tests passing
The dtolnay/rust-toolchain@stable action already specifies the toolchain
in the action reference, so specifying it again in the 'with' section
causes a conflict. Removed the redundant toolchain parameter.
Fixed multi-line formatting for the storage get operation
to comply with rustfmt standards.
@greatest0fallt1me
Copy link
Contributor

@observerr411 please resolve the conflicts

@greatest0fallt1me
Copy link
Contributor

please resolve the conflicts

@greatest0fallt1me
Copy link
Contributor

@observerr411 Can you resolve the conflicts?

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.

Test suite – interest accrual over time

2 participants