OrderBook and DeepLinkBuy both filtered, sorted, and flagged PARTIAL
offers (unacceptable / unaffordable / XECX / FIRMA / spot price). That
logic now lives in components/Agora/partialOffers.ts as
prepareBuyableOffers and findFillableOfferIndex. OrderBook still owns
depth-bar math; DeepLinkBuy still owns the confirm UI. PartialOffer is
defined next to the helpers and re-exported from OrderBook for existing
imports.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABC9436ea308549: [Cashtab] Share Agora partial-offer prepare helpers
- cd cashtab && pnpm test --testPathPatterns='partialOffers|DeepLinkBuy|components/Agora/OrderBook' --watchAll=false
- Manually open a token OrderBook buy UI and a BUY deep link; offers still sort cheapest-first with the same XECX/FIRMA filtering
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) Series-B funding secured. Now, I can afford to review your code.
────────────────────────────────────────
Review complete
No findings ✔
4 files reviewed:
- cashtab/src/components/Agora/DeepLinkBuy/index.tsx
- cashtab/src/components/Agora/OrderBook/index.tsx
- cashtab/src/components/Agora/__tests__/partialOffers.test.ts
- cashtab/src/components/Agora/partialOffers.ts
────────────────────────────────────────