Client
Protocol ERC20 Token Minimal Implementation
Purpose
The IProtocolToken interface contains the minimal set of functions that must be implemented in order for an ERC20 token to be compatible with the protocol.
Function Overview
The following functions have been defined in the IProtocolToken interface and must be implemented:
- connectHandlerToToken: Used to connect a deployed Protocol Token Handler to the token.
- getHandlerAddress: used to retrieve the address of the Protocol Token Handler.
checkAllRules Hook
The token must also override the _beforeTokenTransfer function and add a call to the checkAllRules hook defined in the IProtocolTokenHandler interface (using the handler address set in the above functions). Example: