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

fix: Fix lastInterestRateAdjTime when leaving/joining batches #388

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

bingen
Copy link
Collaborator

@bingen bingen commented Aug 28, 2024

Also add tests and a section to README.

Also add tests and a section to README.
@bingen bingen added the Dedaub label Aug 28, 2024
@bingen bingen self-assigned this Aug 28, 2024
@danielattilasimon
Copy link
Collaborator

danielattilasimon commented Aug 29, 2024

| BorrowerOperations          |   24,584 |         -8 |

😭 😭

Edit: nevermind, I guess it's because of the commit it's based on, not any changes in this PR, so it should be fine once merged.

@bingen
Copy link
Collaborator Author

bingen commented Aug 29, 2024

I guess it's because of the commit it's based on ...

Yes, that was fixed here:

#390

Copy link
Collaborator

@danielattilasimon danielattilasimon left a comment

Choose a reason for hiding this comment

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

Looks good!

@bingen bingen merged commit 5b32973 into main Aug 29, 2024
7 checks passed
##### Joining a batch
When a trove joins a batch, it pays upfront fee if the last trove adjustment was done more than the cool period ago. It does’t matter if trove and batch have the same interest rate, or when was the last adjustment by the batch.

The last interest rate timestamp will be updated to the time of joining.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps we could specify "The trove's last interest ..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants