Swapping unsupported tokens through Uniswap via the web interface

Sebastião Teixeira
Coinmonks
4 min readAug 14, 2021

--

Forbidden Tokens By Sebastião Teixeira

Introduction

Recently, it was announced on the Uniswap Blog the restriction of certain tokens through app.uniswap.org, due to the evolution of the regulatory environment. This restriction has been applied solely and exclusively to the web application in the app.uniswap.org domain that serves as a graphical interface for the common user.

Smart contracts are immutable and, therefore, it is still possible to perform swaps with unsupported tokens through the interface, with solidity, or through the web3 library.

The list of unsupported tokens is mainly made up of synthetics from protocols such as Synthetix, UMA and Mirror. Also included are option protocol tokens, such as Opyn, and other governance tokens, such as dYdX. The complete up-to-date list of unsupported tokens on app.uniswap.com can be found here.

The main centralization point in most DeFi protocols is precisely in the webapp that allows the common user interaction with the protocol, however, several solutions have emerged in recent years for this problem, such as IPFS, Swarm, ENS, Unstoppable Domains and Namecoin.

Uniswap over IPFS

IPFS (InterPlanetary File System) is a peer-to-peer hypermedia protocol that allows for the storage and sharing of information over a decentralized network. On June 30, 2020 Uniswap officially announced on the blog the decentralization of hosting the Uniswap Interface using IPFS.

IPFS uses content-based addressing, that is, a hash address is generated based on the information contained in the files. Thus, different files are associated with different addresses. To solve this problem Uniswap uses DNSRecord to map the app.uniswap.org address to the address of the latest version of the webapp and uses ENS to map app.uniswap.eth to it.

Accessing unsupported tokens

As we can see below, token restrictions have only been applied to the app.uniswap.org domain, and in case of a different domain from this one, localUnsupportedListMap will be empty.

You can find the full code at https://github.com/Uniswap/uniswap-interface.

Thus, it is possible to have full access to the Uniswap Dapp through the ENS domain or through an IPFS node. For example:

https://app.uniswap.eth.link/#/

https://cloudflare-ipfs.com/ipns/app.uniswap.org/#/

https://app-uniswap-org.ipns.dweb.link/#/

http://127.0.0.1:8080/ipns/app.uniswap.eth.link/#/ (if you are running your own IPFS node)

Update Alert: Support for these tokens has been completely removed as of v4.13.0 (06 Sep 2021) with the implementation of commit 627a5d3. Using earlier versions unsupported tokens are accessible. For this, IPFS gateways can be used to access v4.12.18:

https://app.uniswap.org vs ipfs://QmaD9oBr38KDhiw5T69ygkA2hxx5yZqXcxSGFoo8yeTYXm/

You can also find the IPFS addresses from different Uniswap graphical interface versions on github. This way, you have the option to choose which version of the interface you want to use, giving you independence from future GUI updates.

Conclusion

Thanks to technology and the advancement of decentralized networks, restricting access in a decentralized application becomes impractical.

I hope this helps all those who want to learn a little more about the DeFi universe and who are looking to decentralize the Internet.

If you found any inaccuracies in this article, please leave a comment.

Disclaimer

Each and every example referred to throughout this article is for education as its sole and exclusive purpose, so it should not be treated as financial advice.

References

Uniswap Blog articles:

https://uniswap.org/blog/token-access-app/

https://uniswap.org/blog/ipfs-uniswap-interface/

IPFS Docs:

Join Coinmonks Telegram Channel and learn about crypto trading and investing

Also, Read

--

--

Sebastião Teixeira
Coinmonks
0 Followers

Young Student, passionate about technology and fascinated with DeFi and cryptocurrencies