Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 1.4 KB

RuleWhitelist.md

File metadata and controls

50 lines (28 loc) · 1.4 KB

Rule Whitelist

[TOC]

This rule can be used to restrict transfers from/to only addresses inside a whitelist.

Schema

Graph

surya_graph_Whitelist

Inheritance

surya_inheritance_RuleWhitelistWrapper.sol

Access Control

Admin

The default admin is the address put in argument(admin) inside the constructor. It is set in the constructor when the contract is deployed.

Schema

Here a schema of the Access Control. alt text

Methods

Null address

It is possible to add the null address (0x0) to the whitelist. It is a requirement from the CMTAT to be able to mint tokens.

It is not a security problem because OpenZeppelin doesn't authorize the transfer of tokens to the zero address.

Duplicate address

addAddress If the address already exists, the transaction is reverted to save gas. addAddresses If one of addresses already exist, there is no change for this address. The transaction remains valid (no revert).

NonExistent Address

removeAddress If the address does not exist in the whitelist, the transaction is reverted to save gas. removeAddresses If the address does not exist in the whitelist, there is no change for this address. The transaction remains valid (no revert).