Skip to content

zapper: heads-up that off-hours pricing on Ondo AI DTFs is worse (RES-2234) - #1102

Closed
devin-ai-integration[bot] wants to merge 2 commits into
masterfrom
devin/1788279867-ondo-off-hours-heads-up
Closed

devin-ai-integration[bot] wants to merge 2 commits into
masterfrom
devin/1788279867-ondo-off-hours-heads-up

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

When the US market is closed, Ondo-backed AI DTFs can only be bought through secondary liquidity, so quotes come back with huge price impact (a user interview participant saw 90–93% on BUILDOUT at every size and gave up). Today the only explanation arrives after a quote — this adds a pre-quote heads-up on the market-closed signal alone, so the expectation is set before the user types an amount.

New lowest-priority variant in the existing prompt state machine:

VARIANT_PRIORITY = { capacity: 3, 'closed-impact': 2, 'closed-error': 1, 'closed-heads-up': 0 }
rawClosedHeadsUp = inContext && mintingUnavailable   // no input, no quote required

Priority does the interesting work: the heads-up shows immediately, is replaced (and un-dismissed) by any real quote-derived warning, never downgrades back, and dismissal sticks while the same variant stays active. Market reopening clears stale closed-market state.

Presentation is deliberately not a warning — it's unprompted, and warning styling on an unprompted notice trains users past the real >8% impact warning. Neutral icon/eyebrow, headline, one sentence of cause-and-cost, then the timing facts as a labelled list instead of a paragraph:

🕐 US MARKET CLOSED                    ✕
Pricing may be worse right now
BUILDOUT's stocks aren't trading, so buys and sells
route through secondary markets — price impact can be
much higher than usual.
──────────────────────────────
Reopens in        20 hours
Market opens      9:30 AM ET
Now                1:13 PM ET

Desktop renders it as the side card next to the zapper; mobile uses a bottom banner rather than the modal the quote-derived variants use, so the zapper stays usable before the user has entered anything.

desktop

mobile

Verification: RED-verified (disabling rawClosedHeadsUp fails the new closed-market spec, open-market still passes), scope gate green (lint, typecheck, 905 unit, e2e helper units, smoke 60), plus a new strict e2e/tests/index-dtf/issuance/ondo-market-closed.spec.ts covering closed and open /dtf/ondo states on desktop and mobile.

Copy is a first pass and the part most worth product/copy review; the split market-hours sentence leaves the closed-impact retry line untranslated in es/ko/zh until a Crowdin pass.

Link to Devin session: https://app.devin.ai/sessions/dd8180123ec44dfd86cc6b4e35c6cebd
Open in Devin Desktop: https://app.devin.ai/desktop/session/dd8180123ec44dfd86cc6b4e35c6cebd?variant=devin

Adds a pre-quote closed-heads-up variant to the large mint prompt so users see why AI DTF pricing is bad outside US market hours before they read a 90% price-impact quote as a broken product.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 1, 2026 •

Copy link
Copy Markdown

Deploying register-app with  Cloudflare Pages  Cloudflare Pages

Latest commit: 832ec4f
Status: ✅  Deploy successful!
Preview URL: https://bb52ee1e.register-app.pages.dev
Branch Preview URL: https://devin-1788279867-ondo-off-ho.register-app.pages.dev

View logs

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@lcamargof lcamargof closed this Sep 25, 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