Conversation
…restCurve for variable interest rates based on utilization to enhance lending flexibility feat(FlowCreditMarket): add support for zero-rate interest curves for testing scenarios where no interest accrues fix(FlowCreditMarket): update event names and parameters for better clarity and consistency in the contract test(interest_curve): add comprehensive tests for FixedRateInterestCurve and KinkInterestCurve to ensure correct interest rate calculations and edge cases chore(tests): refactor tests to use new zero-rate curve functions and update references to ensure consistency across test cases
…mprehensive tests - Fix Pool.setInterestCurve() to compound interest at OLD rate before switching curves - Add FixedRateInterestCurve for stable assets (spread model) - Add KinkInterestCurve for volatile assets (Aave v3-style reserve factor model) - Add interest_accrual_integration_test.cdc (6 tests) - Add interest_curve_advanced_test.cdc (4 tests for edge cases) - Add borrow_from_position.cdc transaction helper - Add get_block_timestamp.cdc script helper All 34 interest curve tests passing
nialexsan
approved these changes
Dec 17, 2025
Gornutz
approved these changes
Dec 18, 2025
turbolent
reviewed
Dec 18, 2025
Co-authored-by: Bastian Müller <bastian@turbolent.com>
- Add contextual values to precondition error messages in FixedRateInterestCurve and KinkInterestCurve for easier debugging - Remove external protocol references (Morpho, Aave) from comments - Add comprehensive documentation to integration tests explaining the spread model, interest calculation formulas, and test scenarios - Reorganize test scripts from test_scripts/ to scripts/ directory - Update FlowActions submodule 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
b7e2535 to
8c6dab9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(FlowCreditMarket): implement FixedRateInterestCurve and KinkInterestCurve for variable interest rates based on utilization to enhance lending flexibility
feat(FlowCreditMarket): add support for zero-rate interest curves for testing scenarios where no interest accrues
fix(FlowCreditMarket): update event names and parameters for better clarity and consistency in the contract
test(interest_curve): add comprehensive tests for FixedRateInterestCurve and KinkInterestCurve to ensure correct interest rate calculations and edge cases
chore(tests): refactor tests to use new zero-rate curve functions and update references to ensure consistency across test cases
Closes: #???
Description
For contributor use:
masterbranchFiles changedin the Github PR explorer