Skip to content

About ERC 777

Miao ZhiCheng edited this page Oct 3, 2023 · 4 revisions

Compatibility with ERC-777

The Super Token contract is both ERC-20 compatible and ERC-777 inspired. In fact, the Super Token original contract was largely a fork OpenZeppelin ERC-777 contract, with the modification to support Realtime Balance.

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 the tokensReceived 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.

References

Clone this wiki locally