An introduction to Contango

Expirable futures

Contango is the first non-custodial DeFi exchange to offer expirable futures (i.e. instruments with a known settlement date) via fixed-rate markets. DeFi protocols have launched many perpetual products and that leaves Contango as the market leader in the expirable space (see fig. 1).

Figure 1. State of the crypto derivative space by Jump Capital

The theoretical model

The theoretical model behind Contango is the famous interest rate parity relationship:

This well-known formula in traditional finance states that a futures contract on two currencies has a theoretical price P that depends on the spot price of the base currency S, the interest rates r₁ and r₂ of the quote and base currencies, and the maturity T. For more information see: Options, futures and other derivatives, by John C. Hull (chapter 5 on Futures pricing).

Contango synthesizes futures by following the steps used to demonstrate the interest rate parity formula. When a trader opens a position, the protocol borrows on the fixed-rate market, swaps on the spot market, then lends back on the fixed-rate market. To close a position, the protocol reverses these steps.

Figure 2. Steps to open a long position on Contango

For v1, the cash flows described above are replicated on Contango by using the spot price on Uniswap and the fixed-rate markets on Yield, currently live on Arbitrum, and Notional, currently live on Ethereum L1.

However, Contango has derived different formulas to take into account the trader’s collateral, which is used to reduce the amount of capital borrowed and quote you a better price (you’re welcome). See docs.contango.exchange for a detailed explanation.

Collateralization ratio and leverage

The fixed-rate protocols used by Contango offer fixed rates to borrowers and lenders through a zero-coupon bond-like instrument (fCash in Notional, fyToken in Yield). At Contango we call them zcTokens, as in zero-coupon bond Tokens. At a high level:

  • Lending at a fixed rate is equivalent to buying a zero-coupon bond.

  • Borrowing at a fixed rate is equivalent to selling a zero-coupon bond.

However, borrowing on fixed-rate markets, just like anywhere in DeFi, requires overcollateralization, i.e. you need to deposit more than the amount you can borrow to ensure solvency.

In order to achieve leverage, Contango uses the flashswap function on Uniswap. Contango first gets ETH from the flashswap, lends it on the fixed-rate markets, uses the resulting zcDAI from lending as collateral to borrow DAI and gives those DAI back to Uniswap, all in one atomic transaction (see fig. 3)

Figure 3. Flashswap steps to open a long position on Contango

Contracts

At launch Contango will offer ETHDAI and ETHUSDC, with their respective inverse contracts. Please bear in mind that our inverse contracts are simply linear contracts that offer the opposite pair. Linear contracts have their price, collateral and PnL denominated in the quote currency. For instance, the inverse contract of ETHDAI is DAIETH and, hence, the price, collateral and PnL are denominated in ETH.

In a nutshell, going long on DAIETH could be seen as going short on ETHDAI. For instance, if you have ETH and want to hedge your position by shorting it with a futures, you can go on Contango and post it as collateral to go long on the inverse contract, e.g. DAIETH.

Composability

Every position is tokenized as an NFT, enabling other projects to easily build on top of Contango. Each position has a unique future price, which is determined by the market conditions and collateral ratio at the time of entry. The fact that they are unique makes the ERC-721 standard an appropriate choice.

Tokenizing ownership serves several key purposes:

  • It enables independent transfer of ownership, without the need to update Contango’s internal accounting.

  • Positions can be bought and sold on a secondary market, or in a private transaction.

  • It enhances composability, e.g. Contango positions could potentially be used as collateral in a third-party protocol.

If you have other ideas on how to use this NFT position please join the discussion on Discord. We are currently welcoming developers to build delta-neutral strategies like cash and carry vaults on top of Contango.

Liquidations

Like always in DeFi, if your collateral value diminishes and your position goes underwater (meaning: your collateral is not sufficient to guarantee the repayment of your debt) then you are at risk of liquidation. Contango does not perform any liquidation on its own, but relies instead on the underlying protocols.

Each time a trader opens a position, a borrowing vault is opened on the underlying fixed rate protocol. The zcToken from the lending position is used as collateral to borrow the quote or base currency. If the vault becomes undercollateralized then the vault is closed through a liquidation process on the underlying protocol and the futures position on Contango is automatically closed.

Settlement

Contango offers physical delivery as this process is not vulnerable to price manipulation. This is because cash-settled futures are settled against an index that normally relies on third-party spot markets where sometimes volumes are thin and can be moved — read: manipulated — very easily (source: Coinflex).

Due to the nature of Contango and how it uses the trader’s collateral, at expiry the trader needs to bring the missing capital to make up for the difference in the debt she owes (see fig. 4):

That means that if a trader is long ETHDAI, at expiry she will receive ETH. If she’s short, she’ll have to deliver ETH — which means she’ll be receiving DAI.

Figure 4. Steps to settle a long position on Contango

Risks of using Contango

In order to discuss the risks of using Contango it’s worth recapping some key features of the protocol:

  • Contango prices futures via spot and fixed-rate protocols, so it’s reliant on the liquidity of these markets (Uniswap, Yield, Notional). The long-term vision is to aggregate as many markets as possible to offer the best liquidity — read: price — for expirable futures in DeFi.

  • Contango doesn’t have an order book, nor liquidity pools, which means there’s no liquidity held on protocol (no TVL).

  • Even the trader’s collateral is put to work for better capital efficiency on the underlying protocols so, again, no liquidity is locked within Contango.

  • Liquidations are not carried out on Contango, but on the underlying protocols.

  • At maturity Contango offers physical delivery to eliminate risks of price manipulation.

So, when using Contango, a trader should bear in mind the following risks:

  • Liquidity risk, i.e. the possibility of thin liquidity on underlying markets, especially when closing a position.

  • Market risk, i.e. sudden movements in price that can result in potential liquidations.

  • Smart contract risk, i.e. the risk of using protocols (i.e. lines of code) that can be hacked and exploited. Contango is currently undergoing multiple security audits.

About Contango

Contango is a non-custodial DeFi exchange offering expirable futures without order books or liquidity pools. When a trader opens a position, the protocol borrows on the fixed-rate market, swaps on the spot market, then lends back on the fixed-rate market. Contango offers physical delivery and a minimal price impact for larger trades. Join us at contango.exchange.