Repository navigation
Conversation
The app sends Solana-to-Solana swaps through its mptradedefi plugin and every other route through mptrade, both on one API key. queryMptrade now takes the route and keeps only that route's orders, so a mptradedefi partner entry with the same key reports the DeFi orders and mptrade reports the rest. Each order lands in exactly one partition.
Houdini scopes orders to the partner account that created them, so each app mode (swap and send, stealth swap, stealth swap and send) reports from its own account as its own partner id, with pluginId houdini in the partner config. These ids need dashboard colors to chart.
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.
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
EdgeApp/edge-exchange-plugins#517 for the Houdini mode partner ids. The MoonPay Trade split has no dependency.
Description
Splits two providers in reports: MoonPay Trade centralized vs DeFi, and Houdini by app mode.
MoonPay Trade. The app sends Solana-to-Solana swaps through its
mptradedefiplugin and every other route throughmptrade, both on one API key.queryMptradenow takes a route and keeps only that route's orders, using the same rule as the app (both chains Solana means DeFi). A newmptradedefipartner plugin reports the DeFi orders, and each order lands in exactly one partition. A replay of 1,786 live orders (2026-09-01 to 2026-10-27) gave 27 DeFi orders, all Solana-to-Solana, zero overlap, and a union equal to the full set.Houdini. No plugin code: Houdini scopes orders to the partner account that created them, and the exch PR places each mode's orders on its own account. Each account reports as its own partner id with
pluginId: houdiniin the app's partner config. This PR adds dashboard colors forhoudinisend,houdinistealth, andhoudinistealthsend.Ops after merge:
mptradedefientry to the app'sreports_appspartnerIds with the sameapiKeysasmptrade. Then clear the existing mixed partition and re-query both from the start of MoonPay Trade reporting:rmPartitiononedge_mptrade, thenrewindProgress 2026-09-01 mptrade mptradedefi --apply.houdinisend,houdinistealth, andhoudinistealthsendentries withpluginId: houdiniand each account'sapiKey/apiSecret. They must be separate Houdini partners: keys under one partner share one order list, and every order would land in every partition.Testing:
test/mptrade.test.tscovers route classification and the per-route filter; the full suite passes (205) and verify-repo passes againstdeploy.queryMptrade, plus fixture orders for the four Houdini partner ids (no per-mode Houdini accounts exist yet), then the real cache engine, v1 API, and built dashboard. All six partners render with their own colors;mptradedefishows its 27 orders apart frommptrade. The seed data was removed afterward.Test evidence
86d908cAdd dashboard colors for the Houdini modes
2026-10-28
🪓 seeded a local CouchDB: replayed live MoonPay Trade orders plus fixture orders for the four Houdini partner ids
4. 🪓 dashboard provider split