Skip to content

fix(env): Various env-related robustness fixes/improvements#3419

Open
pxrl wants to merge 3 commits into
masterfrom
pxrl/binanceErr
Open

fix(env): Various env-related robustness fixes/improvements#3419
pxrl wants to merge 3 commits into
masterfrom
pxrl/binanceErr

Conversation

@pxrl
Copy link
Copy Markdown
Collaborator

@pxrl pxrl commented May 26, 2026

No description provided.

@pxrl pxrl changed the title improve: Don't error on missing BINANCE_API_KEY fix(env): Various env-related robustness fixes/improvements May 27, 2026
@pxrl
Copy link
Copy Markdown
Collaborator Author

pxrl commented May 27, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 631074a801

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +113 to +114
if (!binanceCredentialsConfigured()) {
return;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep Binance routes disabled without credentials

When BINANCE_API_KEY/secret are absent, this returns after super.initialize() has already stored all Binance routes and marked the adapter initialized. buildRebalanceRoutes() still emits Binance routes independently of hasBinanceRoute(), and CumulativeBalanceRebalancerClient evaluates candidate route costs by calling this.adapters[route.adapter].getEstimatedCost(...); any Binance candidate then reaches the binanceApiClient getter with _binanceApiClient unset and aborts the rebalance cycle. In no-Binance-credential environments with configured USDC/USDT/WETH cumulative targets, clear/filter availableRoutes (or avoid initializing the adapter/routes) instead of returning with supported routes but no client.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant