ERC-2980 Swiss regulation-compliant asset token (Swiss Compliant Asset Token)
Stagnant · Tokens · created 2020-09-08
A security asset token standard that extends ERC-20 with whitelisting, address freezing, and forced revoke/reassign functions to comply with Swiss financial law.
Why it is needed
Asset tokens on Ethereum (security tokens) represent rights to real-world assets such as stocks, bonds, or derivatives. However, a plain ERC-20 token has no way to control who can receive the token, freeze an address that has run into problems, or forcibly revoke and reassign tokens when legally required. Swiss laws such as the Securities Exchange Act, Banking Act, Financial Market Infrastructure Act, Collective Investment Schemes Act, and Anti-Money Laundering Act require issuers to verify investor identity (KYC/AML) and be able to adjust ownership when necessary. Without these mechanisms, it is difficult for a token issuer to issue security tokens while complying with Swiss and European financial regulation.
What to implement
event FundsReassigned(address from, address to, uint256 amount);: An event emitted when funds are reassigned from one address to another.event FundsRevoked(address from, uint256 amount);: An event emitted when funds are revoked back to the issuer.event FundsFrozen(address target);: An event emitted when an address is frozen.function frozenlist(address _operator) external view returns (bool);: Checks whether the given address is on the frozenlist.function whitelist(address _operator) external view returns (bool);: Checks whether the given address is on the whitelist.function addAddressToWhitelist(address _operator) external returns (bool);: Adds an address to the whitelist. Callable only by the issuer.function removeAddressFromWhitelist(address _operator) external returns (bool);: Removes an address from the whitelist. Callable only by the issuer.function addAddressToFrozenlist(address _operator) external returns (bool);: Adds an address to the frozenlist. Callable only by the issuer.function removeAddressFromFrozenlist(address _operator) external returns (bool);: Removes an address from the frozenlist. Callable only by the issuer.function isIssuer(address _addr) external view returns (bool);: Checks whether the given address holds the issuer role.function addIssuer(address _operator) external returns (bool);: Adds a new issuer address. Callable only by the contract owner.function removeIssuer(address _operator) external returns (bool);: Removes an address from the issuer list. Callable only by the contract owner.function transferIssuer(address _newIssuer) external;: Transfers the current issuer's role to another address.function revoke(address _from) external;: Revokes the entire token balance of the target address to the calling issuer.function reassign(address _from, address _to) external;: Reassigns the entire token balance of the target address to another address.
In depth
ERC-20 extension and decimal constraint
ERC-2980 is an interface that extends ERC-20, implementing the existing ERC-20 functions such as transfer, transferFrom, approve, and allowance as-is to maintain backward compatibility. However, since the asset token represents an indivisible security, the decimals value MUST be 0. Even when the decimals() function is implemented, it must always return 0.
Difference between the whitelist and the frozenlist
The two lists look similar but serve different roles. Only addresses on the whitelist can receive tokens from other addresses, but there is no restriction on sending tokens already held. So an address removed from the whitelist can still keep and transfer its existing tokens, as long as it has not been placed on the frozenlist. An address on the frozenlist, on the other hand, can neither receive nor send tokens, a literal frozen state.
The issuer role and its authority
The Issuer is a special party with authority to manage the whitelist and frozenlist, revoke and reassign tokens, and transfer the issuer role. The issuer is appointed by the contract Owner via addIssuer and removed via removeIssuer, and a single contract may have multiple issuers. The owner may also appoint themselves as issuer at or shortly after contract creation. An issuer can also hand off their role to another address via transferIssuer.
Revoke and Reassign
revoke(_from) transfers the entire token balance of the target address to the calling issuer, and reassign(_from, _to) transfers the entire balance of the target address to the specified other address. Both functions can be executed even if the target address is on the frozenlist, and only the issuer has authority to call them. This mechanism exists for situations where ownership must be forcibly adjusted due to a court order or regulatory requirement.
Background: Swiss financial regulation and FINMA
In its 2018 ICO guidelines, the Swiss Financial Market Supervisory Authority (FINMA) defined asset tokens as tokens representing an asset or rights related to it, stating they are economically similar to stocks, bonds, and derivatives. Numerous financial market laws are relevant, including the Securities Exchange Act, Banking Act, Financial Market Infrastructure Act, Collective Investment Schemes Act, and Anti-Money Laundering Act, and the Financial Services Act and Financial Institutions Act must also be considered. The authors explain that the existing EIP-1404 (a simple restricted token standard) is insufficient to meet FINMA's requirement of being able to reissue securities to investors.
Current status of the standard
ERC-2980 has been in Stagnant status since it was proposed on September 8, 2020. That is, this standard has not yet been finalized and sits as a proposal that is no longer being actively discussed or revised. When considering real-world application, it should be kept in mind that the specification could still change or adoption could be discontinued.
Things to watch out for
- Excessive authority of the issuer: The issuer holds powerful authority not found in a typical ERC-20 token, able to move tokens it does not own or freeze another address to block its transfers.
- The owner's management responsibility: The contract owner must manage addresses granted issuer authority so that the authority is held only for a designated period, in order to prevent abuse of power.