Memswap.xyz Interface
MemSwap.xyz (opens in a new tab) is a reference implementation of the MemSwap protocol. The goal is to showcase a variety of different features of MemSwap including the ability to swap tokens and NFTs using three key modes - Best, Trustless, and Private.
Best
The default mode for MemSwap.xyz (opens in a new tab) is "Best". It leverages the Reservoir matchmaker (reservoir-matchmaker.eth) to conduct a matchmaker OFA. This mode is designed to give users the best prices in the shortest amount of time.
Speed: Fast
✅ Matchmaker can find best price with a single-block auction
Quality: High
✅ Solvers access aggregated liquidity from all DEXs & Market Makers
✅ Open to anyone to find the best solution, resulting in better prices
Trust: Low
⚠️ Relies Matchmaker reputation to choose best solution
✅ Order can’t be filled below chosen min price / slippage
MEV: Low
✅ Open-ended “intent” is harder to sandwich attack than a regular tx
✅ Solvers submit swap tx via private relay (e.g. Flashbots)
✅ Matchmaker ensures that surplus (above min price) goes to swapper
⚠️ Swap parameters are public. Can be frontrun if order is high signal
Trustless
Users may opt into the “trustless” mode, which uses no third parties. The mode uses an dutch auction orders and propogates the orders using the users token approval transaction through the MemPool. Once solvers can fill the order, they will bundle the order and submit it to builders.
Speed: Slow
⚠️ Need to conduct auction over many blocks to get good price
Quality: High
✅Solvers access aggregated liquidity from all DEXs & Market Makers
✅Open to anyone to find the best solution, resulting in better prices
Trust: None
✅No privileged or trusted 3rd parties required
MEV: Medium
✅Open-ended “intent” is harder to sandwich attack than regular tx
✅Solvers submit swap tx via private relay (e.g. Flashbots)
⚠️ Any surplus above the dutch auction captured by Solvers / Validators
⚠️ Swap parameters are public. Can be frontrun if order is high signal
Private
The MemSwap.xyz (opens in a new tab) private mode privately submits orders to the Reservoir matchmaker and reference solver, before using private RPCs to submit transaction bundles to builders.
Speed = Fast
✅Solver can usually get tx mined in the same block they get order
Quality: Medium
✅Solvers access aggregated liquidity from all DEXs & Market Makers
⚠️ Solutions only sourced from a single solver
Trust = Medium
⚠️ Relies on Matchmaker to choose a good Solver
⚠️ Relies on single Solver reputation. No auction to force good behavior
✅Order can’t be filled below chosen min price / slippage
MEV: Low
✅Open-ended “intent” is harder to sandwich attack than regular tx
✅Solvers submit swap tx via private relay (e.g. Flashbots)
✅Limited access to order reduces chance of front-running
⚠️ Lack of competition means Solver may discretely extract MEV or simply not have the best price