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

Transaction exactly at the maximum is evaluated correctly

tx-limit-exactly-at-maximum

high

Description

A payment of exactly max_transaction_amount (25 USDC) is not over the limit. Because it is above the approval threshold it needs approval, and with a valid approval it is allowed.

Remediation: Compare amounts with exact integer arithmetic and use a strict "greater than" for the limit.

transaction-limits · required · ../../packages/cli/templates/scenarios/transaction-limits/tx-limit-exactly-at-maximum.yaml

Outcomes across stored runs

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

Execution history

Most recent steps

No steps were executed (target "naive-guard" does not support: approvals).