Pattern: Denylist (Sanctions)
Block specific wallets from transferring tokens — sanctions compliance
Overview
The denylist pattern is the inverse of the allowlist: all wallets can transfer except those explicitly blocked. Useful for OFAC sanctions compliance or blocking bad actors.
Implementation
Key Points
- Uses the same
AllowlistManagerclass — just pass"denylist"as the mode addWallets()blocks wallets in denylist moderemoveWallets()unblocks wallets- The issuer does not need to be added to the list (they're allowed by default)
- Can be combined with other hooks via the Router