Fix withdrawal error.

This commit is contained in:
tecnovert
2021-07-28 13:51:17 +02:00
parent 2be16465fb
commit 1b2ec61816
4 changed files with 21 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ from enum import IntEnum, auto
from sqlalchemy.ext.declarative import declarative_base
CURRENT_DB_VERSION = 8
CURRENT_DB_VERSION = 9
Base = declarative_base()

View File

@@ -265,7 +265,8 @@ class HttpHandler(BaseHTTPRequestHandler):
messages.append('Error: Missing type')
if len(messages) == 0:
ticker = swap_client.getTicker(c)
ci = swap_client.ci(c)
ticker = ci.ticker()
if c == Coins.PART:
try:
txid = swap_client.withdrawParticl(type_from, type_to, value, address, subfee)