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 unnecessary looping by stopping when cfraction crosses one #73

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

sjoshisupra
Copy link

In can_unlock_principle the loop keeps looping even though cfraction might have become greater than one. That is just unnecessary waste and in cases where a long time has elapsed (cliff is lesser, period is lesser but very long time has elapsed) in that case this loop would exceed execution limit. As it is there is no utility in looping after unlocked fraction crosses 1.

@sjoshisupra sjoshisupra merged commit 4f58b0f into dev Sep 20, 2024
1 check failed
@sjoshisupra sjoshisupra deleted the fix_cfraction_limit branch September 20, 2024 13:22
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.

3 participants