bitsongofficial / sinfonia-ui

6 stars 11 forks source link

[Enhancement]: Provide a button ("HALF") to pull half of the available selected token #335

Closed travazstake closed 2 years ago

travazstake commented 2 years ago

Prerequisites

Describe the current behavior

The current state of the swap utility UI on Sinfonia allows selecting the maximum available amount of token when performing a swap. It would be optimal to have similar functionality to automatically select half of the tokens available when performing a swap with another token provided by the DEX.

Explain the motivation

The main reason I believe it would be a good idea to add such functionality is that most of the swaps that are currently performed on the Sinfonia DEX have the purpose of providing full liquidity (with a 50% / 50% LP provision) to a pool. Such functionality would simplify the user experience even further by automatically splitting the tokens that should be provided to a specific pool.

Provide a list of references

The most relevant DEX that provides such functionality is: Osmosis

image

Which browser are you using?

Brave

Which is your browser version?

No response

Which kind of device are you using?

Desktop

Are you using a ledger?

Yes

Which is your ledger version?

No response

giannnni commented 2 years ago

Fixed as suggested. Redesigning the whole SWAP component, we added a small button above "max".

Schermata 2022-05-25 alle 14 34 23