create an infinite number of claims with cumulative claimAmount
exceeding policy.payoutMaxAmount
#102
Labels
wontfix
This will not be worked on
In createClaim
gif-contracts/contracts/modules/PolicyController.sol
Lines 277 to 281 in b58fd27
Current implementation allows creation of claims with 0
claimAmount
but does not limits how many claims per policy is possible to create nor limits their cumulativeclaimAmount
.In such situation it is possible to create any number of claims with any cumulative
claimAmount
before callingPolicyController::confirmClaim()
where only part will succeed to confirm. The rest unconfirmed claims must be declined and closed in order to close policy.The text was updated successfully, but these errors were encountered: