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 claim payments post maturation #90

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

amarinkovic
Copy link
Member

@amarinkovic amarinkovic commented Oct 26, 2023

Claims can be paid out even after policy has matured. This causes an underflow.

Solution is not to update locked balance and entity utilisation rate in such case. Payment is done only if there is enough balance available. Locked funds cannot be used for this.

Bug was discovered analysing this Immunefi report: IM-25127

@melks
Copy link

melks commented Oct 26, 2023

1 similar comment
@melks
Copy link

melks commented Oct 26, 2023

@amarinkovic amarinkovic changed the title Fix claim payments post maturation [CU-8692zyya1] Fix claim payments post maturation Oct 26, 2023
@amarinkovic amarinkovic force-pushed the IM-25127_pay_claim_post_maturation branch from 06af514 to 97a1aba Compare October 31, 2023 08:35
@amarinkovic amarinkovic merged commit 027aa95 into dev Oct 31, 2023
4 checks passed
@amarinkovic amarinkovic deleted the IM-25127_pay_claim_post_maturation branch October 31, 2023 08:44
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