Skip to content

Fix MoonPay sale showing a swap provider title - #6255

Open
j0ntz wants to merge 2 commits into
developfrom
jon/moonpay-sale-dex-title
Open

j0ntz wants to merge 2 commits into
developfrom
jon/moonpay-sale-dex-title

Conversation

@j0ntz

@j0ntz j0ntz commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

A MoonPay sale appeared in a wallet's Recent Transactions as "MoonPay Trade (DeFi)", a swap provider's name, where other sales read "Sell Bitcoin".

The title was a stored payee name. A stored payee name outranks the title derived from the transaction's saved action, and a "MoonPay" search in the payee picker matched only the two MoonPay Trade swap providers.

  • A fiat buy or sell keeps its own title when the stored payee name is a swap provider's display name. The name is matched against the swap providers flagged in the built-in contact list and against the loaded swap plugins, so a provider whose plugin is disabled or failed to load still counts. Any other stored name still wins, and the stored name is not modified.
  • The payee picker has a plain "MoonPay" entry with the icon the MoonPay ramp plugin already shows.

A swap provider contact picked as the payee of a fiat sale is still saved, but the row and the reopened details scene keep the sale title.

No code path in the app writes a swap provider's name onto a sale by itself. The bug's listed steps did not produce the title without a payee edit. A real MoonPay sale needs identity verification and a fiat payout, and the evidence below comes from an iOS simulator where an existing Bitcoin send was forced to carry a MoonPay sell action and the payee was saved through the real picker. The second batch repeats the drive with both MoonPay Trade swap plugins disabled, so the title holds when the provider is absent from the loaded swap plugins.

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

Test evidence

3549870
Add a MoonPay payee contact
2026-10-13
🪓 Uncommitted, reverted: the newest Bitcoin send was forced to carry a MoonPay sell action (useTransactionList.ts); for frames 05 to 08 both MoonPay Trade swap plugins were also disabled (corePlugins.ts). Not a real MoonPay sale.

1. 🪓 payee search lists moonpay

2. 🪓 before fix sale titled with swap name

3. 🪓 after fix sale keeps sell title

4. 🪓 moonpay payee on sale row

5. 🪓 exchange settings without moonpay trade

6. 🪓 picker still offers unloaded swap contact

7. 🪓 details payee saved as swap contact

8. 🪓 sale keeps sell title plugin not loaded

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T17:57:24.673040Z 3e2f72e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3e2f72e557

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/actions/CategoriesActions.ts Outdated
j0ntz added 2 commits October 13, 2026 11:02
A stored payee name outranks the title derived from a transaction's
action. The payee picker lists swap providers, so a MoonPay sale labeled
from it showed "MoonPay Trade (DeFi)" and read as a swap. A fiat buy or
sell now keeps its own title when the stored name is a registered swap
provider's display name. Any other stored name still wins, and the stored
name is left untouched.
Searching MoonPay in the payee picker listed only the two MoonPay Trade
swap providers, so a fiat sale could only be named after a swap. The new
entry uses the icon the MoonPay ramp plugin already shows.
@j0ntz
j0ntz force-pushed the jon/moonpay-sale-dex-title branch from 3e2f72e to 3549870 Compare October 13, 2026 18:11
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.

1 participant