This new standard meets the new era of asset tokens (known also as “security tokens”). These new methods manage securities ownership during issuance and trading. The issuer is the only role that can manage a white-listing and the only one that is allowed to execute “freeze” or “revoke” functions.
Motivation
In its ICO guidance dated February 16, 2018, FINMA (Swiss Financial Market Supervisory Authority) defines asset tokens as tokens representing assets and/or relative rights (FINMA ICO Guidelines). It explicitly mentions that asset tokens are analogous to and can economically represent shares, bonds, or derivatives. The long list of relevant financial market laws mentioned above reveal that we need more methods than with Payment and Utility Token.
Specification
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119.
The words “asset tokens” and “security tokens” can be considered synonymous.
Every ERC-2980 compliant contract MUST implement the ERC-2980 interface.
ERC-2980 (Token Contract)
interfaceERC2980extendsERC20{/// @dev This emits when funds are reassigned
eventFundsReassigned(addressfrom,addressto,uint256amount);/// @dev This emits when funds are revoked
eventFundsRevoked(addressfrom,uint256amount);/// @dev This emits when an address is frozen
eventFundsFrozen(addresstarget);/**
* @dev getter to determine if address is in frozenlist
*/functionfrozenlist(address_operator)externalviewreturns(bool);/**
* @dev getter to determine if address is in whitelist
*/functionwhitelist(address_operator)externalviewreturns(bool);}
The ERC-2980 extends ERC-20. Due to the indivisible nature of asset tokens, the decimals number MUST be zero.
Whitelist and Frozenlist
The accomplishment of the Swiss Law requirements is achieved by the use of two distinct lists of address: the Whitelist and the Frozenlist.
Addresses can be added to one or the other list at any time by operators with special privileges, called Issuers, and described below.
Although these lists may look similar, they differ for the following reasons: the Whitelist members are the only ones who can receive tokens from other addresses. There is no restriction on the possibility that these addresses can transfer the tokens already in their ownership.
This can occur when an address, present in the Whitelist, is removed from this list, without however being put in the Frozenlist and remaining in possession of its tokens.
On the other hand, the addresses assigned to the Frozenlist, as suggested by the name itself, have to be considered “frozen”, so they cannot either receive tokens or send tokens to anyone.
Below is an example interface for the implementation of a whitelist-compatible and a frozenlist-compratible contract.
InterfaceWhitelistable{/**
* @dev add an address to the whitelist
* Throws unless `msg.sender` is an Issuer operator
* @param _operator address to add
* @return true if the address was added to the whitelist, false if the address was already in the whitelist
*/functionaddAddressToWhitelist(address_operator)externalreturns(bool);/**
* @dev remove an address from the whitelist
* Throws unless `msg.sender` is an Issuer operator
* @param _operator address to remove
* @return true if the address was removed from the whitelist, false if the address wasn't in the whitelist in the first place
*/functionremoveAddressFromWhitelist(address_operator)externalreturns(bool);}InterfaceFreezable{/**
* @dev add an address to the frozenlist
* Throws unless `msg.sender` is an Issuer operator
* @param _operator address to add
* @return true if the address was added to the frozenlist, false if the address was already in the frozenlist
*/functionaddAddressToFrozenlist(address_operator)externalreturns(bool);/**
* @dev remove an address from the frozenlist
* Throws unless `msg.sender` is an Issuer operator
* @param _operator address to remove
* @return true if the address was removed from the frozenlist, false if the address wasn't in the frozenlist in the first place
*/functionremoveAddressFromFrozenlist(address_operator)externalreturns(bool);}
Issuers
A key role is played by the Issuer. This figure has the permission to manage Whitelists and Frozenlists, to revoke tokens and reassign them and to transfer the role to another address. No restrictions on the possibility to have more than one Issuer per contract. Issuers are nominated by the Owner of the contract, who also is in charge of remove the role. The possibility of nominating the Owner itself as Issuer at the time of contract creation (or immediately after) is not excluded.
Below is an example interface for the implementation of the Issuer functionalities.
InterfaceIssuable{/**
* @dev getter to determine if address has issuer role
*/functionisIssuer(address_addr)externalviewreturns(bool);/**
* @dev add a new issuer address
* Throws unless `msg.sender` is the contract owner
* @param _operator address
* @return true if the address was not an issuer, false if the address was already an issuer
*/functionaddIssuer(address_operator)externalreturns(bool);/**
* @dev remove an address from issuers
* Throws unless `msg.sender` is the contract owner
* @param _operator address
* @return true if the address has been removed from issuers, false if the address wasn't in the issuer list in the first place
*/functionremoveIssuer(address_operator)externalreturns(bool);/**
* @dev Allows the current issuer to transfer its role to a newIssuer
* Throws unless `msg.sender` is an Issuer operator
* @param _newIssuer The address to transfer the issuer role to
*/functiontransferIssuer(address_newIssuer)external;}
Revoke and Reassign
Revoke and Reassign methods allow Issuers to move tokens from addresses, even if they are in the Frozenlist. The Revoke method transfers the entire balance of the target address to the Issuer who invoked the method. The Reassign method transfers the entire balance of the target address to another address. These rights for these operations MUST be allowed only to Issuers.
Below is an example interface for the implementation of the Revoke and Reassign functionalities.
InterfaceRevokableAndReassignable{/**
* @dev Allows the current Issuer to transfer token from an address to itself
* Throws unless `msg.sender` is an Issuer operator
* @param _from The address from which the tokens are withdrawn
*/functionrevoke(address_from)external;/**
* @dev Allows the current Issuer to transfer token from an address to another
* Throws unless `msg.sender` is an Issuer operator
* @param _from The address from which the tokens are withdrawn
* @param _to The address who receives the tokens
*/functionreassign(address_from,address_to)external;}
Rationale
There are currently no token standards that expressly facilitate conformity to securities law and related regulations. EIP-1404 (Simple Restricted Token Standard) it’s not enough to address FINMA requirements around re-issuing securities to Investors.
In Swiss law, an issuer must eventually enforce the restrictions of their token transfer with a “freeze” function. The token must be “revocable”, and we need to apply a white-list method for AML/KYC checks.
Backwards Compatibility
This EIP does not introduce backward incompatibilities and is backward compatible with the older ERC-20 token standard.
This standard allows the implementation of ERC-20 functions transfer, transferFrom, approve and allowance alongside to make a token fully compatible with ERC-20.
The token MAY implement decimals() for backward compatibility with ERC-20. If implemented, it MUST always return 0.
Security Considerations
The security considerations mainly concern the role played by the Issuers. This figure, in fact, is not generally present in common ERC-20 tokens but has very powerful rights that allow him to move tokens without being in possession and freeze other addresses, preventing them from transferring tokens. It must be the responsibility of the owner to ensure that the addresses that receive this charge remain in possession of it only for the time for which they have been designated to do so, thus preventing any abuse.