Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor asset terminology to tokens #991

Closed
PaulRBerg opened this issue Jul 27, 2024 · 8 comments
Closed

Refactor asset terminology to tokens #991

PaulRBerg opened this issue Jul 27, 2024 · 8 comments
Assignees
Labels
effort: low Easy or tiny task that takes less than a day. priority: 3 Nice-to-have. Willing to ship without this. type: docs Changes to documentation. work: clear Sense-categorize-respond. The relationship between cause and effect is clear.

Comments

@PaulRBerg
Copy link
Member

To align the NatSpec with the terminology used in our PR and documentation site, we should refactor all references to 'assets' to say 'tokens' instead.

@PaulRBerg PaulRBerg added type: docs Changes to documentation. effort: low Easy or tiny task that takes less than a day. priority: 3 Nice-to-have. Willing to ship without this. work: clear Sense-categorize-respond. The relationship between cause and effect is clear. labels Jul 27, 2024
@smol-ninja
Copy link
Member

I also like calling them tokens over assets because the asset is a broad category whereas token has a specific meaning.

But, I remember having a conversation during one of the discussions / PR review / on slack with @andreivladbrg. IIRC, the reason that the "assets" terminology was chosen was because the "token" was reserved to represent the NFT (as ERC721 "token"). Has that opinion be changed?

@PaulRBerg
Copy link
Member Author

the reason that the "assets" terminology was chosen was because the "token" was reserved to represent the NFT

Correct, that was the original rationale in ~2022. But then, with time, we realized that the 'token' terminology is ubiquitous for ERC-20s. So much so that the slight confusion that may occur due to the NFT also being referred to as a 'token' is negligible compared to the inaccuracy of referring to ERC-20s as assets.

Has that opinion be changed?

Yes. I can't find it now, but we discussed it on Slack.

@andreivladbrg andreivladbrg self-assigned this Aug 20, 2024
@PaulRBerg

This comment was marked as resolved.

@smol-ninja

This comment was marked as resolved.

@razgraf
Copy link
Member

razgraf commented Nov 13, 2024

I still think there's a need to separate the ERC721 "token" from the ERC20 "token" it is entitled to.

we realized that the 'token' terminology is ubiquitous for ERC-20s

I agree with this, but how do we quantify the "inaccuracy of referring to ERC-20s as assets" here? I vaguely remember our conversation during the Sablier Mainnet sprints re. MNA/MNT, but I still find using two separate terms clearer in contexts where both standards are working closely together.

Meaning I'd still vote for sticking with asset: ERC20 if we can (since we cannot redefine ERC721's tokenId because that's part of the standard). Not saying asset is the best (might still pick token if it were available) but in this context separation > conflict while adhering to popular terminology.

@smol-ninja
Copy link
Member

Good point. My take is that we use streamID to refer to ERC721's token ID instead of tokenId in our telegram chats as well as in the docs. Sablier streams are represented by NFTs. I understand ERC721 standard uses tokenID but we don't use that name anywhere or do we?

Referring to EIPs, EIP20 does not use the word asset as well. So if we are referring to EIPs, crypto users seem to be familiar with token while referring to ERC20 and tokenID while referring to ERC721.

TL;DR we can use token for ERC20 and streamID for stream ID.

@PaulRBerg
Copy link
Member Author

PaulRBerg commented Nov 13, 2024

I am massively in favor of using the term token for referring to ERC-20s. We also discussed this on Slack, and not just about MNTs (maybe @maxdesalle can dig up the conversation, I can't find it now).

tokenId is a property that only some users see. Whereas all users see asset. I wouldn't name the latter property based on the former.

Also, nobody refers to NFTs as tokens, despite the eponymous reference in the acronym.

Plus, what Shub said.

@razgraf
Copy link
Member

razgraf commented Nov 14, 2024

Fair points from both! Let's go with token then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: low Easy or tiny task that takes less than a day. priority: 3 Nice-to-have. Willing to ship without this. type: docs Changes to documentation. work: clear Sense-categorize-respond. The relationship between cause and effect is clear.
Projects
None yet
Development

No branches or pull requests

4 participants