OTCSwap

The idea of a minimal proxy allows us to move closer to a traditional orderbook model, with some pros and some cons.

In the context of p2p vending, it makes sense to create a minimal vendor contract. "I have 1200 apples to sell, and I will take $1 each."

The seller can leave their contract out unattended overnight and fear little damage to checkbook.

We suggest that initializing a minimal proxy in this way represents a reasonable trading primitive in Solidity.

Semi-irrevocable.

Under normal conditions it is possible to cancel an order and receive the earmarked money back. But in pathological cases where there is an arbitrage opportunity, mempool activity on the contract will attract MEV analysis. Fuzzing the contract methods allows bots to detect profitable sequencing in which they fill the order before your attempt to cancel it is processed.

Last updated