Minitswap is a virtual pool dex based on the StableSwap, protocol designed to alleviate the inconvenience caused by the withdraw period of the OP bridge.
Issues with the OP bridge in Omni-chain
Transfering tokens from L1 to L2 via the OP bridge is straightforward and immediate, but returning from L2 to L1 is not as simple. You must wait for the withdrawal period, and this lack of immediacy poses the most significant challenge in Interchain messaging.
Therefore, to achieve immediate withdrawal, user need to use DEX pair with origin token and op bridged token. However, the operability of a single sequencer in L2 creates apprehension to liquidity provider, ultimately leading users to face high costs due to low liquidity, high volatility and slippage.
What we want to achieve from Minitswap
- Protection against manipulation: Of course, since for whitelisted Minitia only designated person can act as relayers, even if operator create OP bridged token, it is nearly impossible transfer tokens to L1. However, we cannot guarantee that such accidents will not occur, so efforts are needed to minimize damage.
- Capital efficiency: If there are numerous Minitias, a corresponding number of pairs must exist. This inevitably leads to liquidity dispersion, resulting in high slippage and cost
How Minitswap solve these problems
- To protect against manipulation, the net amount of tokens that swapped OP bridged token into origin token in a specific period is limited, and if necessary, the pool can be deactivated using the L1’s emergency poll.
- Addressing liquidity dispersion can be achieved by allowing multiple OP bridged tokens to exchange with a single origin token pool. This implementation, as virtual pools, can yield higher liquidity effects compared to the presence of numerous actual pairs for each.
Key Concepts
Depositor
The Depositor provides liquidity for the origin token and earns swap fees, unlike typical DEXs, it does not provide the opposing token (in this case, OP bridge token). This is possible because Minitswap does not allow the OP bridge token to decrease relative to the origin token within the virtual pool. As a result, it allows the Depositor to achieve twice the liquidity effect with half the assets.
Virtual Pool