osmosis-labs / osmosis-frontend

Web interface for Osmosis Zone
https://app.osmosis.zone/
Apache License 2.0
230 stars 415 forks source link

Add HALF button to swap screen #45

Closed thecryptodrive closed 2 years ago

thecryptodrive commented 3 years ago

Currently, there is a MAX button to select your total balance for swap, other Dex'es like Solana Raydium have a half option as well which is very useful when converting funds for 50/50 pools.

image

Osmosis would benefit from this to help users swap tokens for liquidity pools, we could go a step further and offer buttons like: 10% 25% 50% 75% MAX which should cover most pool configurations.

jonator commented 3 years ago

I agree with this, but I think we should be careful not to overcrowd the swap panel too much.

Perhaps we should make the most common use case a default, then have an adjacent arrow menu where you can select the others.

thecryptodrive commented 3 years ago

That's a great middle-ground, I think 50% would be the most commonly used.

thecryptodrive commented 2 years ago

Thanks for incorporating this, Osmosis swaps are highly reduced in cognitive load now, monkey-proof.