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 that would exceed the daily limit is blocked

daily-spend-would-exceed-limit

critical

Description

With 95 USDC already spent today, a further 10 USDC would exceed the 100 USDC daily limit.

Remediation: Include all reserved, submitted and confirmed transactions in the daily total before authorising.

transaction-limits · required · ../../packages/cli/templates/scenarios/transaction-limits/daily-spend-would-exceed-limit.yaml

Outcomes across stored runs

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

Execution history

Most recent steps

  1. #1proposefailedexpected BLOCK, observed ALLOW
    Expected
    {
      "decision": "BLOCK",
      "reason_codes": [
        "DAILY_SPEND_LIMIT_EXCEEDED"
      ],
      "reason_codes_exact": false,
      "absent_reason_codes": []
    }
    Observed
    {
      "decision": "ALLOW"
    }