mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-11-02 06:16:10 +00:00
fix(trading): label quote-denominated output by its actual quote mint (#224)
Prices, exit targets and PnL printed "SOL" for every coin. They now use the quote mint's symbol, promoted to `core.pubkeys.quote_symbol`, and `get_pnl` returns `unrealized_pnl_quote`. Also deletes seven uncalled methods that converted with `LAMPORTS_PER_SOL` or a hardcoded base unit, and adds a verifier to stop them returning. It covers `core/`, `trading/` and `platforms/pumpfun/`; letsbonk still scales prices by a SOL literal, and the verifier records which sites and why it stops there. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
01edbbf8c4
commit
c00cd608e3
@@ -31,6 +31,7 @@ individual scripts for a subset.
|
||||
| `verify_cookbook_arguments.py` | every cookbook script takes its input as a command-line argument |
|
||||
| `verify_documentation_links.py` | no known-dead URL is back; `--live` fetches every one and fails on 4xx/5xx |
|
||||
| `verify_no_rpc_credentials_logged.py` | credentials masked in every log record, including a URL passed as a non-`str` argument, and every site that installs a root handler installs the redaction first |
|
||||
| `verify_pumpfun_prices_without_hardcoded_sol_unit.py` | nothing in `core/`, `trading/` or `platforms/pumpfun/` scales an amount by `LAMPORTS_PER_SOL`; the letsbonk sites left out of scope are still the documented ones |
|
||||
| `verify_pumpswap_account_layout.py` | pump-amm's `pool-v2` account is gated on `coin_creator`, the buyback pair stays last, and base-token decimals are resolved rather than assumed; `--live` re-reads the authorized recipients from `GlobalConfig` |
|
||||
|
||||
Two mainnet simulations, also no funds moved:
|
||||
|
||||
Reference in New Issue
Block a user