Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.

Add ERC-20 compatibility check when creating a new exchange #49

@gundas

Description

@gundas

Hello,
I have a small suggestion - currently Uniswap has about 2400 exchanges deployed. A few of the tokens (still) do no fully support ERC-20. The worst was BNB, but there are others - PKG, XYO etc.

Maybe it would be a good idea to a do a simple token compatibility test when creating a new exchange:

assert(token.transferFrom(msg.sender, address(this),1))
assert(token.transfer(msg.sender,1))

This small check would prevent people from loosing money.

What do you think? Maybe it is not too late to implement it in V2?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions