Skip to content
Drainproof
Demo mode. These reports are fixtures generated by running the Drainproof CLI against the bundled example policies. They are not results from your project.

← Scenario library

One smallest unit above the maximum is blocked

tx-limit-one-unit-above-maximum

critical

Description

25.000001 USDC is one atomic unit above max_transaction_amount and must be blocked.

Remediation: Do not use floating-point comparison or rounding for limits. Convert amounts to integer atomic units and keep max_transaction_amount at the intended value.

transaction-limits · required · ../../packages/cli/templates/scenarios/transaction-limits/tx-limit-one-unit-above-maximum.yaml

Outcomes across stored runs

  • Pass 3
  • Fail 1
  • Error 0
  • Skipped 0

Execution history

Most recent steps

  1. #1proposepasseddecision checked; reason codes not checked (target does not report them)
    Expected
    {
      "decision": "BLOCK",
      "reason_codes": [
        "AMOUNT_EXCEEDS_TRANSACTION_LIMIT"
      ],
      "reason_codes_exact": false,
      "absent_reason_codes": []
    }
    Observed
    {
      "decision": "BLOCK",
      "reason_codes": []
    }