Skip to content

Feat/UI live ready image#289

Merged
Bug-Hunty merged 10 commits intomainfrom
feat/ui-live-ready-image
Apr 13, 2026
Merged

Feat/UI live ready image#289
Bug-Hunty merged 10 commits intomainfrom
feat/ui-live-ready-image

Conversation

@rigocrypto
Copy link
Copy Markdown
Owner

No description provided.

GitHub Copilot added 8 commits April 13, 2026 12:38
… dynamicCU (EXP-018)

Root cause of systematic 0x1788 (error 6024): bot was sending
static computeUnitLimit + computeUnitPriceMicroLamports and omitting
dynamicSlippage, which conflicts with current Jupiter v1 API
expectations. Jupiter's on-chain Route/SharedAccountsRoute instruction
rejected every swap at validation.

Changes:
- buildSwapTransaction: switch to dynamicComputeUnitLimit: true +
  dynamicSlippage: true + prioritizationFeeLamports object
  (matches Jupiter official example pattern)
- Remove static computeUnitLimit/computeUnitPriceMicroLamports from
  swap POST body (CU still logged on startup for reference)
- Log full swap build request payload (endpoint, flags, priority config)
- Log dynamicSlippageReport from Jupiter response
- Log swap build error response body on HTTP failure

Zero-risk change: quote + route selection + risk policy unchanged.
Only the swap-build POST body is affected.
Remove Math.max(1,...) floor that forced \ minimum trade even when
wallet balance was below \, causing systematic InsufficientFunds (6024).

Changes:
- Cap targetSizeUsd at balanceUsd so we never request more than we hold
- Add post-cap minTradeSizeUsd guard to skip gracefully when too small
- Add position sizing debug log (balanceUsd, proposedSize, targetSize, scale)
- Add inAmount/inputMint/outputMint to swap attempt log for diagnostics
…yManager

Log actual feeLamports, feeSol, computeUnitsConsumed, and effectiveCuPrice
after confirmed swaps (both trade execution and funding rebalance).
Best-effort: non-critical failures silently caught.
… logging

- PriorityFeeEstimator: queries getRecentPrioritizationFees, percentile-based
  fee selection (default 75th), floor/cap clamping, 10s cache TTL, static fallback
- Executor: dynamic fee in buildSwapTransaction, net-realized-edge logging
  (expectedGrossUsd - executionFeeUsd = netExpectedAfterFeesUsd)
- InventoryManager: dynamic fee in executeFundingSwap, logs fee source/level
- Scanner: creates shared PriorityFeeEstimator, passes to Executor + IM
- Config: 6 new env vars (SOLANA_DYNAMIC_PRIORITY_FEE, percentile, floor, cap,
  static fallback, cache TTL)
- Tests: 9 new unit tests for PriorityFeeEstimator (54 total, all passing)
…landing tracker, net-edge accumulator

- SpeedTierPolicy: standard/priority/ultra tiers with configurable percentile, timeout, minNet, riskBuffer
- LandingTracker: rolling-window tx outcome tracking with auto-escalation on low landing rate
- NetEdgeAccumulator: per-trade economics accumulator with sticky trade-size floor
- Executor: execution gate (fee + slippage + riskBuffer check), landing tracker recording, net-edge feed
- PriorityFeeEstimator: percentileBoost/cap support, account-specific vs global source tagging
- InventoryManager: maxRebalanceCostBps rebalance economic gate
- Scanner: wires all EXP-020 deps, startup diagnostics log
- config: exp020Config with env-driven overrides
- 4 new test suites (34 tests), all 89 tests green
…tion template

- Add SessionMetrics class: funnel counters, reject-reason breakdown,
  quote-age stats, fee normalization (BPS of notional), trade economics
- Wire SessionMetrics into Scanner (discovered), Executor (gate/build/
  submit/confirm/expired/failed + quoteAgeMs + feeNorm), InventoryManager
  (rebalance evaluated/rejected)
- Fix double-counting in recordFeeNormalization (separate BPS from USD)
- Periodic summary log: [SESSION] periodic_summary every 10 min (configurable)
- 19 new unit tests (session-metrics.test.ts) — all 109/109 pass
- EXP-020_LIVE_VALIDATION.md: structured go/no-go checklist with exact log
  field names, healthy ranges, red flags, config knobs, grep reference
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
arbimind Ready Ready Preview Apr 13, 2026 8:12pm

@railway-app
Copy link
Copy Markdown

railway-app bot commented Apr 13, 2026

🚅 Deployed to the arbimind-pr-289 environment in ArbiMind

3 services not affected by this PR
  • Postgres
  • arbimind
  • backend

@Bug-Hunty Bug-Hunty merged commit b5b3546 into main Apr 13, 2026
12 checks passed
@Bug-Hunty Bug-Hunty deleted the feat/ui-live-ready-image branch April 13, 2026 20:14
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.

2 participants