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 closing of declined claims #57

Merged
merged 3 commits into from
Sep 8, 2022
Merged

Conversation

doerfli
Copy link
Contributor

@doerfli doerfli commented Sep 8, 2022

No description provided.

@doerfli doerfli added the bug Something isn't working label Sep 8, 2022
@@ -351,7 +351,8 @@ contract PolicyController is
"ERROR:POC-073:CLAIM_STATE_INVALID");

require(
claim.claimAmount == claim.paidAmount,
(claim.state == ClaimState.Confirmed && claim.claimAmount == claim.paidAmount)
|| (claim.state == ClaimState.Declined && claim.paidAmount == 0),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

no 0 check

@doerfli doerfli merged commit b46c9fa into master Sep 8, 2022
@doerfli doerfli deleted the bugfix/close-declined-claims branch September 8, 2022 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant