Arbitrary call with user-controlled target
SUNSwap (sun.io)'s assessment for RD-F-013 — scored green on the v1.7.0 rubric. The evidence below is the curator's reasoning for this score.
Evidence summary #
V4 hook address is set at pool initialization (not user-supplied per-swap). Core PoolManager calls the hook at lifecycle points but hook address is fixed at pool creation. V2/V3 core have no external call with user-controlled targets.
Sources #
- GitHubSUNSwap V2 contractssunswap-v2-contracts — no arbitrary external calls with user-controlled targetsretrieved 2026-05-17
- SUNSwap V4 hooks architectureAiCoin V4 article — hook address fixed at pool creation, not per-swapretrieved 2026-05-17
Methodology #
Determine whether any contract performs `.call(target, data)` where target and/or data is user-supplied without a target allowlist or selector filter.
See the full factor methodology and distribution across all protocols →
rubric_version v1.7.0 protocol sunswap factor RD-F-013 score green collected_at 2026-05-17 14:37:31