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

Asset precision errors are rejected

asset-precision-exceeded

high

Description

USDC has 6 decimals; an amount with 7 significant decimals must be rejected, not rounded.

Remediation: Reject amounts with more precision than the asset supports instead of rounding or truncating them.

network-asset · required · ../../packages/cli/templates/scenarios/network-asset/asset-precision-exceeded.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": [
        "AMOUNT_PRECISION_EXCEEDED"
      ],
      "reason_codes_exact": false,
      "absent_reason_codes": []
    }
    Observed
    {
      "decision": "ALLOW"
    }