Repository navigation
v0.3.4 — Gate decodes calldata
Fixes a gap in the Gate. A raw transaction sent to an allowlisted token was checked only by its top-level to address. A spender or recipient hidden inside the data calldata was never seen, so these all returned allow:
hidden in data |
v0.3.3 | v0.3.4 |
|---|---|---|
approve(attacker, MAX) |
allow | block |
transfer(attacker, balance) |
allow | block |
setApprovalForAll(attacker, true) |
allow | block |
| multicall: normal transfer + approve(attacker) | allow | block |
| unlimited approve to an allowlisted spender | allow | block |
| unknown function | allow | review |
Decoded: approve, increaseAllowance, transfer, transferFrom, setApprovalForAll, permit, Permit2 approve, and addresses inside multicall batches.
Still allowed: bounded approvals, transfers and batches to allowlisted addresses, plain ETH sends.
If you run yusa_check_tool_call before signing, upgrade.
28/28 tests. Scanner benchmark unchanged.