feat(dex): add nad.fun to monad dex.trades table#9663
Open
kkqzhou wants to merge 4 commits into
Open
Conversation
Adds a new platform base-trades model for nad.fun, the memecoin launchpad on Monad. Each launched token graduates from a bonding curve into a Uniswap V3-style pool that emits the standard V3 Swap event; swaps from any router (direct, Metamask delegation manager, MEV bots, etc.) are captured by joining V3 Swap events to the set of pools enumerated from the BondingCurve's CurveGraduate event. Refs duneanalytics#9662
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
Replace the manual monad.logs decode (bonding-curve graduations + V3 Swap events on every graduated pool) with the union of the two decoded nad.fun router contracts: - swap router 0x003989CD92C31A51D8B20bDBd0c51E444f88d081 - dex router 0x0B79d71AE99528D1dB24A4148b5f4F865cc2b137 Pool-level V3 Swap also fires for traffic that does not originate from nad.fun (aggregators, MEV bots, direct pool callers), so the prior methodology over-counted nad.fun trades. The decoded DexRouterBuy / DexRouterSell events are the canonical nad.fun surface. On 2026-05-15 the rewrite drops 4,955 non-router rows that were inflating the trade set, landing at 23,338 trades / 2,979,805.87 WMON notional. Seed CSV: the old 5 rows included 2 non-router pool trades that the new model intentionally excludes; replaced with 4 rows that exercise both routers in both directions (swap_buy, swap_sell, dex_buy, dex_sell), all verified end-to-end against the new model output.
Ensures dex.trades rows for nad_fun resolve a display name / X handle when joined to dex.info. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
jeff-dude
approved these changes
May 21, 2026
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.
Adds a new platform base-trades model for nad.fun, the memecoin launchpad on Monad. Each launched token graduates from a bonding curve into a Uniswap V3-style pool that emits the standard V3 Swap event; swaps from any router (direct, Metamask delegation manager, MEV bots, etc.) are captured by joining V3 Swap events to the set of pools enumerated from the BondingCurve's CurveGraduate event.
Refs #9662
Thank you for contributing to Spellbook 🪄
Please open the PR in draft and mark as ready when you want to request a review.
Description:
[...]
quick links for more information: