Skip to content

Document fixed/kink curves and expose curve params getter#193

Merged
liobrasil merged 2 commits intomainfrom
lionel/interest-curve-docs-getter
Mar 10, 2026
Merged

Document fixed/kink curves and expose curve params getter#193
liobrasil merged 2 commits intomainfrom
lionel/interest-curve-docs-getter

Conversation

@liobrasil
Copy link
Contributor

Summary

  • expand docs/interest_rate_and_protocol_fees.md so readers can understand debit and credit rate behavior without reading Cadence source
  • add clear FixedCurve vs KinkCurve formulas and a concrete Aave-style volatile profile example (45% optimal utilization, 0% base, 4% slope1, 300% slope2)
  • add public Pool read method getInterestCurveParams(tokenType) to expose curve configuration and current per-second rates
  • add new script cadence/scripts/flow-alp/get_interest_curve_params.cdc for direct querying by token type

Validation

  • flow test cadence/tests/update_interest_rate_test.cdc
  • flow test cadence/tests/interest_curve_test.cdc
  • flow test cadence/tests/pool_creation_workflow_test.cdc

@liobrasil liobrasil requested a review from a team as a code owner March 3, 2026 16:36
@liobrasil liobrasil merged commit dff584b into main Mar 10, 2026
1 check passed
@liobrasil liobrasil deleted the lionel/interest-curve-docs-getter branch March 10, 2026 17:05
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.

2 participants