Skip to content

Update content submodule#2182

Open
github-actions[bot] wants to merge 11 commits into
devfrom
auto/update-content-20260603-152734
Open

Update content submodule#2182
github-actions[bot] wants to merge 11 commits into
devfrom
auto/update-content-20260603-152734

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Jun 3, 2026

Auto-generated: updates content submodule to latest peanut-content main.

Hugo0 and others added 11 commits June 2, 2026 22:06
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.
…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
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
peanut-wallet Ready Ready Preview, Comment Jun 3, 2026 3:33pm

Request Review

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