Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(x402): sweep the ring payer float every 60s to match the settle cadence

nirholasbb35ceef0c48
diff --git a/api/_lib/x402/autonomous-registry.js b/api/_lib/x402/autonomous-registry.js
index c455d7276..93784cb55 100644
--- a/api/_lib/x402/autonomous-registry.js
+++ b/api/_lib/x402/autonomous-registry.js
@@ -2710,17 +2710,19 @@ const SELF_ENDPOINTS = [
// is set. Value sink: x402_ring_ledger (kind='sweep'). See
// pipelines/ring-rebalance.js.
//
- // Cooldown 120s (was 300s): the per-minute ring tick cycles the payer float
- // far faster than the old 5-min volume-only cadence, so the rebalancer must
- // keep up or the payer drains between sweeps. Sweep threshold is env-tunable
- // via X402_RING_MIN_SWEEP_ATOMIC.
+ // Cooldown 60s (was 120s, before that 300s): with the settle carrier firing
+ // every minute at $10.00, a 2-minute sweep cadence let the payer drain to
+ // its floor between sweeps and degraded most settle ticks to cheap-only
+ // (observed 2026-07-25 at the 94-call/min scale). The sweep must match the
+ // settle cadence. Sweep threshold is env-tunable via
+ // X402_RING_MIN_SWEEP_ATOMIC.
{
id: 'ring-rebalance',
name: 'Ring Rebalancer',
path: '/api/x402/ring-settle',
method: 'POST',
body: null,
- cooldown_s: 120,
+ cooldown_s: 60,
priority: 20,
pipeline: 'volume',
enabled: true,