mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-28 11:12:24 -04:00
GUI: warn against replace-by-fee for deposit transactions (#243)
* add alert in deposit page to warn against replace-by-fee
This commit is contained in:
parent
c9431d80f7
commit
799eb15411
2 changed files with 21 additions and 11 deletions
|
@ -2,6 +2,7 @@ import { Box } from "@material-ui/core";
|
|||
import { ReactNode } from "react";
|
||||
import ActionableMonospaceTextBox from "renderer/components/other/ActionableMonospaceTextBox";
|
||||
import InfoBox from "./InfoBox";
|
||||
import { Alert } from "@material-ui/lab";
|
||||
|
||||
type Props = {
|
||||
title: string;
|
||||
|
|
|
@ -5,6 +5,7 @@ import BitcoinIcon from "../../../../icons/BitcoinIcon";
|
|||
import { MoneroSatsExchangeRate, SatsAmount } from "../../../../other/Units";
|
||||
import DepositAddressInfoBox from "../../DepositAddressInfoBox";
|
||||
import DepositAmountHelper from "./DepositAmountHelper";
|
||||
import { Alert } from "@material-ui/lab";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
amountHelper: {
|
||||
|
@ -67,20 +68,28 @@ export default function WaitingForBtcDepositPage({
|
|||
</li>
|
||||
<li>
|
||||
The swap will start automatically as soon as the minimum
|
||||
amount is deposited
|
||||
amount is deposited.
|
||||
</li>
|
||||
<li>
|
||||
<DepositAmountHelper
|
||||
min_deposit_until_swap_will_start={
|
||||
min_deposit_until_swap_will_start
|
||||
}
|
||||
max_deposit_until_maximum_amount_is_reached={
|
||||
max_deposit_until_maximum_amount_is_reached
|
||||
}
|
||||
min_bitcoin_lock_tx_fee={min_bitcoin_lock_tx_fee}
|
||||
quote={quote}
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
</Typography>
|
||||
<DepositAmountHelper
|
||||
min_deposit_until_swap_will_start={
|
||||
min_deposit_until_swap_will_start
|
||||
}
|
||||
max_deposit_until_maximum_amount_is_reached={
|
||||
max_deposit_until_maximum_amount_is_reached
|
||||
}
|
||||
min_bitcoin_lock_tx_fee={min_bitcoin_lock_tx_fee}
|
||||
quote={quote}
|
||||
/>
|
||||
|
||||
<Alert severity="info">
|
||||
Please do not use replace-by-fee on your deposit transaction.
|
||||
You'll need to start a new swap if you do.
|
||||
The funds will be available for future swaps.
|
||||
</Alert>
|
||||
</Box>
|
||||
}
|
||||
icon={<BitcoinIcon />}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue