Skip to content

Feat/token quirks engine#60

Merged
Dnreikronos merged 2 commits into
mainfrom
feat/token-quirks-engine
Apr 29, 2026
Merged

Feat/token quirks engine#60
Dnreikronos merged 2 commits into
mainfrom
feat/token-quirks-engine

Conversation

@Dnreikronos

Copy link
Copy Markdown
Owner

No description provided.

Five heuristic detectors for non-standard ERC20 integration bugs:
- token-fee-on-transfer: transferFrom amount used without balance diff
- token-rebasing-incompatible: cached balanceOf without shares conversion
- token-erc777-reentrancy: transfer without guard + post-call state write
- token-unchecked-return: raw transfer/approve without return check
- token-approval-race: approve without zero-first pattern

Includes 14 unit tests covering detection and skip paths.

Refs #56
Run token quirks stage after guard_engine, before cross_contract.
Add token_candidates to PipelineStats and CachedEngineResult.
Bump ENGINE_CACHE_VERSION v5 → v6.

Refs #56
@Dnreikronos Dnreikronos self-assigned this Apr 29, 2026
@Dnreikronos Dnreikronos merged commit 2523eb9 into main Apr 29, 2026
1 check passed
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.

1 participant