njmango / sales-bot

0 stars 2 forks source link

Price validation checks #3

Open mcmcford opened 3 months ago

mcmcford commented 3 months ago

Set reasonable bounds so a user cannot create unreasonable prices

For Sale:
+--------+-----------------------+----------+-----------+-------------------+---------+
| Order  | Item                  | Quality  | Quantity  | Price (MP +/-)    | Seller  |
+--------+-----------------------+----------+-----------+-------------------+---------+
| 5      | Electronic component  | 1        | 10000     | $954.0000 (+900)  | ╱*-*╲   |
| 4      | Electronic component  | 1        | 10000     | $-71.0000 (-125)  | ╱*-*╲   |
| 3      | Electronic component  | 1        | 10000     | $51.5000 (-2.5)   | ╱*-*╲   |
| 2      | Electronic component  | 1        | 1         | $54.0000 (-0)     | ╱*-*╲   |
+--------+-----------------------+----------+-----------+-------------------+---------+