YuvBindal / pe

0 stars 0 forks source link

Acceptance of negative values in lend #7

Closed YuvBindal closed 6 months ago

YuvBindal commented 6 months ago

As can be seen below the lend command allows the user to input negative values for the lend numbers, this is then treated as positive values on the UI display but internally it is a negative number. So when the user tries to lend a positive value again the UI becomes inconsistent. The pictures below explain this case:

  1. Lend 1 $/-4.50 Screenshot 2024-04-19 at 4.46.25 PM.png

Screenshot 2024-04-19 at 4.46.31 PM.png

  1. Lend 1 $/4.50

Screenshot 2024-04-19 at 4.49.04 PM.png Screenshot 2024-04-19 at 4.49.15 PM.png

Based on the UI I should have lent out 9.00