Repository navigation
Add swipeable Stocks hero with clear purchase actions - #1462
Merged
Merged
Conversation
Both Stocks pages now load src/main.jsx, so Vite records it as a shared chunk and the manifest no longer contains "index.html". The InternationalApp and UsdcFlow checks already prove the manifest is populated.
A USDC record counted as a possibly sent permit from registration on, so a declined prompt, a failed nonce read or a maintenance refusal kept the shared Pix and USDC wallet lock for 24 hours once the order failed. The hold now starts when the wallet prompt opens, and a definite rejection restores the earlier stage. A returned signature still keeps recovery.
Signed-in Brazilian users reached the USDC checkout only through the Pix buy and sell flows, so with Pix off, or a token's Pix listing closed, the stock page showed "Em breve" and no USDC at all. The detail buttons now open the USDC buy or sell in that case, except during an issuer pause.
The Brazilian USDC flow showed raw messages before its wallet-rejection check, so a cancelled permit read "User rejected the request.", a Base RPC hiccup printed viem's English with the endpoint URL, and a delivery mismatch was English. Cancellations now use the Pix flows' wording, a failed Base balance read gets its own Portuguese message, and the delivery and storage messages are translated.
✅ Deploy Preview for vortexfi ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for vrtx-dashboard canceled.
|
✅ Deploy Preview for vortex-sandbox ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
The hero CTA said "Comprar com Pix" whatever rampOpen was, although the rampOpenState contract promises neither a purchase nor "em breve" while availability is unknown or the listing failed.
With VITE_STOCKS_USDC_ENABLED off in a live build, the English hero still said "Buy with USDC" and visitors learned purchases were coming soon only after two clicks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Stocks landing pages now lead into a purchase with a swipeable photo hero and clear cost-check actions in Brazilian Portuguese and English.
Validation
bun lint:fixpasses. The live Stocks build with USDC enabled passes, contains both locale entry points and excludes the simulated-flow chunk.Merge order
This branch already includes #1459 to integrate its English/Base-USDC checkout changes. Merge #1458 → #1459 → #1462, keeping this PR as a draft against
stagingfor review.Review: @ebma, please review the localized photo carousel, purchase wording and responsive interactions.