Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Track accrued interest per period #234

Closed
hieronx opened this issue Apr 4, 2024 · 4 comments
Closed

Track accrued interest per period #234

hieronx opened this issue Apr 4, 2024 · 4 comments
Assignees
Labels
Story Issue covering a requirement as user story

Comments

@hieronx
Copy link

hieronx commented Apr 4, 2024

No description provided.

@hieronx hieronx changed the title Accrued interest Track accrued interest per period Apr 4, 2024
@filo87 filo87 added the Story Issue covering a requirement as user story label Apr 8, 2024
@filo87 filo87 self-assigned this Apr 18, 2024
@filo87
Copy link

filo87 commented Apr 19, 2024

@hieronx, should that be tracked at single loan level? or aggregated at pool level? At what entity do you need this?

@hieronx
Copy link
Author

hieronx commented Apr 19, 2024

@filo87 this was related to the P&L statement, so should be at the pool level. I imagine a sumInterestAccruedByPeriod property in PoolSnapshot

@filo87
Copy link

filo87 commented Apr 19, 2024

@hieronx Can we compute this as the variation in outstandingInterestfrom the portfolio call? What if there are Interest Repayments?

@hieronx
Copy link
Author

hieronx commented Apr 19, 2024

@filo87 yeah I think it should be outstandingInterest + repaidInterestAmountByPeriod - outstandingInterestPreviousPeriod

Say the interest outstanding was previously 12 USDC, there is 1 USDC interest accrual per day, and there was an interest repayment of 5. Then new outstanding interest would be 8. We can derive interest accrued based on 5 + 8 - 12 = 1 USDC.

filo87 added a commit that referenced this issue Apr 19, 2024
@filo87 filo87 closed this as completed in f284553 Apr 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Story Issue covering a requirement as user story
Projects
None yet
Development

No branches or pull requests

2 participants