"Soon, Nobody Will Use Centralized Exchanges Because They'll Have Lost Trust in Them," 1inch Co-Founder Says

Sergej Kunz, 1inch co-founder, is certain most volume will go to dexes and dex aggregators.

Hello Defiers! I’m sharing with you a conversation I had with Sergej Kunz, the co-founder of dex aggregator 1inch. I was interested in his story after writing about dex aggregators last week and finding that volume on 1inch had greatly outpaced volume on other platforms. In this interview, he attributes his early success to the algorithm his team developed to provide the best prices, and their aggressive strategy. But this strategy — embodied in their logo’s “manic unicorn”— has also stirred up some controversy in the ecosystem along with a debate on open source versus copyrighted code. Sergej is eager to put that to rest though, and wants to keep delivering new features and a better user experience. Read below for more :)

This interview has been edited for brevity and I’ve bolded my favorite quotes. 

You’re signed up to the free version of The Defiant, so you’ll get only part of the interview. Subscribe now for complete access. Click here to pay with DAI at 70 Dai per annual subscription ($100/yr normal price).

Sergej Kunz: In September 2018, I started to do security audits on Ethereum smart contracts on live streams on YouTube. I was a software engineer for 12, 13 something years, but I was not an expert in Solidity or dapps. I made contact with Anton [Bukov], he's my co-founder, and he joined the live stream and started to share some information and taught me a lot.

We wanted to show people how to read smart contracts, how to understand them, because if someone tells you a smart contract is safe, it's probably not true; it can have backdoors and if the source is not publicly available, none knows what's happening. We did the audits in Russian language because we are Russian. It was a fun time. Also a little dangerous time because we did some audits of ponzi schemes and those projects started to write to me things like, ‘we will kill you.’

We did more than 100 security audits, we did audits for three, four hours, overnight as well. We had a lot of subscribers, about 12,000. Now we are not active there anymore because we started to participate in hackathons. In December of 2018 we were in ETHSingapore hackathon, and won three sponsored bounties, MakerDAO, Set Protocol and Kyber.

image source: Twitter

Camila Russo: Before we get into that, I wanted to ask you about your transition into blockchain. Why did you decide to focus on this technology?

SK:  Because it's cool. It's a new edge. It eliminates a lot of third parties which are not necessary, like banks, and the community is great. At the hackathons I saw this excited, very nice community of Ethereum. And I met also Vitalik in Singapore. The community and the technology are really great.

Hackathon Surfing

CR:   Great. So you had this YouTube channel and then Singapore was your first hackathon. How did your story develop from there?

SK: We started to participate almost every month in hackathons. A month after Singapore, we were in Berlin, in February 2019 we were in Stuttgart, where I'm from in Germany. It was a hackathon from Daimler, Mercedes Benz. It was a very hard one and I didn't sleep the whole weekend. We delivered the product on time. It was a kind of smart car, like rent a car which you could unlock with ether or any token on the Ethereum blockchain. It had a monitor and a touchscreen and everything. We got the mobility prize.

Then we were in Paris. In Paris we didn't get anything. We created the QR token, but I don't think many people understood what it is. You can print these cards with a QR code and a Merkle proof on them and you can just give it to someone and they can take it and get tokens in their own wallet without paying any gas. I had a small printer and we were running around the hackathon saying, ‘I have a money printing machine!’ Then I went to New York, and the next one was in Minsk.

Arb Bots and ETHNewYork

CR: So around when did you start thinking about 1inch?

SK: One or two weeks before ETHNewYork Anton and I were playing with arbitrage bots, trying to find the best price on the market and sell it somewhere else for the best price. And we thought why can't you just put this technology in front of everyone, and now everyone can do arbitrage trades. They buy or sell for the best price in the market by splitting orders across dexes. We were talking with Vitalik about this and he said, he thought Totle was doing something like this, but he didn't know if they were splitting orders. Either way, I thought, I'm going to build that.

Then I was talking with Liam [Horne] from EthGlobal and I told him about the idea, and he said it's not possible. Show me when it's done. And I did, and he was just really excited about it. I showed swapping 100,000 Dai to ether with really high slippage on all the Dexes but on 1inch it was the best price with really small slippage. We reached two million in volume one or two months later.

At the hackathon it was a full working MVP, using Kyber Network, Bancor and Uniswap. So three dexes were integrated and over the time we integrated more dexes, we improved our algorithm, also if sometimes it's impossible to swap one token with another one, because there's no trading pair, we swap to ether and from ether to the token.

CR: So you build 1inch basically over the weekend at ETHNewYork?

SK: Yeah. At the hackathon we built a very simple mathematical formula with the algorithm and we improved it later with a dynamic algorithm by Mikhail Melnik, who also built a lot of statistics for Uniswap, and Bancor. We were on almost no sleep at the hackathon, trying to finish on time, hopefully get the main stage prize.

CR: Did you get it?

SK:  No. The thing is, there were different judges’ groups. And I pitched to one group, who said it's incredible, it’s useful, it brings value for Ethereum, but the other group didn't understand it. My English is not the best one and I cannot explain very well. I have problems with pitching skills. But if Anton is with me, then it's less of a problem. We participated in hackathons for nine months, almost every month.

Delivering Fast

CR:  I think that that's super interesting. What did you get from that experience in participating in so many hackathons? And also, how were you able to come up with new ideas each time?

SK:  We had tons of ideas, also we were talking with the different sponsors, with different people and decided at the hackathon what we are going to build. The value we got from the experience is getting faster at delivering. You can see how fast we are now at 1inch delivering features. We deploy almost every day new things, and this energy comes from the hackathons. At hackathons, you have only two nights and one and a half day to build something and to present it as an MVP.

For example, we build a streaming solution in this time. We were able, on the first night to stream the whole hackathon to the internet over Web3 technologies. We integrated state channels to offer the ability that if someone produces content over YouTube, someone who watches it can pay for each kilobyte they watch. They had to connect to MetaMask and they had to open their state channel on Raiden Network.

CR: That's very cool. And so like what happened to all of these different projects that you built across nine months or so?

SK: They're live and you can use most of them, but we don't work on these projects because we're concentrating on 1inch right now.

Open Source Dilema

CR:  Okay, and about 1inch, I'm interested to understand the difference between your platform and other dex aggregators.

SK: We solved a big problem, the biggest problem from dexes, which is that there's not enough liquidity on each dex. We combined all the liquidity into one place. We invented a special architecture for the aggregation of swaps, and also integrated a proxy smart contracts, which has specific components to protects the user from losing money. And this architecture design, which we invented, is now used by Dex.AG and Paraswap. We got into a big discussion with the community after we said Dex.Ag copied our smart contract.

[I reached out to Dex.Ag for comment on claims that it copied 1inch code under copyright and they pointed me to previous statements. Dex.Ag tweeted on Nov. 21 a statement, which said attacks on the dex aggregator were “counterproductive, unfounded and unnecessary.” The legal counsel of Concourse, which owns Dex.Ag, said on GitHub the company “didn’t steal any code,” responding to a petition from Kunz to remove code.]

CR: That's interesting because this space is very much about open source, and the risk or downside of that can be that a competitor can copy your code. So how do you deal with that?

SK: We decided to try another way and published OneSplit. This is an on-chain dex aggregator. We published a Gitcoin grant for that and we were funded with $8,000 and got an additional $2,000 from the Ethereum Foundation.

We are actually not on-chain with 1inch. We have centralized off-chain books from Ox and AirSwap -- AirSwap isn't integrated anywhere else -- and we of course also have all the on-chain swaps. We are now handling all the on-chain swaps with OneSplit, which is open source. 1inch also uses a proxy smart contact which protect users from loosing money. We have different validators there which verify that the user get not less than expected. This is under copyright.

But OneSplit is an open source project and any competitor should use it, fork it, change it all you want, they can contribute if they like, whatever. It was only a waste of time to argue with people about a license and copyright and so we just say, use it. Use our technology. We have now enough users and they use us because we have nice features, we have more integration than others and we are very easy to use.

[ … ]

Paid subscribers have access to the full interview, including sections on:

  • Attacks on 1inch causing node overload

  • Details on its special algorithm

  • Philosophy behind the manic unicorn

  • 1inch’s business model

  • Taking over Cexes

Subscribe now so you don’t miss any of The Defiant content :) Subscribers reading this post: Head to posts marked with the little lock to see the full content.

The Defiant is a daily newsletter focusing on decentralized finance, a new financial system that’s being built on top of open blockchains. The space is evolving at breakneck speed and revolutionizing tech and money. Sign up to learn more and keep up on the latest, most interesting developments. Subscribers get full access at $10/month or $100/year, while free signups get only part of the content.

Click here to pay with DAI.There’s a limited amount of OG Memberships at 70 Dai per annual subscription ($100/yr normal price).

About the author: I’m Camila Russo, a financial journalist writing a book on Ethereum with Harper Collins. (Pre-order The Infinite Machine here). I was previously at Bloomberg News in New York, Madrid and Buenos Aires covering markets. I’ve extensively covered crypto and finance, and now I’m diving into DeFi, the intersection of the two.