Bug: Max button not working when switching asset
Max button not working when switching asset
Description
When I open the trade window, I am able to hit the "max" button to fill the "pay with" window with the maximum amount I can trade allowing for fees, etc... this then fills the second "you get" window with the amount of the second asset I can expect to receive. This is what I expect to happen in all instances. In reality, if I use the "downward arrow" in order to switch the 1st and 2nd placed assets, and then use the max button - it no longer fills the "you get" window with the correct amount of asset (it doesn't change it at all, in fact) I have attached a video demonstrating this.
Expected Behavior
When I hit the arrow to switch the positions of the 2 assets, I expect the max button to still work.
Actual Behavior
In reality, if I use the "downward arrow" in order to switch the 1st and 2nd placed assets, and then use the max button - it no longer fills the "you get" window with the correct amount of asset (it doesn't change it at all, in fact) I have attached a video demonstrating this.
Possible Fix
Steps to Reproduce
Browser used: Google Chrome, latest version.
https://user-images.githubusercontent.com/97540577/181728057-b3a4aae5-cec0-40c1-a7e0-4704dc673b2c.mov
Context
Your Environment
- Toolchain versions:
- Version used:
- System type:
- Operating System and version:
- System specs: