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:
Einliterflasche 2025-01-07 12:15:43 +01:00 committed by GitHub
parent c9431d80f7
commit 799eb15411
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 11 deletions

View file

@ -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;

View file

@ -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 />}