docs: sync extreme-fast refresh description with zero-RPC behavior

CLAUDE.md's coin-creation note and simulate_bot_buy_path's docstring still
described the pre-#183 unconditional curve refresh.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Anton Sauchyk
2026-07-29 18:39:54 +02:00
parent 7bc6f25508
commit 04442302f4
2 changed files with 12 additions and 7 deletions
+6 -3
View File
@@ -329,9 +329,12 @@ The IDLs under `idl/` are vendored verbatim from `github.com/pump-fun/pump-publi
for legacy `create`. Deriving with the wrong program returns a valid-looking
address that does not exist on chain. Verified: curve `3jJ83ND…` derives to
`Cd4iC3Jn…` under Token2022 (matches chain) and `AhNzZsBp…` under SPL Token.
- `extreme_fast_mode` skips the curve-state price fetch but still refreshes
mayhem/cashback/creator/**quote_mint** from chain, because the wrong quote mint
means spending the wrong balance entirely. Event parsers also populate
- `extreme_fast_mode` skips the curve-state price fetch. Whether it also reads
the curve for mayhem/cashback/creator/**quote_mint** depends on provenance
(see "Verifying the listener-to-buy path" above): CreateEvent-sourced tokens
(`state_from_event`) trade on the event data with zero RPC calls, while
pumpportal/incomplete-event tokens refresh from chain — the wrong quote mint
means spending the wrong balance entirely. Event parsers populate
`quote_mint` from `CreateEvent` (which gained `quote_mint` and
`virtual_quote_reserves` as trailing fields).
+6 -4
View File
@@ -1,10 +1,12 @@
"""Dry-run the bot's real buy path against a freshly created coin.
Detects a new pump.fun coin with the bot's own listener, runs the same
PlatformAwareBuyer code the bot uses (including the extreme_fast_mode curve
refresh), but intercepts the transaction just before submission and simulates it
instead. This exercises the listener -> event parser -> curve manager ->
address provider -> instruction builder chain as a unit.
PlatformAwareBuyer code the bot uses (the zero-RPC path for
CreateEvent-sourced tokens, or the curve refresh otherwise — watch the
state_from_event line in the output), but intercepts the transaction just
before submission and simulates it instead. This exercises the listener ->
event parser -> curve manager -> address provider -> instruction builder
chain as a unit.
No funds move: `build_and_send_transaction` is monkeypatched to simulate.