Frankencoin-ZCHF / frankencoin-dapp

Frankencoin Web App to interact with the Eco System
https://frankencoin.com/
MIT License
0 stars 4 forks source link

Bugs in Adjust Widget #19

Closed luziusmeisser closed 8 months ago

luziusmeisser commented 8 months ago

image

  1. When opening the adjust page, the fields should be pre-filled with the current values for amount, collateral, and price.

  2. 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.