mirror of
https://github.com/jaxperro/winning-wallet-finder.git
synced 2026-07-27 15:57:47 +00:00
audit hardening: book fully serialized, chain-gated sweep, boot-id single-writer guard, TLS on user-ws, atomic valuebot state, hot-path throttle, newest-kept seen_tx, daily lock, ingest txn, AIcAIc pin
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,10 @@ class Ex:
|
||||
def __init__(self):
|
||||
self.fills, self.sold = [], []
|
||||
|
||||
def _shares_held(self, tok):
|
||||
# chain truth for the audit-3.2 gate: DUST really exists on chain
|
||||
return {"DUST": 1.0}.get(tok, 0.0)
|
||||
|
||||
def sell(self, tok, shares, price, meta):
|
||||
self.sold.append(tok)
|
||||
self.fills.append({"side": "SELL", "token": tok, "shares": shares,
|
||||
|
||||
Reference in New Issue
Block a user