Skip to content

Commit 53c0203

Browse files
authored
add fee note to amount step (#80)
1 parent a4016c8 commit 53c0203

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/comps/Deposit.tsx

+15-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,20 @@ const DepositFlowAmount = ({
127127
<Heading>Deposit</Heading>
128128
</div>
129129
<SubText>Convert BTC into sBTC</SubText>
130+
131+
<SubText>
132+
Note: an additional fee (max 80k sats) will be automatically deducted
133+
from your deposited sBTC to cover the network transaction fee.{" "}
134+
<a
135+
className="text-blue-500 underline"
136+
href="https://docs.stacks.co/guides-and-tutorials/sbtc/how-to-use-the-sbtc-bridge#choose-the-amount-to-deposit"
137+
target="_blank"
138+
rel="noreferrer"
139+
>
140+
More Info
141+
</a>
142+
</SubText>
143+
130144
<FlowForm
131145
nameKey="amount"
132146
type="number"
@@ -438,7 +452,7 @@ const DepositFlowReview = ({ txId }: DepositFlowReviewProps) => {
438452
useDepositStatus(txId);
439453
const { WALLET_NETWORK: walletNetwork } = useAtomValue(bridgeConfigAtom);
440454
const btcAmount = useMemo(() => {
441-
return ((statusResponse?.vout[0].value || 0) / 1e8).toLocaleString();
455+
return (statusResponse?.vout[0].value || 0) / 1e8;
442456
}, [statusResponse?.vout]);
443457
return (
444458
<FlowContainer>

0 commit comments

Comments
 (0)