A dAPP that allows an arbitrary number of parties to perform an atomic swap.
- N users (e.g. 3) signal their willingness to exchange tokens (e.g. User 1 wants to exchange
outgoingToken1
forincomingToken1
, User 2 wants to exchangeoutgoingToken2
forincomingToken2
, User 3 wants to exchangeoutgoingToken3
forincomingToken3
). - Let's suppose that there is a "triangular" match for these 3 orders, meaning that
outgoingToken1 = incomingToken2
,outgoingToken2 = incomingToken3
andoutgoingToken3 = incomingToken1
. - The dAPP matches these 3 orders so that everyone can perform their desired trade, which wouldn't be possible in 2-party atomic swaps.