Small fixes

This commit is contained in:
Reckless_Satoshi 2022-01-08 12:14:19 -08:00
parent 476fcf1d6f
commit cf2422f924
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 2 additions and 4 deletions

View File

@ -269,11 +269,9 @@ class Logics():
@classmethod
def gen_escrow_hodl_invoice(cls, order, user):
# Do not generate and cancel if an invoice is there and older than X minutes and unpaid still
print('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
if order.trade_escrow:
# Check if status is INVGEN and still not expired
if order.trade_escrow.status == LNPayment.Status.INVGEN:
print('CCCCCCCCCCCCCCCCCCC')
if order.trade_escrow.created_at > (timezone.now()+timedelta(minutes=EXP_TRADE_ESCR_INVOICE)): # Expired
cls.cancel_order(order, user, 4) # State 4, cancel order before trade escrow locked
return False, {'bad_request':'Invoice expired. You did not lock the trade escrow in time.'}

View File

@ -151,7 +151,7 @@ export default class OrderPage extends Component {
<Grid container spacing={1}>
<Grid item xs={12} align="center">
<Typography component="h5" variant="h5">
BTC {this.state.type ? " Sell " : " Buy "} Order
{this.state.type ? "Sell " : "Buy "} Order Details
</Typography>
<Paper elevation={12} style={{ padding: 8,}}>
<List dense="true">

View File

@ -143,7 +143,7 @@ export default class UserGenPage extends Component {
</Grid>
<Grid item xs={12} align="center">
<Typography component="h5" variant="h5">
Easy and Private Lightning peer-to-peer Exchange
Simple and Private Lightning peer-to-peer Exchange
</Typography>
</Grid>
</Grid>