The DeFi sector comes with many arbitrage opportunities for traders. Let's understand different arbitrage methods available in this industry and how they work!
However, anyone thinking arbitrage is free and easy money — hold it right there! DeFi arbitrage requires strong technical skills and excellent market knowledge. In this article, CMC Academy will give you an overview of:
- The kind of arbitrage opportunities existing in DeFi.
- How each arbitrage opportunity works (including an ELI5 explanation of each).
- An assessment of how difficult they are to execute.
- An overview of the risks involved in DeFi arbitrage.
Join us in showcasing the cryptocurrency revolution, one newsletter at a time. Subscribe now to get daily news and market updates right to your inbox, along with our millions of other subscribers (that’s right, millions love us!) — what are you waiting for?
What Is Arbitrage?
In DeFi, arbitrage comes in many different flavors. Let's explore the different arbitrage opportunities in detail.
Bridge Arbitrage
How Does the Arbitrage Work?
ELI5
Imagine bridge arbitrages like the same currency in two different countries. Say both countries use the dollar, but country B doesn't have enough dollars and needs more. It is ready to pay you a bit extra if you get some dollars across the border (the bridge) to relieve the shortage.
Difficulty
Very low. However, bridge arbitrages are very rare. You also need to keep in mind that bridging to wrapped assets does not fall under this arbitrage, since it adds a layer of risk.
Stablecoin Arbitrage
How Does the Arbitrage Work?
In the example of Tether, it was as simple as buying USDT when it was below its peg and waiting a few hours. No bridging or cross-exchange transactions were required: generally the case when a stablecoin trades below its peg.
ELI5
Stablecoin arbitrages are pretty self-explanatory and equivalent to fixed exchange rates in the real economy.
Difficulty
Yield Arbitrage
Such a spread is unlikely, though, and differences are most likely to arise across different DeFi and CeFi platforms. You may borrow from a DeFi protocol, but lend on a CeFi custodial platform or vice versa.
How Does the Arbitrage Work?
ELI5
This arb is also fairly easy to understand. A (not so realistic) real-world example would be having a farm and hiring workers. The workers cost $1,000 per day, and the profit from their output is $1,100.
Difficulty
Easy to do in theory but also rare, and these opportunities disappear quickly. Lending and borrowing rates are dynamic. An easy example like the one above would be arbed away almost instantly. These opportunities are also being increasingly automated away by protocols.
Asset Arbitrage
Bridge arbitrages are a subset of asset arbitrage, i.e., the same asset being priced differently across exchanges, ecosystems or countries. The most famous example of asset arbitrage is Sam Bankman-Fried, the CEO of FTX, doing Bitcoin arbitrage in Japan. In short, SBF was buying BTC in the United States and selling it in Japan at a higher price — although it was much more difficult than that. You can see the full story in this interview:
How Does the Arbitrage Work?
Asset arbitrage is usually done with bots that simultaneously buy and sell assets across different exchanges. However, since openly available bots can be unreliable and are available to anyone, an edge can only be attained through coding your own asset arbitrage bot.
ELI5
Similar to bridge arbitrage, a real-world equivalent is the same asset having a different worth across different exchanges. This is often impossible for different reasons, like regulations and capital controls.
Difficulty
An arb like the one SBF did is very complex and capital-intensive, which is why it was so profitable! A simple cross-exchange arbitrage is simple and can be done automatically, which is why it is easy to pull off. Anything in between is possible as well, depending on the arbitrage.
Trade Batching and Flash Loans Arbitrage
In other words, trade batching works like a "fill or kill" order on an exchange or an IF-THEN logic in an Excel sheet. Traders can build profitable risk and reduce the risk of their different legs becoming unprofitable, since the transaction is only triggered if all the conditions are fulfilled. Flash loans add another layer to that and allow traders to execute these arbs without much capital.
How Does the Arbitrage Work?
ELI5
Difficulty
These arbs are highly complex and not run by hand. You need to code smart contracts that are triggered by a certain execution logic to execute these arbs profitably.
Frontrunning Arbs and Miner-Extractable Value
How Does the Arbitrage Work?
Say you want to execute the arb from the previous example, but a miner front runs you and executes your transaction with a higher gas price. You can cancel your own batched transaction with a simple transaction with a higher gas price. The opposite is also possible: if you know how to monitor blockchain transactions and can write a bot to scan the mempool, you can front run others users.
ELI5
Picking up on Nansen's previous example: you are off to buy and sell comic books to different dealers, but find out someone else is already doing your deal. You turn around and head home. While you lose money on the gas, you don't have to make the transaction, which has now become unprofitable.
Difficulty
DeFi Arbitrage Risks and Conundrums
By now, you understand that DeFi arbitrage is more complex than it initially sounds. The easy deals are often gone quickly, and the complex stuff is not just "free money." Moreover, there are risks to DeFi arbitrage as well:
Smart Contract Risk
Smart contracts across different exchanges can fail or be exploited. Your funds are at risk if you interact with a potentially faulty smart contract, even after your transaction has been executed.
Gas Risk
Fluctuating Ethereum gas prices can lead to arbitrage opportunities becoming unprofitable. That makes batched transactions necessary because these transactions are only triggered upon a certain gas price. However, the arb may be gone until the transaction is put through.
Asset Price Risk
As the example of UST showed, a stablecoin can also be surprisingly unstable. The degree of risk related to asset arbitrage is often subjective. While one person may be convinced that USDT could never fail, someone else may not be so sure. That is partly the reason why stablecoin de-pegs occur in the first place.
Conclusion
You may now think: "arbitrage... sounds good but doesn't work."
That is true and also not true. Easy arbitrage opportunities are certainly difficult to come by and disappear quickly. Doing arbitrage in DeFi systematically requires constantly monitoring blockchain transactions, coding knowledge to write well-functioning bots and skill in interacting with different exchanges and blockchain ecosystems. In other words, DeFi arbitrage is best left to professionals.