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(economy): rebalance cron read signer pubkey from resolver result

nirholas9f97138aa2c4
diff --git a/api/cron/economy-rebalance.js b/api/cron/economy-rebalance.js
index c4a11a5a4..92e28d5b6 100644
--- a/api/cron/economy-rebalance.js
+++ b/api/cron/economy-rebalance.js
@@ -78,7 +78,8 @@ export default wrapCron(async (req, res) => {
for (const cfg of USDC_WALLETS) {
const spec = SOLANA_SIGNERS.find((s) => s.name === cfg.role);
if (!spec) continue;
- const pubkey = await resolveSignerPubkey(spec).catch(() => null);
+ const resolved = await resolveSignerPubkey(spec).catch(() => null);
+ const pubkey = resolved?.pubkey;
if (!pubkey) continue;
const { sol, usdc } = await readWallet(connection, pubkey);
const floorUsd = Number(process.env[cfg.floorEnv]) || cfg.floorDflt;