Freeze ERC20 tokens in a wallet

Can I for example create a function that freezes the tokens in the wallet?

Does that affect something?

1 Like

Hi @franco_villa_santana,

You can pause all transfers using ERC20Pausable:

See the ERC20 preset for an example of it being used: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.2.0/contracts/presets/ERC20PresetMinterPauser.sol

If you wanted to do this on an account by account basis then you could look at creating a Deny List where any address in the Deny List cannot transfer.