Skip to content

can create infinite amount of payouts per claim #106

@rapidddenis

Description

@rapidddenis

in createPayout

function createPayout(
bytes32 processId,
uint256 claimId,
uint256 payoutAmount,
bytes calldata data
)

Implementation does not limits number of payouts per claim nor limits their cumulative payoutAmount.
In this situation it is possible to create any number of payouts with their cumulative payoutAmount exceeding claim.claimAmount and then process them. In this case claim.paidAmount > claim.claimAmount and claim will refuse to close.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions