contango
Search…
βš™
How it works
Contango protocol synthesises futures positions by using spot exchanges and borrowing and lending at a fixed rate, i.e. cash flows of futures positions are replicated through fixed interest rate markets. The different steps are realized atomically, i.e. in one transaction each time a trader buys or sells a futures. If for any reason the transaction fails then no position will be taken neither by the trader nor by the protocol.

Position opening

Below are presented the steps to open a futures position.
Steps to open a position on ETHDAI.
Short
Long
  1. 1.
    Trader sells a futures
  2. 2.
    Protocol borrows the base currency
  3. 3.
    Protocol sells the borrowed amount for an equivalent amount of the quote currency on the spot market to synthesize a short position.
  4. 4.
    The amount of the quote currency is lent
  1. 1.
    Trader buys a futures
  2. 2.
    Protocol borrows the quote currency
  3. 3.
    Protocol sells the borrowed amount for an equivalent amount of the base currency on the spot market to synthesize a long position
  4. 4.
    The amount of the base currency is lent

Position closing

Below are presented the steps to close a futures position.
Steps to close a position on ETHDAI.
Short
Long
  1. 1.
    Trader closes a short position
  2. 2.
    Protocol gets the principal and the interest from lending the quote currency
  3. 3.
    Protocol swaps the quote currency for the base currency on the spot market
  4. 4.
    Protocol gives back the borrowed funds including the accrued interest
  1. 1.
    Trader closes a long position
  2. 2.
    Protocol gets the principal and interest from lending the base currency
  3. 3.
    Protocol swaps the base currency for the quote currency on the spot market
  4. 4.
    Protocol gives back the borrowed funds including the accrued interest
In order to quote a price to a trader, Contango simulates what would happen in a real execution and enriches the answer with min/max values, also simulating how the position status would look like after execution. To achieve that Contango uses the "preview" functions provided by the underlying protocols.
Copy link
On this page
Position opening
Position closing