mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-08-16 16:58:04 +00:00
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:
co-authored by
Claude Fable 5
parent
7bc6f25508
commit
04442302f4
@@ -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
|
for legacy `create`. Deriving with the wrong program returns a valid-looking
|
||||||
address that does not exist on chain. Verified: curve `3jJ83ND…` derives to
|
address that does not exist on chain. Verified: curve `3jJ83ND…` derives to
|
||||||
`Cd4iC3Jn…` under Token2022 (matches chain) and `AhNzZsBp…` under SPL Token.
|
`Cd4iC3Jn…` under Token2022 (matches chain) and `AhNzZsBp…` under SPL Token.
|
||||||
- `extreme_fast_mode` skips the curve-state price fetch but still refreshes
|
- `extreme_fast_mode` skips the curve-state price fetch. Whether it also reads
|
||||||
mayhem/cashback/creator/**quote_mint** from chain, because the wrong quote mint
|
the curve for mayhem/cashback/creator/**quote_mint** depends on provenance
|
||||||
means spending the wrong balance entirely. Event parsers also populate
|
(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
|
`quote_mint` from `CreateEvent` (which gained `quote_mint` and
|
||||||
`virtual_quote_reserves` as trailing fields).
|
`virtual_quote_reserves` as trailing fields).
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
"""Dry-run the bot's real buy path against a freshly created coin.
|
"""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
|
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
|
PlatformAwareBuyer code the bot uses (the zero-RPC path for
|
||||||
refresh), but intercepts the transaction just before submission and simulates it
|
CreateEvent-sourced tokens, or the curve refresh otherwise — watch the
|
||||||
instead. This exercises the listener -> event parser -> curve manager ->
|
state_from_event line in the output), but intercepts the transaction just
|
||||||
address provider -> instruction builder chain as a unit.
|
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.
|
No funds move: `build_and_send_transaction` is monkeypatched to simulate.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user