Release: develop -> main#84
Merged
Merged
Conversation
Bot URLs (prd/dev) live as code config in src/config/constants.ts. The deployment-env split is driven by a new DEPLOYMENT_ENV env var (zod-validated as enum 'prd'|'dev', no default). The dashboard HTML gains a small footer with a Telegram icon and "Get alerts" CTA pointing to the env-resolved bot. Compose for both rangekeeper-dev and rangekeeper-prd in DFXswiss/server must set DEPLOYMENT_ENV=dev or =prd before this lands; otherwise the container will refuse to start with a zod validation error.
The dashboard's BTC/USD reference value (charted alongside the pool's price) was the last health-server call going to api.coingecko.com directly from this container's IP. Route it through the in-cluster pricing-proxy (DFXswiss/pricing-proxy) instead, so the upstream key and the 60 s cache + monthly quota monitor live in one place and this service stops competing with rest of the host for the free-tier 30 req/min IP quota. `COINGECKO_BASE_URL` defaults to the proxy URL inside the cluster; set it to https://api.coingecko.com (or pro-api.coingecko.com with an x-cg-pro-api-key header, not implemented here because the simple public endpoint we need works on the free tier) for local dev.
* Add pool-level enabled flag to pause trading without stopping the bot When enabled is false (default true), the bot keeps polling prices, updating the health dashboard, recording history and tracking the portfolio, but skips: - token wrapping at startup (cBTC→WCBTC, JUSD→svJUSD) - NFT manager and swap router token approvals - depeg detection, initial band minting and band rebalances Set enabled: false for svjusd-wcbtc-citrea in pools.dev.yaml so the DEV bot stops attempting transactions on a wallet that ran out of gas. * Gate RESET_BANDS path with tradingEnabled The RESET_BANDS env-triggered emergency withdraw was the last remaining code path that could send transactions when a pool is configured with enabled: false. Gate it so a disabled pool stays inactive regardless of env vars.
TaprootFreak
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automatic Release PR
This PR was automatically created after changes were pushed to develop.
Commits: 1 new commit(s)
Checklist