From 0a33147a4f8301694cd86034eb7e6fcac7dfff31 Mon Sep 17 00:00:00 2001 From: koalasat Date: Mon, 16 Sep 2024 16:05:21 +0200 Subject: [PATCH] Fix Rebase --- api/logics.py | 8 ++++++-- docs/assets/schemas/api-latest.yaml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/api/logics.py b/api/logics.py index af5fe817..c5055fbd 100644 --- a/api/logics.py +++ b/api/logics.py @@ -8,7 +8,11 @@ from django.utils import timezone from api.lightning.node import LNNode from api.models import Currency, LNPayment, MarketTick, OnchainPayment, Order -from api.tasks import send_devfund_donation, send_status_notification, send_notification, nostr_send_order_event +from api.tasks import ( + send_devfund_donation, + send_status_notification, + nostr_send_order_event, +) from api.utils import get_minning_fee, validate_onchain_address, location_country from chat.models import Message @@ -1365,7 +1369,7 @@ class Logics: order.update_status(Order.Status.WF2) nostr_send_order_event.delay(order_id=order.id) - + order.log( f"Contract formalized. Maker: Robot({order.maker.robot.id},{order.maker}). Taker: Robot({order.taker.robot.id},{order.taker}). API median price {order.currency.exchange_rate} {dict(Currency.currency_choices)[order.currency.currency]}/BTC. Premium is {order.premium}%. Contract size {order.last_satoshis} Sats" ) diff --git a/docs/assets/schemas/api-latest.yaml b/docs/assets/schemas/api-latest.yaml index 04a0577f..2c8e044b 100644 --- a/docs/assets/schemas/api-latest.yaml +++ b/docs/assets/schemas/api-latest.yaml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: title: RoboSats REST API - version: 0.6.3 + version: 0.7.0 x-logo: url: https://raw.githubusercontent.com/Reckless-Satoshi/robosats/main/frontend/static/assets/images/robosats-0.1.1-banner.png backgroundColor: '#FFFFFF'