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(bazaar): report which facilitator dropped out of an arbitrage scan

nirholasdfa5bc8e19d3
diff --git a/api/bazaar/arbitrage.js b/api/bazaar/arbitrage.js
index 4bdf70f2d..95455f8e8 100644
--- a/api/bazaar/arbitrage.js
+++ b/api/bazaar/arbitrage.js
@@ -286,6 +286,14 @@ async function handler(req, res) {
...(httpRes.sources || []).map((s) => ({ ...s, type: 'http' })),
...(mcpRes.sources || []).map((s) => ({ ...s, type: 'mcp' })),
],
+ // A partial outage leaves `sources` carrying ok:false rows and the
+ // opportunity list quietly shorter. Ship the reasons alongside so the
+ // page can name which facilitator dropped out instead of presenting a
+ // degraded view as the whole market.
+ errors: [
+ ...(httpRes.errors || []).map((e) => ({ ...e, type: 'http' })),
+ ...(mcpRes.errors || []).map((e) => ({ ...e, type: 'mcp' })),
+ ],
});
}