Skip to content

terminal-fill: launchpad curves and ETH-quoted v4 pools priced on BasedBot's router family (Robinhood draws 8/40 -> 33/35) - #2559

Merged
Flotapponnier merged 1 commit into
devfrom
feat/tfq-robinhood-curves
Sep 20, 2026
Merged

Flotapponnier merged 1 commit into
devfrom
feat/tfq-robinhood-curves

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Why BasedBot's (and Axiom's, GMGN's) Robinhood Chain rows stayed under the ranking floor: 74 to 79 % of the drawn router swaps were unpriced. A probe over the last 40 router swaps (harness nativeRow, keyed node) tallied: no_pool 15, no_quote_leg 7, priced 8.

  • no_pool = launchpad bonding curves: one contract per token (same 10,230-byte bytecode), no Uniswap event, its own buy 0xec36bf57… [gas coin in, tokens out, fee 1, fee 2] and sell 0x8113d738… [tokens in, gas coin out, fee 1, fee 2], fees 1 % + 2 % on the gross amount. New rhcurve.go: pool = the reserve's side of the trade, other = the curve's fees, reference = the previous trade on the curve at the reserve-side price (walked in 9,000-block chunks up to two hours: the keyed node caps eth_getLogs at 10,000 blocks and Robinhood Chain makes ~590 a minute). The quote is the gas coin unless an ERC20 moved the amount to or from the curve (stable, WETH, or a token the route bought on the way, priced through that swap: a curve quoted in 0x4a0e65a3… bought on a v3 pool from WETH was 16x off before that). A token launch's first buy (minted to the curve in the same transaction) is rejected as launch_first_trade, not counted as unpriced.
  • no_quote_leg = sells against ETH-quoted v4 pools: the PoolManager holds ETH itself, so no ERC20 transfer logs the quote leg. nativeV4Quote: when no ERC20 flow of half the quote or more moved through the manager, the quote is the gas coin at the exchange's price.

Probe after: priced 33, launch_first_trade 5, unpriced 2 (a v4 pool with no previous swap, one quote leg). Spec reference bullet, unpriced-draws bullet and README updated. The same code covers BNB, Base and Ethereum where the router family runs.

Deploy: harness image, worker rebuild + materialize reset (spec).

🤖 Generated with Claude Code

https://claude.ai/code/session_01L4rjxemTvgRwrCG6D2iK5D

…riced (previous trade on the curve, quote = gas coin / stable / WETH / a route-bought token), ETH-quoted v4 pools priced as the gas coin when no ERC20 moved the quote, a launch's first buy rejected as launch_first_trade: Robinhood Chain draws priced 8 of 40 -> 33 of 35 fills

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L4rjxemTvgRwrCG6D2iK5D
@Flotapponnier
Flotapponnier merged commit 283c1c7 into dev Sep 20, 2026
1 of 2 checks passed
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