Skip to content

Commit

Permalink
GUI: warn against replace-by-fee for deposit transactions (#243)
Browse files Browse the repository at this point in the history
* add alert in deposit page to warn against replace-by-fee
  • Loading branch information
Einliterflasche authored Jan 7, 2025
1 parent c9431d8 commit 799eb15
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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 />}
Expand Down

0 comments on commit 799eb15

Please sign in to comment.