Commit 49ae64f
fix(strategy-switch): add crypto_btc_dca to DCA configs + pass through combo_enabled
Threefold fix:
1. Hardcoded DCA_PROFILE_CONFIG (worker.js) and dcaProfileDefaults (index.html):
- Added crypto_btc_dca with default_mode=fixed, base_investment=100
2. API response: normalizeStrategyProfilesPayload now reads item.dca_enabled
AND item.combo_enabled from incoming payload, not just hardcoded config
3. Frontend applyStrategyProfiles: reads item.dca_enabled from API alongside
dcaProfileDefaults fallback
Also synced KV strategy_profiles to latest build from
strategy_profiles_asset.js (via Cloudflare API).
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 502ccce commit 49ae64f
3 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1659 | 1659 | | |
1660 | 1660 | | |
1661 | 1661 | | |
| 1662 | + | |
1662 | 1663 | | |
1663 | 1664 | | |
1664 | 1665 | | |
| |||
2282 | 2283 | | |
2283 | 2284 | | |
2284 | 2285 | | |
2285 | | - | |
| 2286 | + | |
2286 | 2287 | | |
2287 | 2288 | | |
2288 | 2289 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
1408 | 1409 | | |
1409 | 1410 | | |
1410 | 1411 | | |
1411 | | - | |
1412 | | - | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
1413 | 1416 | | |
1414 | 1417 | | |
1415 | 1418 | | |
| |||
1420 | 1423 | | |
1421 | 1424 | | |
1422 | 1425 | | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
1423 | 1431 | | |
1424 | 1432 | | |
1425 | 1433 | | |
| |||
0 commit comments