T402 API Reference - v2.9.0
    Preparing search index...

    Function isVerdictAmountConsistent

    • Validate the verdict ↔ settledAmount consistency rule from the spec §Verification: denied/void → settledAmount == 0; upheld_full → settledAmount == dispute.requestedAmount; upheld_partial → 0 < settledAmount <= dispute.requestedAmount.

      Parameters

      • resolution: SignedResolution

        The resolution to validate.

      • disputeRequestedAmount: string

        The amount the original dispute requested.

      Returns boolean