Open pingustar opened 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
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