fix(scanner): properly enforce balance thresholds, scale limits, and …#31
Merged
Conversation
…definitively preserve user settings
…ve endpoints to prevent hot reboot loops
…llet poll seeds total_balance completely, preventing 0.00 false negatives
… tickets display engine blockages explicitly
…unit tests from silently overwriting local repository keys
… and skip tests from corrupting local repository state
…s the origin target trade size intact so min_amount bounds evaluate the remote notional exposure accurately, not the post-constrained local budget
…returns partial API responses due to network timeout or gateway interference. This guarantees the sweeper mathematically confirms a remote empty footprint before synthesizing defensive liquidations, preventing catastrophic portfolio dumps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Problem:
Extremely active algorithm / whale wallets were functionally suffocating the bot's architecture. Wallets processing hundreds of trades per minute were overrunning the listener's memory boundary (limit: 20), and wallets with massive historic footprints were triggering the Scanner's 10,000 bounds safety net because the old SDK natively pulled dead/inactive positions. Furthermore, when the Strategy Engine mathematically choked out valid positions (e.g. $0.00 balances or < $1 scalar crushing), those trades were permanently stuck in the visual Monitoring state on the UI without explaining why they were skipped.
The Solution:
Real-Time Listener Expansion: