Update content submodule#2182
Open
github-actions[bot] wants to merge 11 commits into
Open
Conversation
Companion to the peanut-api-ts change. The home balance is a unified smart-account + Rain collateral figure; during an auto-balance top-up the on-chain debit lands ~10-45s before Rain credits the collateral, so the sum counted the funds in neither bucket and flashed to $0 — alarming on every top-up. Consume the backend's inTransitToCollateralCents: fold it into the DISPLAY balance (computeDisplaySpendable) so it no longer craters, while the spend gate + routing stay on available-now funds (computeAvailableSpendable) so we never green-light a send that can't be routed until collateral lands. Math extracted to balance.utils + unit-tested. Field is optional, so the FE is safe against a pre-deploy backend.
/code-review (high): note that formattedSpendableBalance includes in-transit collateral and can read higher than the hasSufficientSpendableBalance gate during a top-up, so a future maintainer doesn't unify them and reintroduce the failed-send path.
These values are USDC in 6-decimal base units, not ETH's 18-decimal wei — the 'wei' name was misleading. Rename: rainSpendingPowerToWei → rainCentsToUsdcUnits usdcWeiToRainCents → usdcUnitsToRainCents plus the spendingPowerWei/amountWei locals and the 'USDC wei' comments. Mechanical; no behaviour change.
…t-link check
Two fiat rails (SPEI/MX, Faster Payments/GB) were wired end-to-end via Bridge
with MDX content authored, but never registered in DEPOSIT_RAILS — so the live
/deposit/via-{spei,faster-payments} routes 404'd and every inbound content link
to them failed the 'Validate sitemap, footer, and blog links' CI check. Register
both; de-drift the validator's duplicate RAIL_SLUGS.
Bumps the peanut-content submodule to the companion fix (peanut-content#45:
compare/wise typo + dead MX corridor + landing/team polish override). validate-links
now passes clean.
release: dev→main 2026-06-03 — content pipeline fix, badges, SEO footer
Picks up peanut-content@658face3 (mirror of mono@bdede5f): structure-aware re-render of the 4 card legal pages — list items as bullets (not giant H2s), privacy FACTS form as prose sections + one sharing table.
…nce-in-transit # Conflicts: # src/content
…atching merged content
The merge pulled in peanut-content#45 (308f9fcdb), whose published pages link
to /deposit/from-{spei,faster-payments} (14 links, 0 via-). But the branch's
earlier seo commit had registered both in DEPOSIT_RAILS, which routes them as
via-{slug} and excludes them from loadExchanges() — so every from- content link
404'd and validate-links failed with 15 broken links + a page-count drop.
Adopt main's design: spei/faster-payments are exchanges (loadExchanges picks up
content/deposit/{spei,faster-payments}, generateStaticParams emits from-{slug}).
Drops them from DEPOSIT_RAILS and the validator's RAIL_SLUGS, and ratchets the
content baseline to the merged count (745). validate-links now passes clean.
…-in-transit fix(card): keep unified balance steady during collateral top-up
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Auto-generated: updates content submodule to latest peanut-content main.