Fungible token standard (ERC-20 for Filecoin) #277
Replies: 1 comment
-
I have closed my draft FIP that ported ERC-20 to Filecoin. After sitting with the idea for a while and learning more about similar standards both in Ethereum and other ecosystems, I no longer think that following ERC-20 closely is a good idea. We have an opportunity to take the lessons from years of experience subsequent to the adoption of the early Ethereum standards and apply them to a relatively clean slate. I think we have a lot to learn from "standards" that came much later, even if they haven't seen much adoption. In many cases, that lack is due to the huge network effects of open-source and open-protocol ecosystems. For fungible tokens in particular, we might draw also from the work of ERC725 universal profiles, which could establish much safer and more functional interaction patterns. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am about to push a PR proposing a fungible token standard for Filecoin, and opening this topic as a venue for discussion of the content of that FIP.
Some topics for discussion:
uint256
is natural in EVM, such that it was probably never a discussion. But the FVM'suint64
word size may be too small. I have specifieduint64
initially, but don't think we should keep it that way.approve
method safe from message ordering attacks, perhaps by implementing a compare-and-swap mechanic as described in this document?See #279 for meta-discussion about how we should define contract standards generally.
cc @raulk @Stebalien @laudiacay @nicola @Kubuxu
Beta Was this translation helpful? Give feedback.
All reactions