Advanced Technical Details
Circuit breaker, precision, rate limits, storage limits, and error handling details
Written By pvdyck
Last updated 1 day ago
Advanced Technical Details
This page covers details for advanced Builders and Producers who want a deeper understanding of platform behavior.
Circuit Breaker
The circuit breaker stops execution if costs exceed the user-defined maximum (maxExecutionPrice). The check is strict: if the next API call would push the total over the ceiling, the call is rejected and execution stops.
When the circuit breaker triggers, you see:
Cost ceiling reached ($X.XXXX). Execution stopped to prevent overcharge. Current: $Y.YYYY, attempted: $Z.ZZZZLegacy workflows (pre-circuit-breaker) do not have maxExecutionPrice validation. Migration is recommended.
Monetary Precision
Precision Standard
All monetary values use 6-decimal precision to avoid rounding errors:
1 InUSD = 1,000,000 units (6-decimal precision, like cents to dollars)
Rounding Strategy
- Toward zero for refunds (favors user)
- Ceiling for charges (prevents undercharging)
- Banker's rounding for ties (.5 rounds to nearest even)
Storage Limits
Rate Limits
Error Handling
Retry Policy
Failed payment operations are logged and retried automatically only for transient errors. Persistent failures are flagged for review.