Don't use the asset name in references

master
Mark Veidemanis 3 years ago
parent 3fba402964
commit 6b599902c0
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -193,7 +193,7 @@ class Transactions(util.Base):
Store details in Redis, generate a reference and optionally let the customer know the reference.
"""
reference = "".join(choices(ascii_uppercase, k=5))
reference = f"{asset}-{reference}"
reference = f"PGN-{reference}"
existing_ref = r.get(f"trade.{trade_id}.reference")
if not existing_ref:
r.set(f"trade.{trade_id}.reference", reference)

Loading…
Cancel
Save