When opening the adjust page, the fields should be pre-filled with the current values for amount, collateral, and price.
The "max" field for amount does not work as intended. I think it should be min(collateral * price, position.limit) and must be updated dynamically when the value in the collateral field changes or when the value in the price field changes.
When opening the adjust page, the fields should be pre-filled with the current values for amount, collateral, and price.
The "max" field for amount does not work as intended. I think it should be min(collateral * price, position.limit) and must be updated dynamically when the value in the collateral field changes or when the value in the price field changes.