A Sushi AMM v3 implementation
MIRIN, a light alcohol particularly used to create sauces in Japanese cuisine, is the name of our proposed upgraded version of the SushiSwap protocol, or Sushi Protocol v3.
In MIRIN, every pair (such as SUSHI-ETH) can have one Public Pool and multiple Franchised Pools.
A public pool is the primary pool and it offers the standard swap fee (0.3% charged and 0.1% goes to xSUSHI holders).
For liquidity pool creators, two types of new curves are added so that they can maximize the capital efficiency when providing a new pool to the ecosystem. The constant product curve from SushiSwapV2 will still be available, however, the two new proposed options will be:
Unlike v2, MIRIN supports each token on a pool can have different weights. We can define the equation for the invariant like this:
where , , and , are reserve for first asset, reserve for second asset, weight for first asset and weight for second asset, respectively.
Fine-tuned for stable coins. (ex: Curve protocol)
MIRIN provides you an automatic yield rebalancing tool, powered by K3PR technology. This can benefit you, since you can add a dedicated job to seek out the best LP yields for you. Keepers do the dirty work of all the calculations and comparisons needed to find the highest returns and automatically switches into those optimal pairs.
This repo will be consolidated to the SushiSwap's nextgen AMM.
Distributed under the MIT License. See
LICENSE for more information.