Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines ERC2980, a proposal for ERC20 tokens designed to address major Swiss financial laws.
This article translates, summarizes, and expands on the specification below.
I also cover other EIPs:
Overview
ERC2980 proposes an ERC20-compatible token designed to comply with major Swiss financial laws. Specifically, the proposal addresses the following legislation:
- Swiss Stock Exchange Act
- Banking Act
- Financial Market Infrastructure Act
- Act on Collective Investment Schemes
- Anti-Money Laundering Act
The proposal also considers the Financial Services Act and the Financial Institutions Act, and aims to accommodate both Swiss and EU jurisdictions.
This token standard addresses a class of assets known as asset tokens (or security tokens). These tokens provide a means of managing ownership of securities during issuance and trading. Two notable functional restrictions are:
- Only the issuer can manage the whitelist.
- Only the issuer can freeze or revoke funds.
Motivation
In its ICO guidelines published on February 16, 2018, the Swiss Financial Market Supervisory Authority (FINMA) defined asset tokens as tokens representing assets or claims. Specifically, they may be equivalent or analogous to shares, bonds, or derivatives.
Under this definition, the issuance and operation of asset tokens cannot be handled solely through the comparatively simple mechanisms used for payment tokens or utility tokens. They require more extensive and stringent regulatory controls and alignment with multiple financial laws.
ERC2980 is therefore intended to support the safe and lawful handling of tokens that function like securities on a blockchain.
Specification
ERC2980 contract interface
interface ERC2980 extends ERC20 {
/// @dev This emits when funds are reassigned
event FundsReassigned(address from, address to, uint256 amount);
/// @dev This emits when funds are revoked
event FundsRevoked(address from, uint256 amount);
/// @dev This emits when an address is frozen
event FundsFrozen(address target);
/**
* @dev getter to determine if address is in frozenlist
*/
function frozenlist(address _operator) external view returns (bool);
/**
* @dev getter to determine if address is in whitelist
*/
function whitelist(address _operator) external view returns (bool);
}FundsReassigned
event FundsReassigned(address from, address to, uint256 amount);Emitted when funds are reassigned.
This event indicates a change in ownership, meaning that funds have been moved from one address to another.
Unlike a normal transfer, this is a forced reassignment initiated by the issuer.
Parameters
from- Address of the original asset holder.
to- Address of the new asset holder.
amount- Quantity of tokens reassigned.
FundsRevoked
event FundsRevoked(address from, uint256 amount);Emitted when funds are confiscated or revoked. This event indicates that tokens have been revoked from a particular address because of unauthorized use outside the whitelist, a regulatory violation, or a similar circumstance. The issuer uses this operation to enforce revocation.
Parameters
from- Address of the asset holder whose funds were revoked.
amount- Quantity of tokens revoked.
FundsFrozen
event FundsFrozen(address target);Emitted when an address is frozen. This event indicates that an operation has been performed to prevent a particular address from sending or receiving tokens. For example, an address may be frozen for anti-money-laundering purposes or pursuant to a court order.
Parameters
target- Address to be frozen.
frozenlist
function frozenlist(address _operator) external view returns (bool);Checks whether the specified address is on the frozen list.
External callers can use this function to determine whether an address is currently prohibited from sending and receiving tokens.
A return value of true means that the address is frozen.
Arguments
_operator- Address to check for frozen status.
Return value
booltrueif frozen;falseotherwise.
whitelist
function whitelist(address _operator) external view returns (bool);Checks whether the specified address is on the whitelist. This function determines whether an address is authorized to send and receive assets, meaning that the issuer has approved it. Addresses outside the whitelist are subject to restrictions on certain operations, such as receiving or sending tokens, as detailed in the next section.
Arguments
_operator- Address to check for inclusion on the whitelist.
Return value
booltrueif whitelisted;falseotherwise.
Important note
Under ERC2980, asset tokens are indivisible, so the number of fractional digits (decimals) must always be zero.
This reflects how assets such as securities are handled in this design: a quantity such as 1.25 shares cannot be represented.
Whitelist and frozen list
ERC2980 is designed to address Swiss financial regulations by controlling token transfers through two address lists: a whitelist and a frozen list. Only operators holding the special Issuer role may modify either list.
Whitelist
An address on the whitelist can receive tokens from other addresses. Once removed from the whitelist, an address can no longer receive new tokens but can still send the tokens it already holds. The whitelist therefore restricts receipt, rather than sending.
Frozen list
An address on the frozen list can neither send nor receive tokens. Because token movements are completely blocked, freezing can be used for legal compliance measures such as anti-money-laundering controls or court orders.
Interface Whitelistable {
/**
* @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
*/
function addAddressToWhitelist(address _operator) external returns (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
*/
function removeAddressFromWhitelist(address _operator) external returns (bool);
}
Interface Freezable {
/**
* @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
*/
function addAddressToFrozenlist(address _operator) external returns (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
*/
function removeAddressFromFrozenlist(address _operator) external returns (bool);
}addAddressToWhitelist
function addAddressToWhitelist(address _operator) external returns (bool);Adds an address to the whitelist.
The specified address becomes eligible to receive tokens.
The caller must hold the Issuer role.
Arguments
_operator- Address to add to the whitelist.
Return value
booltrueif the address was added successfully;falseif it was already whitelisted.
removeAddressFromWhitelist
function removeAddressFromWhitelist(address _operator) external returns (bool);Removes an address from the whitelist. The specified address is removed from the list. After removal, the address cannot receive additional tokens. It can still send tokens it already owns.
Arguments
_operator- Address to remove from the whitelist.
Return value
booltrueif removed successfully;falseif the address was not on the list.
addAddressToFrozenlist
function addAddressToFrozenlist(address _operator) external returns (bool);Adds an address to the frozen list.
This operation fully freezes the specified address.
It can no longer send or receive tokens.
The caller must hold the Issuer role.
Arguments
_operator- Address to add to the frozen list.
Return value
booltrueif added successfully;falseif the address was already on the frozen list.
removeAddressFromFrozenlist
function removeAddressFromFrozenlist(address _operator) external returns (bool);Unfreezes an address by removing it from the frozen list.
The specified address is no longer subject to the freeze.
It can send and receive tokens again, subject to the other transfer restrictions. The caller must hold the Issuer role.
Arguments
_operator- Address to remove from the frozen list.
Return value
booltrueif removed successfully;falseif the address was not on the frozen list.
Issuers
The Issuer is a privileged role authorized to manage the whitelist and frozen list and to revoke or reassign tokens. Multiple Issuers may exist.
The contract owner manages the addition and removal of Issuers. An Issuer may also transfer its own role to another address. The owner can register itself as an Issuer during or immediately after deployment.
This design aims to accommodate Swiss financial regulation while retaining flexibility in governance and operations.
Interface Issuable {
/**
* @dev getter to determine if address has issuer role
*/
function isIssuer(address _addr) external view returns (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
*/
function addIssuer(address _operator) external returns (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
*/
function removeIssuer(address _operator) external returns (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
*/
function transferIssuer(address _newIssuer) external;
}isIssuer
function isIssuer(address _addr) external view returns (bool);Checks whether the specified address is an Issuer. The function determines whether the address currently holds the Issuer role. External callers can use it to determine whether an address has administrative privileges.
Arguments
_addr- Address to check for the Issuer role.
Return value
booltrueif the address is an Issuer.falseotherwise.
addIssuer
function addIssuer(address _operator) external returns (bool);Adds a new Issuer. The contract owner uses this function to register a new Issuer address. An address that is already an Issuer cannot be registered again.
Arguments
_operator- Address to register as an Issuer.
Return value
booltrueif newly registered as an Issuer;falseif already an Issuer.
removeIssuer
function removeIssuer(address _operator) external returns (bool);Removes the specified Issuer. The function removes the specified address from the set of Issuers. Only the owner may call it, making it an important role-management operation.
Arguments
_operator- Address to remove from the set of Issuers.
Return value
booltrueif successfully removed.falseif the address was not an Issuer.
transferIssuer
function transferIssuer(address _newIssuer) external;Transfers the current Issuer's role to another address. The Issuer itself uses this function to hand over its role. This provides governance flexibility while allowing the issuer to take responsibility for the role transfer.
Arguments
_newIssuer- New address to receive the Issuer role.
Revoke and Reassign
Revoke and Reassign are privileged operations that allow an Issuer to forcibly move tokens from a specified address. These operations can be performed even if the target address is on the frozen list.
Revoke
Transfers the entire token balance of the specified address to the calling Issuer's address. It is primarily intended for confiscation or revocation, allowing funds to be forcibly recovered from parties who violate rules or misuse tokens.
Reassign
Transfers the entire token balance of the specified address to another specified address. It is used to forcibly transfer asset ownership, for example in response to judicial decisions or breaches of contract.
Both functions must be callable only by addresses holding the Issuer role.
Interface RevokableAndReassignable {
/**
* @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
*/
function revoke(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
*/
function reassign(address _from, address _to) external;
}revoke
function revoke(address _from) external;Transfers the target address's balance to the Issuer itself. The function moves the specified address's entire token balance to the calling Issuer's own address. It also applies to frozen addresses and can be used to enforce sanctions or revoke tokens.
Arguments
_from- Address whose token balance will be recovered.
reassign
function reassign(address _from, address _to) external;Transfers the target address's balance to another address. This function moves the specified address's entire token balance to a separately specified recipient. It can be used to forcibly transfer token ownership in cases such as breach of contract. Only an Issuer may call it.
Arguments
_from- Source address whose token balance will be moved.
_to- New address that will receive the tokens.
Additional details
At the time of the proposal, its authors argued that no existing token standard explicitly supported compliance with securities laws and related regulations. For example, ERC1404 (Simple Restricted Token Standard) did not fully address the requirements identified by the Swiss Financial Market Supervisory Authority (FINMA).
Under the Swiss legal requirements described in the proposal, issuers need a freeze mechanism to impose and enforce transfer restrictions. The tokens must also be revocable, and a whitelist mechanism is required to support AML/KYC controls.
ERC2980 therefore introduces the powerful Issuer role to enable flexible token management in response to these legal requirements.
Compatibility
ERC2980 maintains compatibility with the existing ERC20 standard. Specifically, the following standard ERC20 functions can be implemented unchanged:
transfertransferFromapproveallowance
The decimals function can also be implemented for compatibility, but it must always return zero because the asset tokens are indivisible.
This allows ERC2980 tokens to integrate with existing ERC20 infrastructure and wallets.
Security
The main security concern in ERC2980 is the extent of the Issuer's privileges. The Issuer is a special role not found in standard ERC20 tokens and can perform powerful operations:
- Transfer tokens from any address without owning those tokens.
- Freeze an address, completely preventing it from sending or receiving tokens.
To prevent misuse of these privileges, the contract owner is responsible for managing Issuers appropriately.
- Carefully vet addresses designated as Issuers.
- Immediately revoke the Issuer role when it is no longer needed.
These measures help prevent unauthorized token operations and unjustified freezing or transfer of assets. Security depends heavily on operational governance as well as technical controls.
References
Gianluca Perletti (@Perlets9), Alan Scarpellini (@alanscarpellini), Roberto Gorini (@robertogorini), Manuel Olivi (@manvel79), "ERC-2980: Swiss Compliant Asset Token [DRAFT]," Ethereum Improvement Proposals, no. 2980, September 2020. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-2980.
Conclusion
ERC2980 proposes an ERC20 token designed to address major Swiss financial laws.
If you have questions, feel free to reach out by direct message on Twitter.
I also publish on the following platforms:



