Skip to content

money_precision

A policy diagnostic from deedglass policy lint and the policy routes.

Severity: error

The amount has more decimals than the currency’s minor unit: 2 for usd and inr, 0 for jpy, 3 for kwd. Deedglass never rounds money for you, so the amount you read is the amount that is enforced.

deedglass: policy/v1
name: refunds
defaults:
decision: deny
reason: No rule allows this action.
budgets:
- id: refunds-per-day
match: { tool: stripe.create_refund }
per: org
window: day
max_spend: "500.005 usd"
✕ policy.yaml:11:16 · money_precision
500.005 usd has more decimals than usd allows (2).
hint: Round it to 2 decimals, like "500.01 usd".

Fix:

max_spend: "500.01 usd"