Original title: popular science | why DeFi needs interest rate swaps
Original post by: ethereum lover
This article explains the importance of interest rate swap (also known as "interest rate swap"), especially for the current DeFi field. We will elaborate on the following two points: first, interest rate swaps are the "average" expectation of future floating interest rates, which can be used to judge market conditions; Second, the size and importance of the central swap market. We also illustrated how to arbitrage using the swap rate. The best part of this article is liquidity. Both the supply and demand for interest-rate swaps come from market participants. Finally, this paper introduces Swap Rate and Swap Rate API/SDK based on the octopus protocol. With Swap Rate, you can hedge or invest in swaps more easily.
The swap rate is the market's expectation of a floating rate
Just to give you a little bit of an idea, what is the swap rate? This is a fixed rate offered by the market in exchange for a variable rate (floating rate) that has not yet matured. Different lock-up periods correspond to different swap rates. As a result, there may be January, April and 254-day swap rates in the market. In Swap Rate, we provide 12 interest rates for the next 12 months.

- the HTTPS: swaprate. Finance -
Swap rates can go up or down depending on market expectations, liquidity and other factors. As a result, our order book runs on meta-transactions (like the 0x protocol), offering hundreds of quotes per second. Let's start by talking about how swap rates reflect market expectations.
How do swap rates reflect market expectations
The curve above shows the 12 swap rates currently offered by the market to exchange variable rates. The market will give me an annualized swap rate of 3 percent if I swap with a variable rate (from now until October 1). By October 1, we'll know what the floating rate is, and we'll settle it.
Joe Lubin announced on twitter that he will start pouring Dai into DeFi in September. What will be the impact of this news? Swap rates, which start in September, will fall sharply. Market makers and users will cancel the order on Swap Rate and replace it with new, less attractive orders. Indeed, knowing that the deposit rate is going to go down in September, if I were the variable rate buyer, the fixed rate I would be willing to offer would definitely go down, and I would react from now on, except that the swap rate would go down significantly after September.
Thus, the swap rate (the so-called "swap curve") reflects the market's average expectation of the actual annualized swap rate over a given period of time. If I don't agree with these expectations, I can use this to make money. In fact, if my expectations were right, I could have made 10 times that.
DeFi vs CeFi
Centralized market
The importance of interest-rate swaps to the traditional financial system will not be discussed in this article. The conclusion is up to you.
- market size (source: wikipedia) -
Interest-rate swaps are the world's largest market.
Market expectations for DeFi
Swap rates reflect market expectations and adjust accordingly, and are a good indicator of how the market views a particular interest rate.
Hedge DeFi's interest rate
The most obvious use case for swaps is locking in deposit and loan rates. Indeed, when I don't want to take the risk and want to get a guaranteed deposit rate, just when someone wants to get a locked-in loan rate, we can take into account the difference between the deposit rate and the loan rate, and we can reach a swap agreement. We'll explain this example in more detail in the "liquidity" section below.
arbitrage
Why can swaps be arbitraged? Because with swaps, you can easily hedge the cash flow between different fixed-income instruments at maturity.
Let's say you see a 1-year bond yielding 10%. You can invest $100 right now and get $110 in a year. So let's say this is a 1-year swap and the interest rate is 6%. You can arbitrage: borrow $100, use a swap to fix the interest rate on the loan at 6%, and buy the bond. At the end of the year, when the bond matures, you get $110, and after giving $106 back to the lender, you get $4!
As more and more people arbitrage this way, the price of the bond goes up and the yield goes down.
Why do you need liquidity on both the supply and demand side
Liquidity is key. Next, we will explain why both the supply and demand sides need liquidity.
Deposits and loans are hedged against each other
As we explained above, both lenders and borrowers dislike risk and uncertainty.
-natural demand for swaps
In this model, interest rate swaps not only make the DeFi ecosystem more robust and reliable, but also allow people to build new products with predictable and stable cash flows.
Alice swaps a variable rate for a fixed rate of 3%, and Bob pays a fixed loan rate of 5%. They all trade swaps at Swap Rate. As Swap Rate is an unmanaged platform, market makers act as their counterparties. As you can see from the chart above, market makers charge 5%, pay 3%, and earn 2%! But marketmakers also bear the spread between AAVE borrowing rates. Fortunately, the spread has been remarkably stable, at around 1.8%, so market-makers have netted 0.2%.
It's a win-win-win situation: Alice gets a fixed deposit rate. Bob got a fixed interest rate on the loan. Market makers are also making money.
If the market-makers widen the spread by offering Alice a 2.5% deposit rate and Bob a 5.5% loan rate, they will net a 1.2% spread! Market makers can also offer Alice a deposit rate of 3% and Bob a loan rate of 6%, and earn the same spread.
Market makers' expected earnings = 5%-3% + floating deposit rate - floating loan rate = 0.2%
- market maker income calculation -
Indeed, market-makers' earnings range from 0.2% to 5%, depending on market conditions.
According to the statistics, the interest rate difference between the deposit rate and the loan rate is stable:

- statistical arbitrage is possible
Swap Rate API/SDK
Why yuan trading unique advantages!
Swap Rate provides 12 order books for all variable rates. The order book is a meta-transaction that contains a specific order. Once the two orders are matched, they are settled immediately on the ethereum blockchain. Swap Rate allows users to store and cancel orders for free. Users can send dozens of quotes per second based on market conditions, or cancel orders when market expectations change. While enjoying the security brought by blockchain, we can also compete with the centralized market in terms of transaction speed.
The order book is divided by month. The parameters of order v in the book may be different, but the due month is the same. Each transaction starts on the closing date and matures on the first day of the month of maturity.
For example, today I placed an order for a swap that was due June 1, hoping for a 5% fixed interest rate. The orders I signed (meta-transactions) are immediately stored in the "June" order book, waiting for a matching order (one willing to pay a 5% fixed rate) to appear. If a matching order appears the next day (before I cancel the order), both sides trade, and that's the start date of the swap. From the start date until June 1, the gains from the variable rate accrue. On the date of maturity, this accumulated income is exchanged in accordance with the agreement with the fixed-rate income.
- high speed order book (yuan transaction) -
Arbitrage with Swap Rate
Let's say you find an asset that you can arbitrage through swaps. To truly arbitrage, you need to buy or sell the asset at the same time as the swap -- in the same ethereum transaction.
Swaprate. finance has been launched, welcome to arbitrage. In the next article, we'll cover the API, SDK, and some examples for market makers and DeFi hedge funds. You can contact us to read it first.
Original link:https://mp.weixin.qq.com
Welcome to join the official BlockBeats community:
Telegram Subscription Group: https://t.me/theblockbeats
Telegram Discussion Group: https://t.me/BlockBeats_App
Official Twitter Account: https://twitter.com/BlockBeatsAsia