-
Notifications
You must be signed in to change notification settings - Fork 258
Super Token Overview
Miao ZhiCheng edited this page Jul 10, 2023
·
6 revisions
-
SuperfluidToken.sol
: This is an abstract token implementation that is independent of the actual token standards (such as ERC20, ERC777, ...), and it provides all the necessary "Super Token" features -
SuperToken.sol
: This includes theSuperfluidToken
, and implements the ERC20 & ERC777 (non-compliant way, see note below) interfaces.
While the initial implementation of SuperToken is compatible with ERC777, a few changes was done or planned for Super Token which deviate it from the standard:
- For a security precaution,
transfer
function does not trigger thetokensReceived
hook. - In a future version of Super Token, the entire "operators" apparatus might be completely removed from Super Token.
- In a future version of Super Token, the ERC-1820 registration flow may also be replaced with bespoke Super Token mechanism. The reason is that many newer EVM chains often omit 1820 support when they launch, and being compatible with 1820 gives nothing but the ERC-777 compatibility for Super Token.
- The initial scaffolding of the Super Token is a copy of OpenZeppelin ERC-777. Afterwards, the balanceOf function was modified to be able to calculate real time balance.
- Why ERC-777? At the time it seemed a good idea.
- Governance Overview
- For Contributors
- Development Process
- Protocol EVMv1 Operations
- Protocol EVMv1 Technical Notes
- Protocol EVMv1 Core Subgraph