Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: interest rate calculations #25

Merged
merged 4 commits into from
Sep 5, 2024
Merged

Conversation

Teolhyn
Copy link
Contributor

@Teolhyn Teolhyn commented Sep 4, 2024

  • Added crude (currently outputs constant) interest rate function
  • Added functionality that calculates interest for time since last update
  • Added health-factor update to be done at the same time as interest is updated (currently can become very costly as reflector is called for each loan, while price stays the same)

@Teolhyn Teolhyn force-pushed the feat/interest-rate-calculations branch from a837cbc to c2cd59b Compare September 5, 2024 07:17
@Teolhyn Teolhyn force-pushed the feat/interest-rate-calculations branch from c2cd59b to b52d6a2 Compare September 5, 2024 07:19
@Teolhyn Teolhyn requested a review from kovipu September 5, 2024 07:45
@Teolhyn Teolhyn force-pushed the feat/interest-rate-calculations branch from 3381a88 to 38a7a0d Compare September 5, 2024 09:39
Comment on lines +11 to +13
#[allow(dead_code, unused_variables)]

pub fn get_interest(e: Env, pool: Address) -> i128 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Miksi tässä välissä newline? Funktiota ei myöskään käytetä, tehty tulevaisuuden varalle?

@Teolhyn Teolhyn merged commit a389ae9 into main Sep 5, 2024
4 checks passed
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