Skip to content

OTC Desk Contract

Zoe v0.24.0. Last updated August 25, 2022.
View the code on Github (Last updated: Mar 1, 2022)
View all contracts on Github

Building a Composable DeFi Contract

This is the OTC Desk contract from the "Building a Composable DeFi Contract" episode of Cosmos Code With Us.

Watch the replay of the workshop: Building a Composable DeFi Contract


The OTC Desk contract is based on an idea by Haseeb Qureshi in "Unbundling Uniswap: The Future of On-Chain Market Making"

OTC Desk

In this OTC Desk Contract:

  • Trades are atomic and “trustless”
  • Creator keeps all profits
  • Can use any pricing mechanism
  • Can stop quoting when the market is crazy
  • Can trade fungible and non-fungible digital assets
  • Uses another contract (the covered call option contract) as a reusable component

The Dapp

This contract is also available as a dapp with deploy scripts.