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

yoctoNEAR amounts are handled exactly

near-yocto-precision

critical

Description

NEAR has 24 decimals, beyond the exact range of floating-point numbers. One yoctoNEAR above the limit must be blocked, and a 25th decimal place must be rejected.

integration · required · scenarios/near-yocto-precision.yaml

Outcomes across stored runs

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

Execution history

Most recent steps

  1. #1proposepassed
    Expected
    {
      "decision": "BLOCK",
      "reason_codes": [
        "AMOUNT_EXCEEDS_TRANSACTION_LIMIT"
      ],
      "reason_codes_exact": false,
      "absent_reason_codes": []
    }
    Observed
    {
      "decision": "BLOCK",
      "reason_codes": [
        "AMOUNT_EXCEEDS_TRANSACTION_LIMIT",
        "APPROVAL_REQUIRED_AMOUNT"
      ],
      "replay": false
    }
  2. #2proposepassed
    Expected
    {
      "decision": "BLOCK",
      "reason_codes": [
        "AMOUNT_EXCEEDS_TRANSACTION_LIMIT"
      ],
      "reason_codes_exact": false,
      "absent_reason_codes": []
    }
    Observed
    {
      "decision": "BLOCK",
      "reason_codes": [
        "AMOUNT_EXCEEDS_TRANSACTION_LIMIT",
        "APPROVAL_REQUIRED_AMOUNT"
      ],
      "replay": false
    }
  3. #3proposepassed
    Expected
    {
      "decision": "BLOCK",
      "reason_codes": [
        "AMOUNT_PRECISION_EXCEEDED"
      ],
      "reason_codes_exact": false,
      "absent_reason_codes": []
    }
    Observed
    {
      "decision": "BLOCK",
      "reason_codes": [
        "AMOUNT_PRECISION_EXCEEDED"
      ],
      "replay": false
    }