Each weekday leading up to devcon2, Nexus will highlight a dapp, library, or package (something with a dappfile ) as a promotion of our toolchain and as case studies for other developers. Yesterday's Post

Today's dapp is the first of a suite of "order type" token contracts. It is is an on-chain otc market that lets you atomically trade tokens.

It does not contain a matching engine so everything is O(1).

https://github.com/makerdao/maker-otc

Any time the order book is crossed it is profitable to act as the matching engine. There is a bot that does this that could also serve as the foundation for a market-making bot or more:

https://github.com/makerdao/maker-market-matcher

This project is under the Maker umbrella, but it is actually token-agnostic. Other order type tokens will eventually share the same frontend, at https://mkr.market/ .

If you have a verifiable token, it might even get added to the UI!