Skip to content

Commit f67ae71

Browse files
committed
feat: bump to v1.1.6 — dust detection, dedup hardening, chart fix, amaS% revert
Aggregates three prior hotfix commits plus the amaS% revert under the v1.1.6 release. ## Fix: dust detection on partial-only fill batches File: modules/dexbot_class.ts, dexbot_maintenance_runtime.ts - Post-fill dust check was gated on fullFillCount > 0, so partial fills reducing orders below the dust threshold went undetected until the 4h periodic fetch. Introduced hasAnyFills/shouldRunDustDetection independent of full fills. ## Fix: orphan fill double-credit race File: modules/dexbot_class.ts, modules/bitshares-native/subscriptions.ts - Orphan fills continued before Layer 1/2 dedup, allowing a redelivery to slip through the async gap. Replicated dedup in all three orphan paths. Extended stale-cleaned retention 5 min → 7 days with 500-entry cap. Subscription watchdog resubscribes once per stall, not per account. ## Fix: TradingView chart AMA resolution drift File: analysis/tradingview/analyze_tradingview.ts - Used DEFAULT_AMA_KEY (AMA3) instead of selectedProfile.defaultAma; added .trim().toLowerCase(), AMA_KEYWORDS set, built-in fallback. ## Revert: amaS% 0.08 → 0.085 File: modules/constants.ts, DYNAMIC_WEIGHT_RESEARCH.md - Reverses v1.1.3 retune. Slightly higher saturation threshold. ## Version sync - 14 files updated to 1.1.6 via npm run version:sync - EVOLUTION.md counters bumped (commits 1738→1739, releases 53→54)
1 parent 17f7cbc commit f67ae71

14 files changed

Lines changed: 32 additions & 22 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.1.6] - 2026-07-14 - Dust Detection Fix, Dedup Hardening, Chart AMA Alignment, amaS% Revert
6+
7+
### 2026-07-14
8+
9+
- **Fix**: dust detection now runs on partial-only fill batches — post-fill dust check was gated on `fullFillCount > 0`, so a partial fill that reduced an order below the dust threshold would be undetected until the 4-hour periodic blockchain fetch. Added `hasAnyFills`/`shouldRunDustDetection` independent of full fills, `performPeriodicGridChecks` after sync ticks, and targeted drift reconciliation after fill processing (`17f7cbc3`).
10+
- **Fix**: orphan fill double-credit race — orphan fills `continue`d before reaching Layer 1/2 dedup checks, allowing a second delivery to slip through the async gap. Replicated Layer 1/2 dedup in all three orphan paths. Extended stale-cleaned tombstone retention from 5 min to 7 days (`_fillRecordRetentionMs`) with 500-entry hard cap. Subscription health watchdog now resubscribes once per feed stall instead of redundantly per account; re-entrancy guard added (`18ed90da`).
11+
- **Fix**: TradingView chart AMA resolution drift — chart generator used `DEFAULT_AMA_KEY` (AMA3) instead of `selectedProfile.defaultAma` for `gridPrice: "ama"` and non-AMA grid prices. Added `.trim().toLowerCase()`, `AMA_KEYWORDS` Set, and built-in constants fallback to match the runtime's tolerant chain (`2aeffda7`).
12+
- **Revert**: restore `DYNAMIC_WEIGHT_AMA_MAX_SLOPE_PCT` from 0.08 back to 0.085 — reverses the v1.1.3 retune; requires a slightly stronger trend before the AMA weight offset reaches full effect (`modules/constants.ts`, `analysis/trend_detection/DYNAMIC_WEIGHT_RESEARCH.md`).
13+
514
## [1.1.5] - 2026-07-14 - AMA Refit, Oversized Credit Deal Splitter & Per-op Borrow Cap
615

716
### 2026-07-14

analysis/ama_fitting/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ama_fitting",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"description": "Tools for fitting AMA parameters to market data",
55
"main": "../../dist/analysis/ama_fitting/optimizer_high_resolution.js",
66
"scripts": {

analysis/trend_detection/DYNAMIC_WEIGHT_RESEARCH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ All panels share aligned vertical time grid lines, and the bottom output panel s
159159
|------|-------|---------|---------|
160160
| **nz%** | 0–1 | 0.00 | Neutral zone: dead-band below which offset is forced to 0 |
161161
| **lb** | 1–32 | 9 | Logarithmic. Lookback bars for AMA slope calculation |
162-
| **amaS%** | 0.04–0.12 | 0.08 | Logarithmic. Gear ratio for average per-bar AMA slope saturation |
162+
| **amaS%** | 0.04–0.12 | 0.085 | Logarithmic. Gear ratio for average per-bar AMA slope saturation |
163163
| **kalS%** | 0.15–1.5 | 0.8 | Logarithmic. Gear ratio for Kalman composite saturation |
164164
| **clip%** | 0–55 | 10 | Percentile clip: filters extreme inputs (0 = off) |
165165

claw/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dexbot2-claw",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"private": true,
55
"description": "Claw bridge and runtime integration layer for BitShares and DEXBot2.",
66
"type": "commonjs",

claw/runtimes/openclaw-plugin/openclaw.plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "bitshares-claw",
33
"name": "BitShares Claw",
44
"description": "Native BitShares and DEXBot2 tools from the DEXBot2 claw integration",
5-
"version": "1.1.5",
5+
"version": "1.1.6",
66
"skills": [
77
"skills"
88
],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bitshares-claw-openclaw-plugin",
33
"private": true,
4-
"version": "1.1.5",
4+
"version": "1.1.6",
55
"type": "commonjs",
66
"main": "index.js"
77
}

claw/tests/test_claw_mcp_transport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function testParserAcceptsJsonlAcrossChunksAndSingleBuffer() {
3030
capabilities: {},
3131
clientInfo: {
3232
name: 'claw-mcp-transport-test',
33-
version: '1.1.5'
33+
version: '1.1.6'
3434
},
3535
protocolVersion: '2024-11-05'
3636
}
@@ -181,7 +181,7 @@ async function testMainEntrypointHandlesRealProcessInitialize() {
181181
capabilities: {},
182182
clientInfo: {
183183
name: 'claw-mcp-transport-test',
184-
version: '1.1.5'
184+
version: '1.1.6'
185185
},
186186
protocolVersion: '2024-11-05'
187187
}

docs/DEXBOT_COMPARISON.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DEXBot vs DEXBot2 — Detailed Comparison Report
22

33
> **Date:** 2026-07-11 *(metrics refreshed against local source trees)*
4-
> **Scope:** Full architectural, functional, and operational comparison between the original [DEXBot](https://github.com/Codaone/DEXBot) (Python, v1.0.0) and DEXBot2 (TypeScript, v1.1.5).
4+
> **Scope:** Full architectural, functional, and operational comparison between the original [DEXBot](https://github.com/Codaone/DEXBot) (Python, v1.0.0) and DEXBot2 (TypeScript, v1.1.6).
55
> **Audience:** Developers, contributors, and operators evaluating or migrating between the two projects.
66
77
---
@@ -36,7 +36,7 @@
3636

3737
| Attribute | DEXBot (original) | DEXBot2 |
3838
|---|---|---|
39-
| **Release Track** | 1.0.0 | v1.1.5 |
39+
| **Release Track** | 1.0.0 | v1.1.6 |
4040
| **Language** | Python 3.6+ | TypeScript 5.x |
4141
| **Status** | Released 1.0.0, unmaintained | Active development |
4242
| **Last Repo Activity** | May 23, 2020 | 2026-07-10 |
@@ -782,7 +782,7 @@ Where:
782782

783783
| Metric | DEXBot | DEXBot2 |
784784
|---|---|---|
785-
| **Release Track** | 1.0.0 | v1.1.5 |
785+
| **Release Track** | 1.0.0 | v1.1.6 |
786786
| **Active Since** | ~2018 | December 2025 |
787787
| **Last Commit** | May 23, 2020 | 2026-07-10 |
788788
| **Total Commits** | 2281 | 1713 at current HEAD |

docs/EVOLUTION.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## Executive Summary
44

5-
DEXBot2 is a sophisticated decentralized exchange trading bot for the BitShares blockchain. This report documents the complete evolution of the project from its inception in December 2025 through the current 1.1.5 stable release.
5+
DEXBot2 is a sophisticated decentralized exchange trading bot for the BitShares blockchain. This report documents the complete evolution of the project from its inception in December 2025 through the current 1.1.6 stable release.
66

77
### Key Milestones
88
- **Project Inception**: December 2, 2025
9-
- **Growth Phase**: 1,738+ commits over ~7 active months
9+
- **Growth Phase**: 1,739+ commits over ~7 active months
1010
- **Code Maturity**: Evolution from basic utilities to a ~58,000+ LoC intelligent TypeScript system
1111
- **Stability**: Progression from manual testing to a suite of 200+ automated test files
12-
- **Releases**: 53 release entries (v0.1.0 to v1.1.5)
12+
- **Releases**: 54 release entries (v0.1.0 to v1.1.6)
1313

1414
---
1515

@@ -128,6 +128,7 @@ Compact view; per-commit detail lives in [CHANGELOG.md](../CHANGELOG.md).
128128
| v1.1.2 → v1.1.3 | 4 | AMA refit (λ=0.0025/step=0.0003), per-AMA distance weights, tsx-CJS export fix, amaS% retune 0.085→0.08, doc sync |
129129
| v1.1.3 → v1.1.4 | 3 | AMA4 slow correction 107.4→102.4, optimizer range 50-200→40-160, post-tag doc sync |
130130
| v1.1.4 → v1.1.5 | 2 | AMA refit (per-AMA λ weights, SMA-warmup optimizer, slow 62.1/71.7/82.7/95.5), `maxBorrowAmountPerOperation` + oversized-deal splitter |
131+
| v1.1.5 → v1.1.6 | 1 | amaS% revert 0.08→0.085 |
131132

132133
---
133134

@@ -179,7 +180,7 @@ DEXBot2 has matured from a basic grid bot into a signal-intelligent, production-
179180
---
180181

181182
**Report Originally Generated**: February 19, 2026
182-
**Last Updated**: July 14, 2026 (v1.1.5)
183-
**Total Commits**: 1,738
183+
**Last Updated**: July 14, 2026 (v1.1.6)
184+
**Total Commits**: 1,739
184185
**Date Range**: December 2, 2025 - July 14, 2026 (ongoing)
185186
**Repository**: DEXBot2 (BitShares DEX Trading Bot)

docs/FUND_MOVEMENT_AND_ACCOUNTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,4 +806,4 @@ To prevent "Time-of-Check to Time-of-Use" errors:
806806
3. **Bootstrapping:** Fills arriving during startup (`isBootstrapping=true`) are queued until the grid is fully reconciled.
807807
808808
---
809-
*Technical Reference for DEXBot2 v1.1.5 release*
809+
*Technical Reference for DEXBot2 v1.1.6 release*

0 commit comments

Comments
 (0)