This commit is contained in:
Dobromir Popov
2024-11-12 12:07:44 +02:00
parent d4a7c0b653
commit cd3e9e79ec
4 changed files with 19 additions and 8 deletions

View File

@ -237,7 +237,8 @@ def init_app(tr_handler=None):
token_out = token_outputs[0]
tr["token_out"] = token_out["mint"]
tr["token_out_decimals"] = get_decimals(token_out)
tr["amount_out"] = calculate_amount(token_out)
# Store transaction in database
if tr["type"] in ["BUY", "SELL"]:
is_buy = tr["type"] == "BUY"