Appearance
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
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:
Functionality
The OTC Desk contract is based on an idea by Haseeb Qureshi in "Unbundling Uniswap: The Future of On-Chain Market Making"
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.