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

Double locked balance #81

Merged
merged 8 commits into from
Oct 20, 2023
Merged

Double locked balance #81

merged 8 commits into from
Oct 20, 2023

Conversation

amarinkovic
Copy link
Member

@amarinkovic amarinkovic commented Oct 5, 2023

Apparently when creating a simple policy, we only check the available balance against a desired utilised capacity, without excluding any locked funds.

As a consequence of that, it may happen that an account gets more balance locked than the actual balance available.

Bug was originally reported through Immunefi: IM-24430

@amarinkovic amarinkovic changed the title Double balance locked [IM-24430] Double balance locked [CU-8692y5fhm] Oct 17, 2023
@amarinkovic amarinkovic changed the title Double balance locked [CU-8692y5fhm] Double balance locked Oct 17, 2023
@amarinkovic amarinkovic changed the title Double balance locked Double locked balance Oct 18, 2023
@amarinkovic amarinkovic force-pushed the double_locked_balance branch 2 times, most recently from ef3de07 to ea12add Compare October 18, 2023 10:43
@amarinkovic amarinkovic marked this pull request as ready for review October 18, 2023 13:51
@amarinkovic amarinkovic force-pushed the double_locked_balance branch from dc96bd6 to 8877db8 Compare October 18, 2023 13:52
@nayms nayms deleted a comment from melks Oct 18, 2023
@nayms nayms deleted a comment from melks Oct 18, 2023
@amarinkovic amarinkovic merged commit c916abb into dev Oct 20, 2023
4 checks passed
@amarinkovic amarinkovic deleted the double_locked_balance branch October 20, 2023 09:00
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.

2 participants