Audit the token-2022 transfer hook
Completed example bounty: audit the token-2022 transfer hook.
Task description
Context: this task comes from the project's public roadmap and is scoped so one contributor can finish it.
Deliver working, reviewed output that matches the requirements below. Ask questions in the project's channels before you start if anything is unclear.