solady icon indicating copy to clipboard operation
solady copied to clipboard

🪙 ERC223

Open z0r0z opened this issue 2 years ago • 1 comments

After more than 6 years in EIP hell it looks like the madlad @Dexaran finally got ERC-223: Token with transaction handling model published as a token standard interface. Wdwt as to inclusion as optimized reference~~

Pros:

  • Simple.
  • Lowass number (223).
  • Optimal for defi with send receipts.

Cons:

  • Hafta implement bespoke receivers.
  • Prob some security minded stuff but, it has been review for 6 years, seems ok.

z0r0z avatar Sep 30 '23 11:09 z0r0z

FYI here you can find more info regarding ERC-223 as well as some old discussions https://dexaran.github.io/erc223/

Regarding security considerations -

  • ERC-20 is not secure. It resulted in $130M worth of tokens being lost. So, ERC-223 is exactly a "security patch" for ERC-20 standard.

  • Reentrancy issues must be taken into account when dealing with ERC-223 tokens. ERC-223 makes "tokens" behave identical to "ether".

  • tokenReceived function must be invoked AFTER the balance change in the token contract.

Dexaran avatar Oct 02 '23 14:10 Dexaran

closin for now. I expect that we might see more of these kinds of use cases handled by SCA batch calls.

z0r0z avatar Jun 02 '24 13:06 z0r0z