Skip to content

Feat/UI live ready image#290

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

Feat/UI live ready image#290
Bug-Hunty merged 3 commits intomainfrom
feat/ui-live-ready-image

Conversation

@rigocrypto
Copy link
Copy Markdown
Owner

No description provided.

GitHub Copilot added 2 commits April 13, 2026 17:01
- New FundingManager class: reads SOL/USDC/USDT balances, computes
  SOL reserve excess/deficit, available trading capital, trading gate
- Integrated into Scanner.scanPools() to call checkAndRebalance()
  on each tick (currently snapshot-only, no swap logic yet)
- 17 tests covering balance reads, reserve logic, trading gate,
  error handling, USDT-as-base-asset variant
- Lint clean (0 errors, 19 pre-existing warnings)
- 126/126 tests pass (17 files)
- checkAndRebalance: full swap logic with one-swap-per-tick policy
  - Case 1: SOL excess above target → swap to base asset (highest priority)
  - Case 2: non-base stable normalization (USDT→USDC)
- attemptSwap: Jupiter quote → cost gate (slippage+fee BPS) → execute → post-swap snapshot
- executeJupiterSwap: POST /swap → VersionedTransaction deserialize/sign/send
- Cooldown only advanced on success (failed swaps retry next tick)
- Cost gate: reject swaps exceeding maxRebalanceCostBps
- checkAndRebalance signature: PublicKey → Keypair (needed for tx signing)
- Scanner.ts: minimal integration update for Keypair
- 28 tests (17 step-1 + 11 step-2), all passing
- Lint: 0 errors, 19 pre-existing warnings
@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 9:39pm

@railway-app
Copy link
Copy Markdown

railway-app bot commented Apr 13, 2026

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

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

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