bancorprotocol / webapp-v2

https://beta.bancor.network
MIT License
1 stars 2 forks source link

TokenInputField Component: Bug with Available balance when ETH selected #531

Open pingustar opened 2 years ago

pingustar commented 2 years ago

TokenInputField component:

Available balance is clickable and sets 100%.

For Trades with source token ETH, we need to subtract a small amount to account for GAS costs.

When withdrawing from protection or any other feature than trade we need to discard the subtraction for GAS.

https://user-images.githubusercontent.com/7262066/155128865-d526fcaa-585b-4f9b-93d3-de9cd91e0bf8.mp4