Skip to content

feat: detect direct withdrawals#462

Merged
doomsower merged 2 commits into
masterfrom
fix/extract-direct-withdrawals
Jun 16, 2026
Merged

feat: detect direct withdrawals#462
doomsower merged 2 commits into
masterfrom
fix/extract-direct-withdrawals

Conversation

@gregorymel

Copy link
Copy Markdown
Collaborator

Track direction ("in"/"out") on DirectTransferInfo so transfers out of the credit account outside any facade range are flagged as direct withdrawals, not just inbound deposits. Suppress direct-transfer detection for the whole tx when a (partial) liquidation of the account is present, so the seized-collateral payout to the liquidator is not misreported as a withdrawal.

gregorymel and others added 2 commits June 16, 2026 18:50
…idation txs

Track direction ("in"/"out") on DirectTransferInfo so transfers out of the
credit account outside any facade range are flagged as direct withdrawals,
not just inbound deposits. Suppress direct-transfer detection for the whole
tx when a (partial) liquidation of the account is present, so the
seized-collateral payout to the liquidator is not misreported as a withdrawal.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@doomsower doomsower merged commit 384b47b into master Jun 16, 2026
2 checks passed
@doomsower doomsower deleted the fix/extract-direct-withdrawals branch June 16, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants