Skip to content

Delegate interest rate logic to a controller - #1

Open
TRiLeZ wants to merge 3 commits into
TrueFi-Protocol:mainfrom
adrastia-oracle:feature/pid-interest-rates
Open

TRiLeZ wants to merge 3 commits into
TrueFi-Protocol:mainfrom
adrastia-oracle:feature/pid-interest-rates

Conversation

@TRiLeZ

@TRiLeZ TRiLeZ commented Nov 19, 2023

Copy link
Copy Markdown

This PR removes interest rate computation from AutomatedLineOfCredit and delegates to a controller to provide this calculation. This allows for plug-and-play functionality of interest rate controllers.

The old logic of interest rate calculation for AutomatedLineOfCredit has been extracted into a controller named LinearKinkInterestRateController.

More consideration of the constructor parameters and various getter functions for AutomatedLineOfCredit is needed, specifically with _interestRateParameters as only the optimal utilization rate is relevant.

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.

1 participant