mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-18 08:43:14 +00:00
Fix minimum value, adjust decimal places and digits for BTC scales
This commit is contained in:
@ -132,7 +132,7 @@ class Order(models.Model):
|
|||||||
# order details
|
# order details
|
||||||
type = models.PositiveSmallIntegerField(choices=Types.choices, null=False)
|
type = models.PositiveSmallIntegerField(choices=Types.choices, null=False)
|
||||||
currency = models.ForeignKey(Currency, null=True, on_delete=models.SET_NULL)
|
currency = models.ForeignKey(Currency, null=True, on_delete=models.SET_NULL)
|
||||||
amount = models.DecimalField(max_digits=9, decimal_places=4, validators=[MinValueValidator(0.00001)])
|
amount = models.DecimalField(max_digits=16, decimal_places=8, validators=[MinValueValidator(0.00000001)])
|
||||||
payment_method = models.CharField(max_length=35, null=False, default="not specified", blank=True)
|
payment_method = models.CharField(max_length=35, null=False, default="not specified", blank=True)
|
||||||
|
|
||||||
# order pricing method. A explicit amount of sats, or a relative premium above/below market.
|
# order pricing method. A explicit amount of sats, or a relative premium above/below market.
|
||||||
|
Reference in New Issue
Block a user