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

close policy when closing last claim of expired policy #104

Open
rapidddenis opened this issue May 29, 2023 · 1 comment
Open

close policy when closing last claim of expired policy #104

rapidddenis opened this issue May 29, 2023 · 1 comment

Comments

@rapidddenis
Copy link

In closeClaim

function closeClaim(bytes32 processId, uint256 claimId)

There is no check to close the corresponding policy if it is expired and have no open claims

@matthiaszimmermann
Copy link
Contributor

very nice analysis and true.

this is in the unclear area of what is good usability for the people implementing products on top of the gif framework and too much hidden magic ;)

would you consider this "just" a usability improvement or can you motivate why this should be classified as a bug?

in any case the current handling is inconsistent with the handling of claims... we do close the claim once all payouts associated with the claims have been processed (ie once the claim amount matches with the paid out amount)

"fixing" this would imply a breaking change in any case.

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

2 participants