Conversation
I think the key distinction is what In Aave:
So if
That is the empty-reserve case: no supplied liquidity and no outstanding borrows. That is different from the fully-utilized case, where:
In that case, This is also how the Aave implementation behaves: it only computes So our defensive branch is making the same distinction:
|
UlyanaAndrukhiv
left a comment
There was a problem hiding this comment.
Thanks @liobrasil, got it! I missed that case is already handled by the early if debitBalance == 0.0 { return baseRate } check 😅


Summary
FlowALPMathdependency fromFlowALPInterestRatesTokenStatepathTesting
flow test cadence/tests/interest_curve_test.cdcflow test cadence/tests/kink_curve_utilization_regression_test.cdcflow test cadence/tests/update_interest_rate_test.cdcflow test cadence/tests/interest_accrual_integration_test.cdcCredit