You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the tick of every block, blockchain should keep track of the total amount of outstanding balance, with interest included.
Similar to DEX rewards, interest is calculated at every block. For performance reasons, it should be calculated lazily, i.e. at the tick of a block there is no need to calculate loan value for every single vaults.
@uzyn: Thanks for opening an issue, it is currently awaiting triage.
The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.
Details
I am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository.
At the tick of every block, blockchain should keep track of the total amount of outstanding balance, with interest included.
Similar to DEX rewards, interest is calculated at every block. For performance reasons, it should be calculated lazily, i.e. at the tick of a block there is no need to calculate loan value for every single vaults.
Interest can come in 2 forms:
See https://github.com/DeFiCh/pinkpaper/tree/main/loan#interest-rate
Suggested data implementation
DB keeps track of
Calculation needs to be triggered on the following events:
The text was updated successfully, but these errors were encountered: