diff --git a/api/lightning/node.py b/api/lightning/node.py index 826764fb..9f62dc97 100644 --- a/api/lightning/node.py +++ b/api/lightning/node.py @@ -186,7 +186,7 @@ class LNNode(): def pay_invoice(cls, invoice, num_satoshis): '''Sends sats to buyer''' - fee_limit_sat = max(num_satoshis * 0.0002, 10) # 200 ppm or 10 sats + fee_limit_sat = int(max(num_satoshis * 0.0002, 10)) # 200 ppm or 10 sats request = routerrpc.SendPaymentRequest( payment_request=invoice, fee_limit_sat=fee_limit_sat, diff --git a/frontend/src/components/InfoDialog.js b/frontend/src/components/InfoDialog.js index 9e5afdd2..5bda1a98 100644 --- a/frontend/src/components/InfoDialog.js +++ b/frontend/src/components/InfoDialog.js @@ -82,7 +82,7 @@ export default class InfoDialog extends Component {

To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats' - as it would damage the reputation for a small payout. + interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq

diff --git a/frontend/src/components/MakerPage.js b/frontend/src/components/MakerPage.js index 61b967e9..a4f482ca 100644 --- a/frontend/src/components/MakerPage.js +++ b/frontend/src/components/MakerPage.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import { Paper, Alert, AlertTitle, Button , Grid, Typography, TextField, Select, FormHelperText, MenuItem, FormControl, Radio, FormControlLabel, RadioGroup, Menu} from "@mui/material" +import { Paper, Button , Grid, Typography, TextField, Select, FormHelperText, MenuItem, FormControl, Radio, FormControlLabel, RadioGroup} from "@mui/material" import { Link } from 'react-router-dom' import getFlags from './getFlags' @@ -37,7 +37,7 @@ export default class MakerPage extends Component { constructor(props) { super(props); this.state={ - isExplicit: false, + is_explicit: false, type: 0, currency: this.defaultCurrency, currencyCode: this.defaultCurrencyCode, @@ -89,14 +89,14 @@ export default class MakerPage extends Component { } handleClickRelative=(e)=>{ this.setState({ - isExplicit: false, + is_explicit: false, satoshis: null, premium: 0, }); } handleClickExplicit=(e)=>{ this.setState({ - isExplicit: true, + is_explicit: true, premium: null, }); } @@ -113,7 +113,7 @@ export default class MakerPage extends Component { currency: this.state.currency, amount: this.state.amount, payment_method: this.state.payment_method, - is_explicit: this.state.isExplicit, + is_explicit: this.state.is_explicit, premium: this.state.premium, satoshis: this.state.satoshis, }), @@ -241,7 +241,7 @@ export default class MakerPage extends Component { {/* conditional shows either Premium % field or Satoshis field based on pricing method */} - { this.state.isExplicit + { this.state.is_explicit ?
Create a BTC {this.state.type==0 ? "buy":"sell"} order for {this.state.amount} {this.state.currencyCode} - {this.state.isExplicit ? " of " + this.state.satoshis + " Satoshis" : + {this.state.is_explicit ? " of " + this.state.satoshis + " Satoshis" : (this.state.premium == 0 ? " at market price" : (this.state.premium > 0 ? " at a " + this.state.premium + "% premium":" at a " + -this.state.premium + "% discount") ) diff --git a/frontend/src/components/OrderPage.js b/frontend/src/components/OrderPage.js index e6b989b4..5d8f0603 100644 --- a/frontend/src/components/OrderPage.js +++ b/frontend/src/components/OrderPage.js @@ -37,7 +37,7 @@ export default class OrderPage extends Component { constructor(props) { super(props); this.state = { - isExplicit: false, + is_explicit: false, delay: 60000, // Refresh every 60 seconds by default currencies_dict: {"1":"USD"}, total_secs_exp: 300, @@ -412,7 +412,7 @@ export default class OrderPage extends Component { {this.state.price_now? : - (this.state.isExplicit ? + (this.state.is_explicit ? :