> For the complete documentation index, see [llms.txt](https://s0x.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://s0x.gitbook.io/docs/primary-issuance/roles-and-permissions/confiscator.md).

# Confiscator

Given that all off-chain assets are entrusted to custodians, it is imperative to acknowledge the regulatory environment within which these custodians operate. This regulatory framework entails the possibility of legal actions, such as the imposition of sanctions, against token holders. In rare and extreme circumstances, merely freezing assets by removing the holder from the corresponding tier contract may prove insufficient. In such cases, it may become necessary for the custodian to confiscate the assets from the token holder and subsequently undertake appropriate actions, such as burning, setting them aside, or redistributing them.

To facilitate this process, a confiscator role exists, empowering designated entities to forcibly acquire frozen tokens, encompassing both ERC20 and ERC1155 tokens. However, it is crucial to note that this role is highly sensitive, and confiscators are explicitly prohibited from seizing tokens from unfrozen assets. This safeguard provides protection against potential malicious actors compromising the confiscator and unlawfully appropriating assets from users. It should be noted that an attacker would need to compromise the tier handling system before being able to manipulate the confiscation process. Ideally, the management of confiscation and tiering functions should be entrusted to independent and impartial real-world entities to ensure maximum security. In cases where no tier contract is in place, the confiscator has the freedom to seize assets from any address, thus potentially creating a less secure configuration.

The process of confiscation is a straightforward transfer initiated by the confiscator, who calls the relevant function on the smart contract, resulting in the assets being transferred to their own address. Confiscation bypasses the typical access requirements for transfers, allowing confiscations to occur even during a failed audit. Maintaining a well-maintained tier contract serves as the best defense against rogue confiscators, fortifying the security and integrity of the system.
