Fix overflow on markettick value with some currencies

This commit is contained in:
Reckless_Satoshi 2022-03-05 03:48:47 -08:00
parent c9cdc2743d
commit f111130273
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -482,7 +482,7 @@ class MarketTick(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
price = models.DecimalField(
max_digits=10,
max_digits=16,
decimal_places=2,
default=None,
null=True,
@ -544,4 +544,4 @@ class MarketTick(models.Model):
class Meta:
verbose_name = "Market tick"
verbose_name_plural = "Market ticks"
verbose_name_plural = "Market ticks"