Can anyone show me the implementation logic for a Liquidity tri-pool?

I know the standard xy = k model as popularized by Uniswap but I'm trying to implement a xyz = k pool with three tokens where the weight ratios are say 20/20/40.

Just wondering if anyone has a smart contract that could show me the implementation logic for such a tripool.

1 Like

If it helps, then you can find the logic for a pool with only two tokens, but where the weights can be chosen freely (i.e., not restricted to equal weights) - here.

1 Like

Your idea is a creative and let me think about that.
Let's discuss in detail.

You can find my contact info via developer wanted topic.

This looks great! Will take a look.

what is the idea behind this, xyz instead of xy as popular?