Fix max button on oracle price change
On max button click the amount should be updated on:
- oraclePrice change
- Position type change
- currency change
Should not be updated anymore on:
- Confirming contract
- Manual amount change
- On page change
- productId change?
Max button should be highlighted to let users know that amount will be recalculated automatically.
Highlight algorithm is the next:
- On the first click the max value should be placed in the amount field and max button should be highlighted
- On the second click (or any action from the second part above) recalculating will be disabled and max button highlight will be erased
Edited by Anton Panteleev