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 @classmethod
def gen_escrow_hodl_invoice(cls, order, user): 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 # Do not generate and cancel if an invoice is there and older than X minutes and unpaid still
print('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
if order.trade_escrow: if order.trade_escrow:
# Check if status is INVGEN and still not expired # Check if status is INVGEN and still not expired
if order.trade_escrow.status == LNPayment.Status.INVGEN: 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 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 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.'} 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 container spacing={1}>
<Grid item xs={12} align="center"> <Grid item xs={12} align="center">
<Typography component="h5" variant="h5"> <Typography component="h5" variant="h5">
BTC {this.state.type ? " Sell " : " Buy "} Order {this.state.type ? "Sell " : "Buy "} Order Details
</Typography> </Typography>
<Paper elevation={12} style={{ padding: 8,}}> <Paper elevation={12} style={{ padding: 8,}}>
<List dense="true"> <List dense="true">

View File

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