Skip to content

Fix simulator: pool loading, lower price ratio, Plasma chain, npm run dev#11

Merged
joaobrunoah merged 16 commits into
mainfrom
fix-simulator
May 20, 2026
Merged

Fix simulator: pool loading, lower price ratio, Plasma chain, npm run dev#11
joaobrunoah merged 16 commits into
mainfrom
fix-simulator

Conversation

@joaobrunoah
Copy link
Copy Markdown
Member

Summary

  • Load previous pool from localStorage on mount, with proper loading state and error messages on failed fetch
  • Allow lower price ratios in the AutoRange simulator
  • Add Plasma chain to the network list
  • Add root package.json with npm run dev that runs client + Firebase functions emulator concurrently
  • Rename localStorage keys reclamm-pool-*autorange-pool-* to match the AutoRange rebrand

joaobrunoah and others added 10 commits December 23, 2025 11:30
Rebrand the product to AutoRange across the React app, Firebase
function, and docs. Smart-contract references (ABI file, exported
const, on-chain identifiers) stay as reCLAMM since they're tied to
deployed bytecode. The /reclamm route now redirects to /autorange
for backward compatibility.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Resolved conflicts:
- functions/src/index.ts: kept renamed endpoint autorangeData and the
  300s timeoutSeconds added in fix-simulator
- AutoRangePriceBar.tsx: kept formatPrice helper from fix-simulator with
  the AutoRangePriceBar name from rename-reclamm
- AutoRange.tsx: dropped duplicate handleLoadPool added by rename-reclamm
  (fix-simulator already has loadPoolData); updated its fetch URL to the
  new /autorangeData endpoint

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Runs the client (react-scripts) and functions (firebase emulators) concurrently.
postinstall installs deps in both subprojects so `npm install` at the root
bootstraps everything.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
origin/main now contains the rename-reclamm changes (squashed in PR #10),
which overlapped with the earlier merge of origin/rename-reclamm into this
branch. Resolutions:

- App.tsx: kept origin/main's Navigate `replace` prop on the legacy route
  redirects (better history behavior); reformatted to satisfy prettier
- AutoRange.tsx: kept fix-simulator's richer loadPoolData with error
  handling and localStorage, dropped origin/main's simpler handleLoadPool
- AutoRangePriceBar.tsx: kept fix-simulator's formatPrice helper
- functions/src/index.ts: kept fix-simulator's `timeoutSeconds: 300` on
  autorangeData

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@joaobrunoah joaobrunoah requested a review from EndymionJkb May 18, 2026 21:26
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread functions/src/index.ts Outdated
Comment thread client/src/pool-types/autorange/AutoRangePriceBar.tsx Outdated
Comment thread client/src/pool-types/autorange/AutoRange.tsx Outdated
Comment thread package.json Outdated
Comment thread client/src/pool-types/autorange/AutoRange.tsx Outdated
joaobrunoah and others added 5 commits May 20, 2026 16:46
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: EndymionJkb <EndymionJkb@gmail.com>
Co-authored-by: EndymionJkb <EndymionJkb@gmail.com>
Co-authored-by: EndymionJkb <EndymionJkb@gmail.com>
@joaobrunoah joaobrunoah merged commit 20f4d04 into main May 20, 2026
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