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 problem not allowing accrual of indexes when RF (Reserve Factor) is configured as 100% #315

Open
3 tasks
eboadom opened this issue Oct 13, 2022 · 0 comments

Comments

@eboadom
Copy link
Collaborator

eboadom commented Oct 13, 2022

Context

The problem/consequences are explained HERE.

How

Having a 100% RF is a legitimate configuration for a reserve, so the fix should be on the logic not properly handling that case, instead of only adding extra validation to not allow a set of 100%.

To be researched deeper, but highly probable that the change should be done around the condition of ReserveLogic not contemplating the 100% RF scenario.

Other initial aspects to consider:

eboadom added a commit to bgd-labs/protocol-v2 that referenced this issue Oct 13, 2022
- Changed condition for when indexes should be updated on _updateIndexes().
- Added condition to not do any update on updateState() if time has not passed since the previous update.
- Moved update location of reserve.lastUpdateTimestamp.
eboadom added a commit to bgd-labs/protocol-v2 that referenced this issue Oct 20, 2022
eboadom added a commit to bgd-labs/protocol-v2 that referenced this issue Oct 20, 2022
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

No branches or pull requests

1 participant