Atomic order matching #2
referenced this issue
Oct 27, 2017
This looks good, but I would suggest:
This would allow orders with differing amounts but overlapping prices to be matched.
Example: orderA offers 10 REP for 1 WETH, and orderB offers .5 WETH for 4.5 REP. Anyone could take these two, send them to the exchange contract which would cause:
This way both makers get to execute the trades they had offered, and the matcher gets to keep the spread.
How will fees operate in the
In a central matching model
In the open order book model the atomic matching mechanism is ideal for arbitrageurs to perform cross-relayer and spread arbitrage without the need of large upfront capital in every asset. Open order book relayers want to incentivize these arbitrageurs to maintenance order books and close up the arbitrage opportunities. If the
Dealing with so many variables in various assets exposes the arbitrageurs to a lot of volatility risk across assets with every filled match. It is preferable that the
A naive solution could be designating the
@ctebbe I agree using the
I think in the final implementation of
@abandeali1 good point on relayer expectations re: fees. I am thinking through a way to keep
Arbitrageurs (like opportunistic takers) don't want exposure to ZRX volatility risk or management, so is there a plan to implement a generic batch function such that fee abstraction can be effectively used here? ie. the arbitrageur batches a