ERC20DenyListUpgradable
Inherits: Initializable, ERC20Upgradeable, EInvalidAddress, EDenied
State Variables
DENYLISTED_STORAGE_LOC
bytes32 private constant DENYLISTED_STORAGE_LOC =
0xde333b8ffad3aee9c87bb17db9ab84f10634c83b51f5022e3b2d7da89a012200
Functions
_getDenyListStorage
function _getDenyListStorage() internal pure returns (DenyListStorage storage $);
__ERC20DenyListedUpgradable_init
function __ERC20DenyListedUpgradable_init(IAddressList initialDenyList) internal onlyInitializing;
_isDenied
function _isDenied(address user) internal view returns (bool);
_revertIfDenied
function _revertIfDenied(address user) internal view;
checkNotDenied
modifier checkNotDenied(address user) ;
_update
Overrides the default ERC20 _update to enforce deny list checking
function _update(address from, address to, uint256 value) internal virtual override;
denyList
function denyList() public view returns (IAddressList);
_setDenyList
function _setDenyList(IAddressList newDenyList) internal;
Events
DenyListUpdated
Emitted when the deny list contract is updated
event DenyListUpdated(address indexed oldDenyList, address indexed newDenyList);
Parameters
| Name | Type | Description |
|---|---|---|
oldDenyList | address | Previous deny list contract address |
newDenyList | address | New deny list contract address |
Structs
DenyListStorage
Note: storage-location: erc7201:apyx.storage.DenyListed
struct DenyListStorage {
/// @notice Reference to the AddressList contract for deny list checking
IAddressList _denyList;
}